[ http://jira.codehaus.org/browse/MNG-4452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=250857#action_250857 ]
Andrei Pozolotin commented on MNG-4452: --------------------------------------- I guess, I must clarify: 1) yes I see in 3.0.1 that shapshots metadata does includes classifier; 2) the problem is that resolver still does not find attached artifacts form previous deployments; for example, this is repo metadata after 2 deployments: note, that artifacts of interest are (build 83 and 84): com.barchart.udt:barchart-udt4:1.0.2-20110108.023638-83:i386-Linux-g++-jni:nar com.barchart.udt:barchart-udt4:1.0.2-20110108.023723-84:amd64-Linux-g++-jni:nar ############################################################## <metadata modelVersion="1.1.0"> <groupId>com.barchart.udt</groupId> <artifactId>barchart-udt4</artifactId> <version>1.0.2-SNAPSHOT</version> − <versioning> − <snapshot> <timestamp>20110108.023723</timestamp> <buildNumber>84</buildNumber> </snapshot> <lastUpdated>20110108023723</lastUpdated> − <snapshotVersions> − <snapshotVersion> <extension>jar</extension> <value>1.0.2-20110108.023723-84</value> <updated>20110108023723</updated> </snapshotVersion> − <snapshotVersion> <extension>pom</extension> <value>1.0.2-20110108.023723-84</value> <updated>20110108023723</updated> </snapshotVersion> − <snapshotVersion> <classifier>noarch</classifier> <extension>nar</extension> <value>1.0.2-20110108.023723-84</value> <updated>20110108023723</updated> </snapshotVersion> − <snapshotVersion> <classifier>i386-Linux-g++-jni</classifier> <extension>nar</extension> <value>1.0.2-20110108.023638-83</value> <updated>20110108023638</updated> </snapshotVersion> − <snapshotVersion> <classifier>amd64-Linux-g++-jni</classifier> <extension>nar</extension> <value>1.0.2-20110108.023723-84</value> <updated>20110108023723</updated> </snapshotVersion> </snapshotVersions> </versioning> </metadata> ############################################################## and this is dependency declaration, I want 1 jar and 2 nar, platform dependent: ############################################################## <dependency> <groupId>com.barchart.udt</groupId> <artifactId>barchart-udt4</artifactId> <version>${barchart.version}</version> <type>jar</type> </dependency> <dependency> <groupId>com.barchart.udt</groupId> <artifactId>barchart-udt4</artifactId> <version>${barchart.version}</version> <classifier>i386-Linux-g++-jni</classifier> <type>nar</type> </dependency> <dependency> <groupId>com.barchart.udt</groupId> <artifactId>barchart-udt4</artifactId> <version>${barchart.version}</version> <classifier>amd64-Linux-g++-jni</classifier> <type>nar</type> </dependency> ############################################################## and this is the error: ############################################################## [INFO] Scanning for projects... [INFO] snapshot com.barchart.udt:barchart-udt4-parent:1.0.0-SNAPSHOT: checking for updates from sonatype-nexus-snapshots [INFO] ------------------------------------------------------------------------ [INFO] Building Unnamed - com.barchart.udt:barchart-udt4-bundle:jar:1.0.0-SNAPSHOT [INFO] task-segment: [validate] [INFO] ------------------------------------------------------------------------ [INFO] snapshot com.barchart.udt:barchart-udt4:1.0.2-SNAPSHOT: checking for updates from sonatype-nexus-snapshots Downloading: https://oss.sonatype.org/content/repositories/snapshots/com/barchart/udt/barchart-udt4/1.0.2-SNAPSHOT/barchart-udt4-1.0.2-20110108.023723-84.pom Downloading: https://oss.sonatype.org/content/repositories/snapshots/com/barchart/udt/barchart-udt4/1.0.2-SNAPSHOT/barchart-udt4-1.0.2-20110108.023723-84.jar 78K downloaded (barchart-udt4-1.0.2-20110108.023723-84.jar) Downloading: https://oss.sonatype.org/content/repositories/snapshots/com/barchart/udt/barchart-udt4/1.0.2-SNAPSHOT/barchart-udt4-1.0.2-20110108.023723-84-i386-Linux-g++-jni.nar Downloading: https://oss.sonatype.org/content/repositories/snapshots/com/barchart/udt/barchart-udt4/1.0.2-SNAPSHOT/barchart-udt4-1.0.2-20110108.023723-84-amd64-Linux-g++-jni.nar [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. ############################################################## in other words, the resolver tries to find barchart-udt4-1.0.2-20110108.023723-84-i386-Linux-g++-jni.nar and barchart-udt4-1.0.2-20110108.023723-84-amd64-Linux-g++-jni.nar both from latest build #84, instead of looking through the versioning in order to find the file that actually exists in build #83: barchart-udt4-1.0.2-20110108.023638-83:i386-Linux-g++-jni.nar > Metadata for snapshots should include classifier > ------------------------------------------------ > > Key: MNG-4452 > URL: http://jira.codehaus.org/browse/MNG-4452 > Project: Maven 2 & 3 > Issue Type: Improvement > Components: Artifacts and Repositories > Affects Versions: 2.2.1, 3.0-alpha-4 > Reporter: Paul Benedict > Assignee: Benjamin Bentmann > Fix For: 3.0 > > > Please see the whole conversation here: > http://old.nabble.com/Multi-Platform-snapshots-td25295999.html > Essentially, an artifact's classifier isn't included in the repository's > metadata of a snapshot. This makes it difficult (impossible?) to deploy > multiply snapshots with different classifiers. The primary use case is to > continuously build an artifact for different environments. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira