maven-artifact-plugin used for deployment/installation

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113542 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
michal 2003-06-29 12:23:07 +00:00
parent e9549c0bf4
commit 2002914171

View File

@ -3,9 +3,10 @@
<project <project
xmlns:j="jelly:core" xmlns:j="jelly:core"
xmlns:d="jelly:define" xmlns:d="jelly:define"
xmlns:deploy="deploy"
xmlns:pom="pom" xmlns:pom="pom"
xmlns:util="jelly:util"> xmlns:util="jelly:util"
xmlns:artifact="artifact"
>
<!-- set up pom tag library --> <!-- set up pom tag library -->
<d:taglib uri="pom"> <d:taglib uri="pom">
@ -74,10 +75,10 @@
<goal name="pom:install" <goal name="pom:install"
description="Install POM in the local repository."> description="Install POM in the local repository.">
<copy <artifact:install
file="project.xml" artifact="project.xml"
tofile="${maven.repo.local}/${pom.groupId}/poms/${pom.artifactId}-${pom.currentVersion}.pom"/> type="pom"
project="${pom}"/>
</goal> </goal>
<!-- ========================================================================== --> <!-- ========================================================================== -->
@ -92,18 +93,46 @@
<goal name="pom:deploy" <goal name="pom:deploy"
description="Deploy POM to the central repository."> description="Deploy POM to the central repository.">
<copy <artifact:deploy
file="project.xml" artifact="project.xml"
tofile="${pom.artifactId}-${pom.currentVersion}.pom"/> type="pom"
project="${pom}"/>
</goal>
<deploy:artifact
artifact="${pom.artifactId}-${pom.currentVersion}.pom"
type="poms"
assureDirectoryCommand="mkdir -p"
/>
<delete file="${pom.artifactId}-${pom.currentVersion}.pom"/>
<!--==================================================================-->
<!-- Install the snapshot version of the war in the local repository -->
<!--==================================================================-->
<goal name="pom:install-snapshot"
description="Install the snapshot version of the POM in the local repository">
<artifact:install-snapshot
artifact="project.xml"
type="pom"
project="${pom}"/>
</goal> </goal>
<!--==================================================================-->
<!-- Deploys the snapshot of the war to the remote repository -->
<!--==================================================================-->
<goal name="pom:deploy-snapshot"
description="Deploys the snapshot version of the POM to remote repository">
<artifact:deploy-snapshot
artifact="project.xml"
type="pom"
project="${pom}"/>
</goal>
</project> </project>