You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Emmanuel Boudrant <em...@free.fr> on 2004/06/09 00:03:16 UTC
maven-jar-plugin deployment method
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org