michal 2003/06/29 05:23:07
Modified: src/plugins-build/pom plugin.jelly
Log:
maven-artifact-plugin used for deployment/installation
Revision Changes Path
1.9 +47 -18 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.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- plugin.jelly 20 Apr 2003 06:32:20 -0000 1.8
+++ plugin.jelly 29 Jun 2003 12:23:07 -0000 1.9
@@ -3,9 +3,10 @@
<project
xmlns:j="jelly:core"
xmlns:d="jelly:define"
- xmlns:deploy="deploy"
xmlns:pom="pom"
- xmlns:util="jelly:util">
+ xmlns:util="jelly:util"
+ xmlns:artifact="artifact"
+ >
<!-- set up pom tag library -->
<d:taglib uri="pom">
@@ -74,10 +75,10 @@
<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"/>
-
+ <artifact:install
+ artifact="project.xml"
+ type="pom"
+ project="${pom}"/>
</goal>
<!-- ==========================================================================
-->
@@ -91,19 +92,47 @@
<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"/>
+
+ <artifact:deploy
+ artifact="project.xml"
+ type="pom"
+ project="${pom}"/>
+ </goal>
+
+
+
+
+ <!--==================================================================-->
+ <!-- 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>
+
+
+
+ <!--==================================================================-->
+ <!-- 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>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]