You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Yo...@gd-ais.com on 2004/01/07 22:43:17 UTC

artifact:deploy-snapshot expects JAR with ${maven.final.name}

Here is my maven.xml:

<project 
  xmlns:artifact="artifact"
  default="asset:deploy">
  <goal name="asset:deploy">
    <attainGoal name="jar:snapshot"/>
    <artifact:deploy-snapshot 
     artifact="${maven.build.dir}/${maven.final.name}.jar"
     type="jar"
     project="${pom}"/>
  </goal>
</project>

When I run asset:deploy, I get the following:

BUILD FAILED
File...... file:/C:/eclipse/workspace/asset/
Element... artifact:deploy-snapshot
Line...... 12
Column.... 24
Artifact file: 'C:\eclipse\workspace\asset/target/asset-1.0.jar' must exist
Total time: 6 seconds
Finished at: Wed Jan 07 13:30:41 PST 2004

According to the artifact plugin documentation, 

During deloyment following files are put to remote repository: 
*	Timestamped Artifact file 
*	MD5 checksum file of timestamped artifact file 
*	Artifact file with version marked as SNAPSHOT 
*	MD5 checksum file of this file 
*	${artifactId}-snapshot-version 

If the plugin wants to deploy the artifact marked with SNAPSHOT, why is it
looking for asset-1.0.jar?  Also, when I run the goal jar:snapshot, I get a
JAR with the timestamp, but no SNAPSHOT JAR.  Shouldn't an artifact be
created and tagged with SNAPSHOT?

Yoway Buorn
Software Engineer
Imagery Systems Engineering

GENERAL DYNAMICS
Advanced Information Systems

"Make me a fire and I'm warm for a night.  Set me on fire and I'm warm for
the rest of my life." -- Ancient Didactical Saying



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: artifact:deploy-snapshot expects JAR with ${maven.final.name}

Posted by Michal Maczka <mm...@interia.pl>.
[...]
> If the plugin wants to deploy the artifact marked with SNAPSHOT, why is it
> looking for asset-1.0.jar?

because you have asked it to

attribute "artifact" of artifact:deploy tag simply should point to the file
which will be deployed.
It can be any file located wherever you want.

in your case you have chosen ${maven.build.dir}/${maven.final.name}.jar



Simply try to read
>     <artifact:deploy-snapshot
>      artifact="${maven.build.dir}/${maven.final.name}.jar"
>      type="jar"
>      project="${pom}"/>

as

     <artifact:deploy-snapshot

pathToFileYouWantToDeployAsSnapshot="${maven.build.dir}/${maven.final.name}.
jar"
      type="jar"
      project="${pom}"/>

>Also, when I run the goal
> jar:snapshot, I get a
> JAR with the timestamp, but no SNAPSHOT JAR.  Shouldn't an artifact be
> created and tagged with SNAPSHOT?
>
>
No.





Michal





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org