Added install, install-snapshot, deploy, deploy-snapshot goals

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113576 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
michal
2003-07-03 09:01:53 +00:00
parent 0ae8ac50b1
commit e25dab5bd6
3 changed files with 84 additions and 4 deletions

View File

@@ -1,7 +1,9 @@
<?xml version="1.0"?>
<project xmlns:j="jelly:core"
xmlns:velocity="jelly:org.apache.commons.jelly.tags.velocity.VelocityTagLibrary">
<project
xmlns:j="jelly:core"
xmlns:velocity="jelly:org.apache.commons.jelly.tags.velocity.VelocityTagLibrary"
xmlns:artifact="artifact">
<!--==================================================================-->
<!-- Default goal : Builds a uberjar file -->
@@ -16,7 +18,8 @@
<!--==================================================================-->
<goal name="uberjar:init">
<property name="dest" value="${maven.build.dir}/uberjar"/>
<property name="maven.uberjar.final.name" value="${maven.build.dir}/${maven.final.name}-uber.jar"/>
<property name="dest" value="${maven.build.dir}/uberjar"/>
<property name="inf" value="${dest}/WORLDS-INF"/>
<property name="libdir" value="${inf}/lib"/>
<property name="confdir" value="${inf}/conf"/>
@@ -74,7 +77,7 @@
<!-- Jar it all up -->
<jar
jarfile="${maven.build.dir}/${maven.final.name}-uber.jar"
jarfile="${maven.uberjar.final.name}"
basedir="${dest}">
<manifest>
<attribute name="Built-By" value="${user.name}"/>
@@ -116,5 +119,63 @@ to be invoked.
template="classworlds.conf"/>
</goal>
<!--==================================================================-->
<!-- Install the uberjar in the local repository -->
<!--==================================================================-->
<goal name="uberjar:install"
prereqs="uberjar:uberjar"
description="Install the uberjar in the local repository">
<artifact:install
artifact="${maven.uberjar.final.name}"
type="uberjar"
project="${pom}"/>
</goal>
<!--=====================================================================-->
<!-- Install the snapshot version of the uberjar in the local repository -->
<!--=====================================================================-->
<goal name="uberjar:install-snapshot"
prereqs="uberjar:uberjar"
description="Install the snapshot version of the uberjar in the local repository">
<artifact:install-snapshot
artifact="${maven.uberjar.final.name}"
type="uberjar"
project="${pom}"/>
</goal>
<!--==================================================================-->
<!-- Deploys the uberjar to the remote repository -->
<!--==================================================================-->
<goal name="uberjar:deploy"
prereqs="uberjar:uberjar"
description="Deploys the uberjar to the remote repository">
<artifact:deploy
artifact="${maven.uberjar.final.name}"
type="uberjar"
project="${pom}"/>
</goal>
<!--==================================================================-->
<!-- Deploys the snapshot of the uberjar to the remote repository -->
<!--==================================================================-->
<goal name="uberjar:deploy-snapshot"
prereqs="uberjar:uberjar"
description="Deploys the snapshot version of the uberjar to remote repository">
<artifact:deploy-snapshot
artifact="${maven.uberjar.final.name}"
type="uberjar"
project="${pom}"/>
</goal>
</project>

View File

@@ -17,6 +17,9 @@
Created uberjar plugin based on the cool bootstrapping code that
Jason and Bob worked out!
</action>
<action dev="michal" type="add">
Added install, install-snapshot, deploy, deploy-snapshot goals
</action>
</release>
</body>
</document>

View File

@@ -17,5 +17,21 @@
</description>
</goal>
</goals>
<goal>
<name>uberjar:install</name>
<description>Install the uberjar in the local repository</description>
</goal>
<goal>
<name>uberjar:install-snapshot</name>
<description>Install the snapshot version of the uberjar in the local repository</description>
</goal>
<goal>
<name>uberjar:deploy</name>
<description>Deploy the uberjar to the remote repository(ies)</description>
</goal>
<goal>
<name>uberjar:deploy-snapshot</name>
<description>Deploy the snapshot version of the uberjar to the remote repository(ies)</description>
</goal>
</body>
</document>