Skip to main content

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

Zitat von Denis Golovin <dgolovin@xxxxxxxxxx>:

Check p2metadata for your repo there is a reference to this site. Check repo-2.0/content.xml or content.xml inside repo-2.0/content.jar or for sites registered in <references>node.

There is nothing in artifacts.xml nor in content.xml. There are 46 repos listed in the <references> node but all use "http:" as protocol while my local repos use "file:"

I also deleted ~/.m2/repository/.cache/tycho but to no avail.

I have been using a target file before but I've deleted the Target Definition file, I deleted the commented out dependency in the target-platform-configuration Tycho plugin but the error doesn't go away. :-(


On 03/29/2012 08:17 AM, Aaron Digulla wrote:

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( at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.doResolvePlatform( at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.resolvePlatform( at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject( at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(
       at org.apache.maven.DefaultMaven.doExecute(
       at org.apache.maven.DefaultMaven.execute(
       at org.apache.maven.cli.MavenCli.execute(
       at org.apache.maven.cli.MavenCli.doMain(
       at org.apache.maven.cli.MavenCli.main(
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke( at sun.reflect.DelegatingMethodAccessorImpl.invoke(
       at java.lang.reflect.Method.invoke(
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced( at org.codehaus.plexus.classworlds.launcher.Launcher.launch( at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode( at org.codehaus.plexus.classworlds.launcher.Launcher.main( Caused by: org.eclipse.equinox.p2.core.ProvisionException: No repository found at file:/home/user/repo-1.0 at at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository( at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository( at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository( at org.eclipse.tycho.p2.impl.resolver.ResolutionContextImpl.addP2Repository(
       ... 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.


tycho-user mailing list

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."         

Back to the top