jvanzyl 2003/03/26 07:50:05
Modified: src/plugins-build/pom plugin.jelly
Log:
o new home for the pom:deploy plugin and added a pom:install goal as well.
Revision Changes Path
1.4 +40 -0 maven/src/plugins-build/pom/plugin.jelly
Index: plugin.jelly
===================================================================
RCS file: /home/cvs/maven/src/plugins-build/pom/plugin.jelly,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- plugin.jelly 11 Feb 2003 23:54:00 -0000 1.3
+++ plugin.jelly 26 Mar 2003 15:50:05 -0000 1.4
@@ -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 -->
@@ -68,6 +69,45 @@
name="pom:update"
description="Update the POM from its current version to a specified version">
+ </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>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]