Prompt for artifactId, groupId and version if missing.

PR: MPPLUGIN-20


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115678 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
dion
2004-07-06 22:21:07 +00:00
parent 13ed958365
commit 2be5db4494
3 changed files with 27 additions and 4 deletions

View File

@@ -19,14 +19,14 @@
<project
xmlns:plugin="plugin"
xmlns:artifact="artifact"
xmlns:ant="jelly:ant"
xmlns:define="jelly:define"
xmlns:i="jelly:interaction"
xmlns:j="jelly:core"
xmlns:maven="jelly:maven"
xmlns:plugin="plugin"
xmlns:u="jelly:util"
xmlns:define="jelly:define"
xmlns:artifact="artifact"
xmlns:deploy="deploy"
xmlns:x="jelly:xml">
<j:if test="${bootstrapping == null}">
@@ -206,8 +206,23 @@
<!-- download a plugin from a remote repo -->
<goal name="plugin:download-artifact" description="download a plugin from a remote repo">
<j:if test="${empty(artifactId)}">
<i:ask question="What is the artifactId of the plugin to download (e.g. maven-java-plugin)?"
answer="artifactId"/>
</j:if>
<maven:param-check value="${artifactId}" fail="true" message="'artifactId' must be specified"/>
<j:if test="${empty(groupId)}">
<i:ask question="What is the groupId of the plugin to download?"
answer="groupId"
default="maven"/>
</j:if>
<maven:param-check value="${groupId}" fail="true" message="'groupId' must be specified"/>
<j:if test="${empty(version)}">
<i:ask question="What is the version of the plugin to download?"
answer="version"/>
</j:if>
<maven:param-check value="${version}" fail="true" message="'version' must be specified"/>
<u:file var="localPluginFile"

View File

@@ -92,5 +92,10 @@
<version>20030211.142705</version>
<url>http://jakarta.apache.org/commons/jelly/libs/xml/</url>
</dependency>
<dependency>
<groupId>commons-jelly</groupId>
<artifactId>commons-jelly-tags-interaction</artifactId>
<version>20030211.143817</version>
</dependency>
</dependencies>
</project>

View File

@@ -25,6 +25,9 @@
</properties>
<body>
<release version="1.6-SNAPSHOT" date="in CVS">
<action dev="dion" type="add" issue="MPPLUGIN-20">
Prompt for artifactId, groupId and version if missing.
</action>
<action dev="dion" type="add">Add assertFileNotFound tag</action>
</release>
<release version="1.5" date="2004-06-28">