Hi,

Currently, maven-jar-plugin 1.5 use a different deployment method comparing to ear, war ... theses last use the tag artifact.
The advantage of artifact tag is we can deploy on windows OS (the only system used in our departement;).


Is it possible to fix this before maven 1.0 final release ?

The only thing to do is replace the deploy/install goals by this (Am I wrong?) and remove goal jar:snapshot :

* * <!--==================================================================-->
<!-- Deploys the jar to the remote repository -->
<!--==================================================================-->


 <goal name="jar:deploy"
       prereqs="jar:jar"
       description="Deploys the jar to the remote repository">

<artifact:deploy
artifact="${maven.build.dir}/${maven.final.name}.jar"
type="jar"
project="${pom}"/> </goal> <!--==================================================================-->
<!-- Deploys the snapshot of the jar to the remote repository -->
<!--==================================================================-->


<goal name="jar:deploy-snapshot"
prereqs="jar:jar"
description="Deploys the snapshot version of the jar to remote repository">


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


<!-- ================================================================== -->
<!-- I N S T A L L J A R -->
<!-- ================================================================== -->


<goal name="jar:install" prereqs="jar:jar"
description="Install the jar in the local repository">
<artifact:install
artifact="${maven.build.dir}/${maven.final.name}.jar"
type="jar"
project="${pom}"/> </goal>


<!-- ================================================================== -->
<!-- I N S T A L L S N A P S H O T -->
<!-- ================================================================== -->


 <goal
   name="jar:install-snapshot" prereqs="jar:snapshot"
   description="Install a snapshot jar in the local repository">

<artifact:install-snapshot
artifact="${maven.build.dir}/${maven.final.name}.jar"
type="jar"
project="${pom}"/> </goal>


When I can login to jira I will post a patch.

Thx,
emmanuel

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to