Added plugin:download goal

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114031 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
dion committed 2003-09-18 07:26:25 +00:00
1 parent b7dbda464e
commit 73f8606af1
3 files changed
+23 -2

No files matched your search

+13 -2
View File
@@ -172,7 +172,6 @@
</goal>
<!-- download a plugin from a remote repo -->
<!-- TODO - is this still needed with plugin dependencies? -->
<goal name="plugin:download">
<maven:param-check value="${artifactId}" fail="true" message="'artifactId' must be specified"/>
<maven:param-check value="${groupId}" fail="true" message="'groupId' must be specified"/>
@@ -184,10 +183,22 @@
<u:file var="localPlugin"
name="${maven.home}/plugins/${artifactId}-${version}.jar" />
<j:if test="${!localPlugin.exists()}">
<u:file var="localPluginFile" name="${localPlugin}"/>
<j:set var="remoteFile"
value="${repo}/${groupId}/plugins/${artifactId}-${version}.jar" />
<echo>trying to download ${remoteFile}</echo>
<http:get uri="${remoteFile}" var="outputVar" />
<j:invokeStatic var="dummy" method="getFile"
className="org.apache.maven.util.HttpUtils">
<j:arg type="java.lang.String" value="${remoteFile}" />
<j:arg type="java.io.File" value="${localPluginFile}"/>
<j:arg type="boolean" value="false"/>
<j:arg type="boolean" value="true"/>
<j:arg type="java.lang.String" value="${maven.proxy.host}" />
<j:arg type="java.lang.String" value="${maven.proxy.port}" />
<j:arg type="java.lang.String" value="${maven.proxy.username}" />
<j:arg type="java.lang.String" value="${maven.proxy.password}" />
<j:arg type="boolean" value="false"/>
</j:invokeStatic>
</j:if>
</j:forEach>
</goal>
+3
View File
@@ -7,6 +7,9 @@
<body>
<release version="1.1" date="in CVS">
<action dev="dion" type="add">
Added plugin:download goal
</action>
<action dev="evenisse" type="fix">
Fixed MAVEN-708. Fix the goals description generation if there is no plugin.jelly file.
</action>
+7
View File
@@ -15,6 +15,13 @@
<name>plugin:deploy</name>
<description>Install an unpacked version of the plugin</description>
</goal>
<goal>
<name>plugin:download</name>
<description>
Download and install plugin from the remote repos.
Must provide groupId, artifactId and version variables.
</description>
</goal>
<goal>
<name>plugin:generate-docs</name>
<description>Generate navigation, goals and properties docs</description>