Fixed with <uniqueVersion>false</uniqueVersion> in
distributionManagement tag.
I hope we won't have new issues because of this (non updated artifacts,
...).
Thanks
Julien CARSIQUE a écrit :
Hello,
We encounter a new issue with snapshots resolution on Maven 2.0.10
(for now, we cannot migrate to 2.1 or 2.2)
Some of our modules may generate various builds depending on the
active profiles. We distinguish those builds with classifiers but
those various builds are not (and cannot) be generated during the same
maven execution.
Resolving the snapshot and looking for the wanted artifact, Maven
looks for an artifact with the wanted artifact and classifier but with
the snapshot keyword resolution based on the last updated metadata,
corresponding to one classifier only.
Here is a sample case:
- we deploy
org.nuxeo.ecm.distribution:nuxeo-distribution-jboss:5.3.1-SNAPSHOT:nuxeo-ep:zip
=>
org/nuxeo/ecm/distribution/nuxeo-distribution-jboss/5.3.1-SNAPSHOT/nuxeo-distribution-jboss-5.3.1-20091029.115623-10.pom
=>
org/nuxeo/ecm/distribution/nuxeo-distribution-jboss/5.3.1-SNAPSHOT/nuxeo-distribution-jboss-5.3.1-20091029.115623-10-nuxeo-ep.zip
- then we deploy
org.nuxeo.ecm.distribution:nuxeo-distribution-jboss:5.3.1-SNAPSHOT:nuxeo-dm:zip
=>
org/nuxeo/ecm/distribution/nuxeo-distribution-jboss/5.3.1-SNAPSHOT/nuxeo-distribution-jboss-5.3.1-20091029.122446-11.pom
=>
org/nuxeo/ecm/distribution/nuxeo-distribution-jboss/5.3.1-SNAPSHOT/nuxeo-distribution-jboss-5.3.1-20091029.122446-11-nuxeo-dm.zip
-
org/nuxeo/ecm/distribution/nuxeo-distribution-jboss/5.3.1-SNAPSHOT/maven-metadata.xml
contains:
<metadata>
<groupId>org.nuxeo.ecm.distribution</groupId>
<artifactId>nuxeo-distribution-jboss</artifactId>
<version>5.3.1-SNAPSHOT</version>
<versioning>
<snapshot>
<timestamp>20091029.122446</timestamp>
<buildNumber>11</buildNumber>
</snapshot>
<lastUpdated>20091029122932</lastUpdated>
</versioning>
</metadata>
Trying to build a project depending on nuxeo-ep classifier, we get the
following issue:
Downloading:
.../org/nuxeo/ecm/distribution/nuxeo-distribution-jboss/5.3.1-SNAPSHOT/nuxeo-distribution-jboss-5.3.1-20091029.122446-11-nuxeo-ep.zip
[ERROR] BUILD ERROR
[INFO] Failed to resolve artifact.
Missing:
----------
1)
org.nuxeo.ecm.distribution:nuxeo-distribution-jboss:zip:nuxeo-ep:5.3.1-SNAPSHOT
Do you know this issue ? Is it fixed in new versions ? Do you have a
work around ?
Best regards,
Julien
--
Julien Carsique, Nuxeo (Paris, France)
www.nuxeo.com - The Open Source ECM Platform - www.nuxeo.org
Nuxeo ECM Stack - The Java EE, scalable, standard-based ECM Platform
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]