-
Type:
Bug
-
Status: Closed
-
Resolution: Deferred
-
Affects Version/s: 3.1.1.1
-
Fix Version/s: None
-
Component/s: Deployer
-
Labels:
-
Environment:
Server is RHEL Linux 6.5 with Oracle JDK 1.7 64-bit running Artifactory Pro 3.1.1.1
-
Severity:Low
I have a simple project that packages a ZIP file using the assembly plugin (tested with several versions but most recently with Maven 3.2.1 on OSX 10.9.2 with Oracle JDK 1.7 u55).
Excerpt from assembly.xml:
<id>abcdef</id>
<formats>
<format>zip</format>
</formats>
If I label the version 1.3.1-SNAPSHOT, it uploads fine with the GAVC and Type parameters all getting set correctly.
Dependency declaration from Artifactory when browsing the repo:
<dependency>
<groupId>au.com.mycompany.myproject</groupId>
<artifactId>my-artifact</artifactId>
<version>1.3.1-20140513.073835-1</version>
<classifier>abcdef</classifier>
<type>zip</type>
</dependency>
However, if the version in my pom is just 'SNAPSHOT', the behaviour changes and varies depending on the number of characters in the classifier.
With a classifier of 'a', we get:
<dependency>
<groupId>au.com.mycompany.myproject</groupId>
<artifactId>my-artifact</artifactId>
<version>SNAPSHOT-20140513.233221-6</version>
</dependency>
Note the type and classifier have been lost.
If I increase the size of the classifier beyond 5 characters (e.g. back to 'abcdef'), I get:
<dependency>
<groupId>au.com.mycompany.myproject</groupId>
<artifactId>my-artifact</artifactId>
<version>SNAPSHOT-20140513.231028-5</version>
<type>p</type>
</dependency>
With each additional character I add to the classifier, more and more letters appear in the 'type' and the classifier itself is never set. For instance with and id/classifier of <id>abcdefghih</id>, I get:
<dependency>
<groupId>au.com.mycompany.myproject</groupId>
<artifactId>my-artifact</artifactId>
<version>SNAPSHOT-20140513.234023-8</version>
<type>h.zip</type>
</dependency>
It appears the version, classifier and type are getting mangled in the deployment, though I believe what I am doing is legitimate. Of course, if the simple version 'SNAPSHOT' is not permitted, this should return an error rather than allowing the upload, but then mangling the meta-data.