You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by di...@apache.org on 2004/07/07 00:21:07 UTC
cvs commit: maven-plugins/plugin project.xml plugin.jelly
dion 2004/07/06 15:21:07
Modified: plugin/xdocs changes.xml
plugin project.xml plugin.jelly
Log:
Prompt for artifactId, groupId and version if missing.
PR: MPPLUGIN-20
Revision Changes Path
1.26 +3 -0 maven-plugins/plugin/xdocs/changes.xml
Index: changes.xml
===================================================================
RCS file: /home/cvs/maven-plugins/plugin/xdocs/changes.xml,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- changes.xml 29 Jun 2004 11:41:05 -0000 1.25
+++ changes.xml 6 Jul 2004 22:21:06 -0000 1.26
@@ -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">
1.41 +5 -0 maven-plugins/plugin/project.xml
Index: project.xml
===================================================================
RCS file: /home/cvs/maven-plugins/plugin/project.xml,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- project.xml 29 Jun 2004 11:41:05 -0000 1.40
+++ project.xml 6 Jul 2004 22:21:07 -0000 1.41
@@ -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>
1.41 +19 -4 maven-plugins/plugin/plugin.jelly
Index: plugin.jelly
===================================================================
RCS file: /home/cvs/maven-plugins/plugin/plugin.jelly,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- plugin.jelly 29 Jun 2004 11:41:05 -0000 1.40
+++ plugin.jelly 6 Jul 2004 22:21:07 -0000 1.41
@@ -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"
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org