Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.6, 2.0.7
-
Fix Version/s: 2.0.8
-
Component/s: deploy task
-
Labels:None
-
Testcase included:yes
-
Patch Submitted:Yes
-
Number of attachments :
Description
The zip file contains test with Ant.
To launch it : ant test.
I try to deploy a snapshot artifact in repository
So, my pom.xml contains a version with the extension '-SNAPSHOT'
And in my build file Ant i do this :
<artifact:deploy file="lib/$
<remoteRepository url="file:./repository" />
<pom refid="pom" />
</artifact:deploy>
In the repository the name of the artifact is <artifactId><version>
Another problem, i try to upload 2 attachments with my artifact (javadoc and java-source), and the buildNumber in the meta-data.xml increment by 3 instead of 1
<artifact:deploy file="lib/${pom.artifactId}
.jar">
<remoteRepository url="file:./repository" />
<pom refid="pom" />
<attach file="./lib/$
<attach file="./lib/${pom.artifactId}
-api.zip" type="javadoc"/>
</artifact:deploy>
You can test it with : ant testWithAttach
Issue Links
- duplicates
-
MANTTASKS-23
antlib:deploy doesn't set correct snapshot version
-
Activity
Herve Boutemy
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Link |
This issue duplicates |
Herve Boutemy
made changes -
| Component/s | deploy task [ 12845 ] |
Herve Boutemy
made changes -
| Attachment | MANTTASKS-67.diff [ 28616 ] |
Herve Boutemy
made changes -
| Patch Submitted | [Yes] | |
| Fix Version/s | 2.0.8 [ 13618 ] | |
| Affects Version/s | 2.0.7 [ 13521 ] |
Herve Boutemy
made changes -
| Attachment |
|
Herve Boutemy
made changes -
| Attachment | MANTTASKS-67.diff [ 28624 ] |
Herve Boutemy
made changes -
| Assignee | Herve Boutemy [ hboutemy ] | |
| Original Estimate | 0 minutes [ 0 ] | |
| Description |
The zip file contains test with Ant. To launch it : ant test. I try to deploy a snapshot artifact in repository So, my pom.xml contains a version with the extension '-SNAPSHOT' And in my build file Ant i do this : <artifact:deploy file="lib/${pom.artifactId}.jar"> <remoteRepository url="file:./repository" /> <pom refid="pom" /> </artifact:deploy> In the repository the name of the artifact is <artifactId>-<version>-SNAPSHOT.<packaging> instead of <artifactId>-<version>-<date>.<time>-<buildNumber>-<packaging> Another problem, i try to upload 2 attachments with my artifact (javadoc and java-source), and the buildNumber in the meta-data.xml increment by 3 instead of 1 <artifact:deploy file="lib/${pom.artifactId}.jar"> <remoteRepository url="file:./repository" /> <pom refid="pom" /> <attach file="./lib/${pom.artifactId}-src.jar" type="java-source"/> <attach file="./lib/${pom.artifactId}-api.zip" type="javadoc"/> </artifact:deploy> You can test it with : ant testWithAttach |
The zip file contains test with Ant. To launch it : ant test. I try to deploy a snapshot artifact in repository So, my pom.xml contains a version with the extension '-SNAPSHOT' And in my build file Ant i do this : <artifact:deploy file="lib/${pom.artifactId}.jar"> <remoteRepository url="file:./repository" /> <pom refid="pom" /> </artifact:deploy> In the repository the name of the artifact is <artifactId><version>-SNAPSHOT.<packaging> instead of <artifactId><version><date>.<time><buildNumber>-<packaging> Another problem, i try to upload 2 attachments with my artifact (javadoc and java-source), and the buildNumber in the meta-data.xml increment by 3 instead of 1 <artifact:deploy file="lib/${pom.artifactId}.jar"> <remoteRepository url="file:./repository" /> <pom refid="pom" /> <attach file="./lib/${pom.artifactId}-src.jar" type="java-source"/> <attach file="./lib/${pom.artifactId}-api.zip" type="javadoc"/> </artifact:deploy> You can test it with : ant testWithAttach |
| Remaining Estimate | 0 minutes [ 0 ] |
Herve Boutemy
made changes -
| Resolution | Fixed [ 1 ] | |
| Status | Open [ 1 ] | Closed [ 6 ] |
this seem to be a duplicate from
MANTTASKS-23