You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Chris Schmidt (JIRA)" <ji...@codehaus.org> on 2014/03/21 19:13:59 UTC
[jira] (MDEP-438) When classifier and main jar are on different
SNAPSHOT builds, the wrong build is retrieved
Chris Schmidt created MDEP-438:
----------------------------------
Summary: When classifier and main jar are on different SNAPSHOT builds, the wrong build is retrieved
Key: MDEP-438
URL: https://jira.codehaus.org/browse/MDEP-438
Project: Maven Dependency Plugin
Issue Type: Bug
Components: copy
Affects Versions: 2.8
Reporter: Chris Schmidt
In our repository we have 3 versions of an artifact being deployed at different intervals differentiated by a classifier -
artifact.war
artifact-classifier.war
artifact-classes.jar
In our pom file we are attempting to copy the main war but a classifier war has been deployed after the last deploy of the main war, so the maven-metadata.xml file looks similar to this:
{code:xml}
<metadata modelVersion="1.1.0">
<groupId>com.mycompany</groupId>
<artifactId>artifact</artifactId>
<version>1.0.0-SNAPSHOT</version>
<versioning>
<snapshot>
<timestamp>20140321.173622</timestamp>
<buildNumber>100</buildNumber>
</snapshot>
<lastUpdated>20140321173622</lastUpdated>
<snapshotVersions>
<snapshotVersion>
<extension>pom</extension>
<value>1.0.0-20140321.173622-100</value>
<updated>20140321173622</updated>
</snapshotVersion>
<snapshotVersion>
<extension>war</extension>
<value>1.0.0-20140321.173040-99</value>
<updated>20140321173040</updated>
</snapshotVersion>
<snapshotVersion>
<classifier>classes</classifier>
<extension>jar</extension>
<value>1.0.0-20140321.173622-100</value>
<updated>20140321173622</updated>
</snapshotVersion>
<snapshotVersion>
<classifier>classifier</classifier>
<extension>war</extension>
<value>1.0.0-20140321.173622-100</value>
<updated>20140321173622</updated>
</snapshotVersion>
</snapshotVersions>
</versioning>
</metadata>
{code}
So the main war is on build 99, while the classifier and classes builds are on build 100.
It appears the dependency plugin is ignoring the <snapshotVersions> elements and using the value in the <snapshot> element regardless of classifier.
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)