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:
parent
e9549c0bf4
commit
2002914171
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user