o new home for the pom:deploy plugin and added a pom:install goal as well.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113197 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
jvanzyl
2003-03-26 15:50:05 +00:00
parent 447dcda9bb
commit 4f1f51d20b

View File

@@ -5,6 +5,7 @@
xmlns:d="jelly:define"
xmlns:v="jelly:validate"
xmlns:x="jelly:xml"
xmlns:deploy="deploy"
xmlns:pom="pom">
<!-- set up validation tag library -->
@@ -70,4 +71,43 @@
</goal>
<!-- ========================================================================== -->
<!-- I N S T A L L P O M -->
<!-- ========================================================================== -->
<goal name="pom:install"
description="Install POM in the local repository.">
<copy
file="project.xml"
tofile="${maven.repo.local}/${pom.groupId}/poms/${pom.artifactId}-${pom.currentVersion}.pom"/>
</goal>
<!-- ========================================================================== -->
<!-- D E P L O Y P O M -->
<!-- ========================================================================== -->
<!-- POMs are deployed in the form ${pom.artifactId}-${pom.currentVersion}.pom -->
<!-- to match the same versioning convention as JARs. Having the POMs -->
<!-- deployed during each release will allow someone to build any -->
<!-- version of a project reliably. -->
<!-- ========================================================================== -->
<goal name="pom:deploy"
description="Deploy POM to the central repository.">
<copy
file="project.xml"
tofile="${pom.artifactId}-${pom.currentVersion}.pom"/>
<deploy:artifact
artifact="${pom.artifactId}-${pom.currentVersion}.pom"
type="poms"
assureDirectoryCommand="mkdir -p"
/>
<delete file="${pom.artifactId}-${pom.currentVersion}.pom"/>
</goal>
</project>