Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Tycho 0.13.0 is adding too many repos to the build

Hello,

I have a really odd effect that I can't explain. I have two local p2 repos on my hard disk: repo-1.0 and repo-2.0

repo-1.0 is an old repo which I used to build for a while.

Since then, new versions of some plugins have been released which I've collected in repo-2.0.

When I run the build, I see that Tycho adds repo-2.0 as it should. It then resolves all the dependencies from the reactor.

And then it also adds repo-1.0 to the build. After that, the build fails because it can't find the plugins from repo-2.0 anymore.

When I delete repo-1.0, the build fails:

[DEBUG] P2resolver.addMavenProject com.avanon.tycho:parent:pom:2.1.0-SNAPSHOT
[INFO] Adding repository file:/home/user/repo-1.0
[WARNING] Failed to access p2 repository indigo (file:/home/user/repo-1.0), will try to use local cache. Reason: org.eclipse.equinox.p2.core.ProvisionException: No repository found at file:/home/user/repo-1.0. java.lang.RuntimeException: org.eclipse.equinox.p2.core.ProvisionException: No repository found at file:/home/adigulla/avanon-3.7.1-from-target-platform-fixed. at org.eclipse.tycho.p2.impl.resolver.ResolutionContextImpl.addP2Repository(ResolutionContextImpl.java:289) at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:263) at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.resolvePlatform(P2TargetPlatformResolver.java:162) at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:85) at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:91)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:273)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        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:601)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.eclipse.equinox.p2.core.ProvisionException: No repository found at file:/home/user/repo-1.0 at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.fail(AbstractRepositoryManager.java:393) at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:675) at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:96) at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:92) at org.eclipse.tycho.p2.impl.resolver.ResolutionContextImpl.addP2Repository(ResolutionContextImpl.java:272)
        ... 17 more
[INFO] Cannot complete the request.  Generating details.

What is going on here? I did a grep -r on all files in my project and "repo-1.0" is not mentioned anywhere.

Regards,

--
Aaron "Optimizer" Digulla a.k.a. Philmann Dark
"It's not the universe that's limited, it's our imagination.
Follow me and I'll show you something beyond the limits."
http://www.pdark.de/                   http://blog.pdark.de/


Back to the top