PR: MAVEN-1219

plugin install/uninstall now goals


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115068 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
brett 2004-04-28 03:33:50 +00:00
parent 4c6b1f8f71
commit d6da2b50ff
4 changed files with 57 additions and 4 deletions

View File

@ -43,18 +43,32 @@
description="Install the plugin jar, prepare Maven to expand it locally and clear caches">
<plugin:uninstall name="${pom.artifactId}" />
<!-- Don't clear the cache. RC3 will do this if we happened to clean up an additional version -->
<copy file="${maven.build.dir}/${maven.final.name}.jar"
todir="${maven.home}/plugins"/>
</goal>
<goal name="plugin:install-now" prereqs="plugin"
description="Build a plugin and load it into the currently running instance of Maven.">
<!-- The cache should remain intact through these operations -->
<plugin:uninstall name="${pom.artifactId}" />
<maven:uninstallPlugin artifactId="${pom.artifactId}" />
<maven:installPlugin file="${maven.build.dir}/${maven.final.name}.jar" cache="true" />
</goal>
<goal name="plugin:uninstall"
description="Uninstall all versions of the plugin">
<plugin:uninstall name="${pom.artifactId}" />
<plugin:clearCache />
</goal>
<goal name="plugin:uninstall-now" prereqs="plugin:uninstall"
description="Uninstall all versions of the plugin, including those in the currently running instance of Maven">
<maven:uninstallPlugin artifactId="${pom.artifactId}" />
</goal>
<goal name="plugin:deploy" prereqs="plugin"
description="Install a specific unpacked plugin but no new jar">
@ -265,11 +279,19 @@
</ant:fileset>
</ant:delete>
<ant:delete includeEmptyDirs="true" verbose="false" failonerror="false">
<ant:fileset dir="${maven.plugin.unpacked.dir}">
<ant:include name="${name}-*/**" />
<ant:include name="${name}-*.jar" />
</ant:fileset>
</ant:delete>
</define:tag>
<define:tag name="clearCache">
<ant:delete includeEmptyDirs="true" verbose="false" failonerror="false">
<ant:fileset dir="${maven.plugin.unpacked.dir}">
<ant:include name="*.cache"/>
<ant:include name="**/.processed" />
<ant:include name="${name}-*/**" />
</ant:fileset>
</ant:delete>
</define:tag>

View File

@ -24,7 +24,9 @@
<id>maven-plugin-plugin</id>
<name>Maven Plugin Plugin</name>
<currentVersion>1.4-SNAPSHOT</currentVersion>
<description/>
<description>
Maven Plugin management plugin. Requires Maven 1.0 RC3.
</description>
<shortDescription>Maven Plugin plugin</shortDescription>
<url>http://maven.apache.org/reference/plugins/plugin/</url>
<issueTrackingUrl>http://jira.codehaus.org/BrowseProject.jspa?id=10364</issueTrackingUrl>
@ -53,6 +55,15 @@
<role>Developer</role>
</roles>
</developer>
<developer>
<name>Brett Porter</name>
<id>brett</id>
<email>brett@apache.org</email>
<organization>f2 network</organization>
<roles>
<role>Developer</role>
</roles>
</developer>
</developers>
<dependencies>
<dependency>

View File

@ -24,6 +24,11 @@
<author email="evenisse@ifrance.com">Emmanuel Venisse</author>
</properties>
<body>
<release version="1.4-SNAPSHOT" date="in CVS">
<action dev="brett" type="add" issue="MAVEN-1219">Add plugin:uninstall-now that removes the plugin from the currently running instance of Maven.</action>
<action dev="brett" type="add" issue="MAVEN-1219">Add a plugin:install-now goal that installs the plugin into the currently running instance of maven so that it can be used by subsequent goals.</action>
</release>
<release version="1.3" date="2004-03-22">
<action dev="brett" type="fix" issue="MPPLUGIN-13">Create local repository directory first so plugin:download doesn't fail when it doesn't exist</action>
<action dev="dion" type="update">Add optional msg attribute to assertFileExists and assertEquals tags</action>

View File

@ -60,14 +60,29 @@
<name>plugin:install</name>
<description>Install the plugin in Maven's plugins dir</description>
</goal>
<goal>
<name>plugin:install-now</name>
<description>
Install the plugin into the current Maven instance.
It is also installed into the user's plugin cache so that it will be available to
that user on subsequent Maven invocations.
</description>
</goal>
<goal>
<name>plugin:uninstall</name>
<description>Uninstall all versions of the plugin in Maven's plugins dir</description>
</goal>
<goal>
<name>plugin:uninstall-now</name>
<description>
Uninstall the plugin from the current Maven instance.
It is also uninstalled into the user's plugin cache and the global Maven installation.
</description>
</goal>
<goal>
<name>plugin:test</name>
<description>Run a plugin's test project</description>
</goal>
</goals>
</body>
</document>
</document>