[ 
http://jira.codehaus.org/browse/MANTTASKS-67?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_93993
 ] 

David N'DIAYE commented on MANTTASKS-67:
----------------------------------------

I'm sorry, it is my first jira, and i'm newby with your formatting notation.
I can't modify my description, so i copy it in this comment with a good format :
-----
-- The zip file contains test with Ant. To launch it : {color:red}*{{ant 
test.}}*{color}
----
I try to deploy a snapshot artifact in repository
-- my pom.xml contains a version with the extension '-SNAPSHOT'
-- in my build file Ant i do this :
{code:xml}
<artifact:deploy file="lib/${pom.artifactId}.jar">
   <remoteRepository url="file:./repository" />
   <pom refid="pom" />
</artifact:deploy>
{code}

In the repository the name of the artifact is 
{code:xml}<artifactId>-<version>-SNAPSHOT.<packaging>  <!-- Wrong Format --> 
{code} instead of 
{code:xml}<artifactId>-<version>-<date>.<time>-<buildNumber>-<packaging>{code}

----

Another problem, i try to upload *2 attachments* with my artifact ({{javadoc}} 
and {{java-source}}), and the *buildNumber* in the {{maven-metadata.xml}} 
increment by {color:red}*3*{color} instead of *1*
{code:xml}<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>{code}
You can test it with : {color:red}*{{ant testWithAttach.}}*{color}


> artifact:deploy - The name of deploying element in snapshot repository is 
> wrong
> -------------------------------------------------------------------------------
>
>                 Key: MANTTASKS-67
>                 URL: http://jira.codehaus.org/browse/MANTTASKS-67
>             Project: Maven 2.x Ant Tasks
>          Issue Type: Bug
>    Affects Versions: 2.0.6
>            Reporter: David N'DIAYE
>         Attachments: testSnapshots.zip
>
>
> 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

-- 
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

        

Reply via email to