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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to