[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Deployed bundles in Nexus as dependencies in standard maven project

I have a Tycho project and a CI build. The CI build publishes the
SNAPSHOTs to a corporate Nexus instance. I would like to use some of
these bundles as dependencies in a separate Maven (non-Tycho) project.
To this project they would just be normal jars. In my build I set up the
dependencies as you'd expect:

<dependency>
 <groupId>com.myco</groupId>
 <artifactId>com.myco.plugin</artifactId>
 <version>0.0.1-SNAPSHOT</version>
 <type>jar</type>
</dependency>

However, when I build the project I get the following warning a few
times for the dependency and it's parents and followed by a build
failure:

[WARNING] Could not transfer metadata
com.myco:com.myco.plugin:0.0.1-SNAPSHOT/maven-metadata.xml from/to
indigo (http://download.eclipse.org/releases/indigo): No connector
available to access repository indigo
(http://download.eclipse.org/releases/indigo) of type p2 using the
available factories WagonRepositoryConnectorFactory

[ERROR] Failed to execute goal on project my-ejb: Could not resolve
dependencies for project com.myco:my-ejb:0.0.1-SNAPSHOT: Failed to
collect dependencies for [javax.persistence:persistence-api:jar:1.0
(provided), javax:javaee-api:jar:6.0 (provided),
com.myco:com.myco.plugin:jar:0.0.1-SNAPSHOT (compile)]: Failed to read
artifact descriptor for com.myco:com.myco.plugin:jar:0.0.1: Could not
transfer artifact com.myco:com.myco.plugin:pom:0.0.1 from/to indigo
(http://download.eclipse.org/releases/indigo): No connector available to
access repository indigo (http://download.eclipse.org/releases/indigo)
of type p2 using the available factories WagonRepositoryConnectorFactory
-> [Help 1]


So why would p2 be involved at all? It is just a jar living in Nexus
that happened to be produced by tycho.

I did find that the maven-metadata-nexus.xml does contain a reference to
a snapshot version with classifiers related to p2:


     <snapshotVersion>
        <classifier>p2metadata</classifier>
        <extension>xml</extension>
        <value>0.0.1-20120906.211600-15</value>
        <updated>20120906211600</updated>
      </snapshotVersion>
      <snapshotVersion>
        <classifier>p2artifacts</classifier>
        <extension>xml</extension>
        <value>0.0.1-20120906.211600-15</value>
        <updated>20120906211600</updated>
      </snapshotVersion>

Does any of this make sense?

Thank you,

Ben