Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] exception resolving target

You don't have file://, you have file:/ in your target definition.
                location="file:/Users/Christophe/Documents/Projects/NetXStudio/Target.tycho/peaberry.p2/" />
Shouldn't it look more like this?
                location="file:///Users/Christophe/Documents/Projects/NetXStudio/Target.tycho/peaberry.p2/" />

Either way, the exception looks indeed weird, but the stack trace makes it obvious that the metadata for one of repositories in target definition could not be loaded. Since Jenkins server is on a different machine, this can be anything ranging from unavailability of peaberry.p2 local repository at the specified path, to unavailability of some remote http:// repository. If I were you, I'd run tycho with -Dtycho.debug.resolver=artifactid option to at least see which repo causes the problem.

/Mikhail


Från: "Christophe Bouhier" <dzonekl@xxxxxxxxx>
Till: "Tycho user list" <tycho-user@xxxxxxxxxxx>
Skickat: torsdag, 12 sep 2013 16:35:34
Ämne: Re: [tycho-user] exception resolving target

Yes, I am aware of the file://  This gets resolved by tycho nicely on my local machine.
On the jenkins server however the path is different, and the URL will not be valid, but the Exception doesn't
really give any clue...

Thanks Anyway.


On Thu, Sep 12, 2013 at 3:51 PM, Jeff MAURY <jeffmaury@xxxxxxxxxxxxx> wrote:
You've got a file: repository reference in your target definition. But the error is quite strange and don't seem to be related.

Regards
Jeff


On Thu, Sep 12, 2013 at 3:38 PM, Christophe Bouhier <dzonekl@xxxxxxxxx> wrote:
Hi, 

When I run my pom.xml on my local machine the dependency resolving an build works nicely. 
When I run it with Jenkins, I get an exception. The Mvn version is the same on both machines. 
Could this error be related to the content of the target itself or is this somethingelse
? (I list part of the .target below).


!ENTRY org.eclipse.equinox.p2.metadata.repository 4 0 2013-09-11 15:54:49.315 !MESSAGE Unexpected error loading extension: org.eclipse.equinox.p2.updatesite.metadataRepository !STACK 0 java.lang.ClassCastException: org.eclipse.tycho.p2.remote.RemoteMetadataRepositoryManager cannot be cast to org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager at org.eclipse.equinox.internal.p2.metadata.repository.LocalMetadataRepository.setProperty(LocalMetadataRepository.java:326) at org.eclipse.equinox.p2.repository.spi.AbstractRepository.setProperty(AbstractRepository.java:189) at org.eclipse.equinox.internal.p2.updatesite.metadata.UpdateSiteMetadataRepositoryFactory.resetCache(UpdateSiteMetadataRepositoryFactory.java:82) at org.eclipse.equinox.internal.p2.updatesite.metadata.UpdateSiteMetadataRepositoryFactory.load(UpdateSiteMetadataRepositoryFactory.java:61) at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.factoryLoad(MetadataRepositoryManager.java:57) at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:768) at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:668) at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:96) at org.eclipse.tycho.p2.remote.RemoteMetadataRepositoryManager.loadRepository(RemoteMetadataRepositoryManager.java:55) at org.eclipse.tycho.p2.remote.RemoteMetadataRepositoryManager.loadRepository(RemoteMetadataRepositoryManager.java:48) at org.eclipse.tycho.p2.target.TargetDefinitionResolver.loadRepository(TargetDefinitionResolver.java:188) at org.eclipse.tycho.p2.target.TargetDefinitionResolver.resolveContent(TargetDefinitionResolver.java:109) at org.eclipse.tycho.p2.target.TargetDefinitionResolverService.resolveFromArguments(TargetDefinitionResolverService.java:65) at org.eclipse.tycho.p2.target.TargetDefinitionResol


Thank You, 
Christophe



<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?><target name="netxstudio_kepler" sequenceNumber="70">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="slicer" includeSource="true" type="InstallableUnit">
<unit id="org.peaberry.artifacts.feature.feature.group" version="1.0.0.201308301546"/>
<repository location="file:/Users/Christophe/Documents/Projects/NetXStudio/Target.tycho/peaberry.p2/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="slicer" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.nebula.widgets.pagination.feature.feature.group" version="1.0.0.201307092148"/>
<unit id="org.eclipse.nebula.widgets.datechooser.feature.feature.group" version="1.0.0.201307092148"/>
<unit id="org.eclipse.nebula.widgets.collapsiblebuttons.feature.feature.group" version="1.0.0.201307092148"/>
<unit id="org.eclipse.nebula.widgets.formattedtext.feature.feature.group" version="1.0.0.201307092148"/>
<unit id="org.eclipse.nebula.widgets.radiogroup.feature.feature.group" version="0.1.0.201307092148"/>
<unit id="org.eclipse.nebula.widgets.picture.feature.feature.group" version="1.0.0.201307092148"/>
<unit id="org.eclipse.nebula.widgets.geomap.feature.feature.group" version="0.1.0.201307092148"/>
<unit id="org.eclipse.nebula.widgets.treemapper.feature.feature.group" version="0.1.0.201307092148"/>
<repository location="http://download.eclipse.org/technology/nebula/incubation/snapshot"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="slicer" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.nebula.widgets.pgroup.feature.feature.group" version="1.0.0.201307092147"/>
<unit id="org.eclipse.nebula.widgets.tablecombo.feature.feature.group" version="1.0.0.201307092147"/>
<unit id="org.eclipse.nebula.effects.stw.feature.feature.group" version="1.0.0.201307092147"/>
<unit id="org.e
etc....







_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user




--
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user



_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top