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

Probably you have this com.project.tycho:parent:0.0.1-SNAPSHOT installed
in local repo and that's why it gets resolved even if relativePath is
not correct.

On 03/30/2012 02:13 AM, Aaron Digulla wrote:
> Zitat von Aaron Digulla <digulla@xxxxxxxx>:
>
>> 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.
>>> Denis
>>
>> 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. :-(
>
> Okay, I've found the culprit. I had this in the POM of my update site:
>
> <parent>
> <groupId>com.project.tycho</groupId>
> <artifactId>parent</artifactId>
> <version>0.0.1-SNAPSHOT</version>
> <relativePath>../pom.xml</relativePath>
> </parent>
>
> Only the version of ../pom.xml is 2.2.0-SNAPSHOT.
>
> Maven warns when the relativePath points to a POM with a different
> coordinate; maybe it should warn about a version conflict, too?
>
> Regards,
>
>>> On 03/29/2012 08:17 AM, Aaron Digulla wrote:
>>>> 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,
>>>>
>>>
>>> _______________________________________________
>>> tycho-user mailing list
>>> tycho-user@xxxxxxxxxxx
>>> https://dev.eclipse.org/mailman/listinfo/tycho-user
>>>
>>>
>>
>>
>>
>> -- 
>> 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/
>> _______________________________________________
>> tycho-user mailing list
>> tycho-user@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/tycho-user
>>
>>
>
>
>



Back to the top