Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6067

Local repository could not be found

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 3.3.9
    • Fix Version/s: None
    • Labels:
      None

      Description

      We have setup local repository, but Maven is not able to find it with the following exception

      [ERROR] Internal error: java.lang.RuntimeException: org.eclipse.equinox.p2.core.ProvisionException: No repository found at file:/home/setya/Documents/Project/repos/luna. -> [Help 1]
      org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: org.eclipse.equinox.p2.core.ProvisionException: No repository found at file:/home/setya/Documents/Project/repos/luna.
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:121)
      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      Caused by: java.lang.RuntimeException: org.eclipse.equinox.p2.core.ProvisionException: No repository found at file:/home/setya/Documents/Project/repos/luna.
      at org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider$RepositoryLoader.loadRepositories(RepositoryArtifactProvider.java:62)
      at org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider.init(RepositoryArtifactProvider.java:108)
      at org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider.contains(RepositoryArtifactProvider.java:119)
      at org.eclipse.tycho.repository.local.MirroringArtifactProvider.contains(MirroringArtifactProvider.java:107)
      at org.eclipse.tycho.repository.p2base.artifact.provider.CompositeArtifactProvider.getArtifactFile(CompositeArtifactProvider.java:84)
      at org.eclipse.tycho.p2.target.TargetPlatformBaseImpl.getLocalArtifactFile(TargetPlatformBaseImpl.java:128)
      at org.eclipse.tycho.p2.resolver.P2ResolverImpl.addUnit(P2ResolverImpl.java:254)
      at org.eclipse.tycho.p2.resolver.P2ResolverImpl.toResolutionResult(P2ResolverImpl.java:217)
      at org.eclipse.tycho.p2.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:209)
      at org.eclipse.tycho.p2.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:116)
      at org.eclipse.tycho.p2.resolver.P2DependencyResolver.doResolveDependencies(P2DependencyResolver.java:367)
      at org.eclipse.tycho.p2.resolver.P2DependencyResolver.resolveDependencies(P2DependencyResolver.java:335)
      at org.eclipse.tycho.core.resolver.DefaultTychoResolver.resolveProject(DefaultTychoResolver.java:117)
      at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:95)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:266)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
      ... 11 more
      Caused by: org.eclipse.equinox.p2.core.ProvisionException: No repository found at file:/home/setya/Documents/Project/repos/luna.
      at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.fail(AbstractRepositoryManager.java:395)
      at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:692)
      at org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.loadRepository(ArtifactRepositoryManager.java:104)
      at org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.loadRepository(ArtifactRepositoryManager.java:100)
      at org.eclipse.tycho.p2.remote.RemoteArtifactRepositoryManager.loadRepository(RemoteArtifactRepositoryManager.java:103)
      at org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider$RepositoryLoader.loadRepositories(RepositoryArtifactProvider.java:58)
      ... 27 more

      Regards,
      Setya

        Attachments

        1. debug.log
          23 kB
          Setya

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              setya Setya
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: