You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by de...@apache.org on 2006/08/10 22:43:24 UTC
svn commit: r430523 -
/maven/site/trunk/src/site/apt/guides/plugin/guide-java-plugin-development.apt
Author: dennisl
Date: Thu Aug 10 13:43:24 2006
New Revision: 430523
URL: http://svn.apache.org/viewvc?rev=430523&view=rev
Log:
[MNG-2246] mojo developer guide takes a shortcut at explaining fully how the command line can be shortened.
Patch supplied by Jerome Lacoste.
Modified:
maven/site/trunk/src/site/apt/guides/plugin/guide-java-plugin-development.apt
Modified: maven/site/trunk/src/site/apt/guides/plugin/guide-java-plugin-development.apt
URL: http://svn.apache.org/viewvc/maven/site/trunk/src/site/apt/guides/plugin/guide-java-plugin-development.apt?rev=430523&r1=430522&r2=430523&view=diff
==============================================================================
--- maven/site/trunk/src/site/apt/guides/plugin/guide-java-plugin-development.apt (original)
+++ maven/site/trunk/src/site/apt/guides/plugin/guide-java-plugin-development.apt Thu Aug 10 13:43:24 2006
@@ -184,8 +184,22 @@
~~
~~ You also need to add your plugin's group ID to the list of group IDs
- In order to shorten the amount of typing needed on the command line,
- you will need to add your plugin's group ID to the list of group IDs
+
+ There are several ways to reduce the amount of required typing:
+
+ * If you need to run the latest version of a plugin installed in your local
+ repository, you can omit its version number. So just use
+ "<<<mvn sample.plugin:maven-hello-plugin:sayhi>>>" to run your plugin.
+
+ * The "<<<maven-$name-plugin>>>" and "<<<$name-maven-plugin>>>" artifactId
+ patterns are treated in a special way. If no plugin matches the artifactId
+ specified on the command line, Maven will try expanding the artifactId to these
+ patterns in that order. So in the case of our example, you can use
+ "<<<mvn sample.plugin:hello:sayhi>>>" to run your plugin. Note: these 2
+ patterns are used respectively by the official Maven 2 plugins and the Mojo
+ project plugins.
+
+ * Finally, you can also add your plugin's groupId to the list of groupIds
searched by default. To do this, you need to add the following to
your <<<$\{user.home\}/.m2/settings.xml>>> file:
@@ -194,6 +208,8 @@
<pluginGroup>sample.plugin</pluginGroup>
</pluginGroups>
+----+
+
+ []
At this point, you can run the mojo with "<<<mvn hello:sayhi>>>".
Re: svn commit: r430523 - /maven/site/trunk/src/site/apt/guides/plugin/guide-java-plugin-development.apt
Posted by Dennis Lundberg <de...@apache.org>.
Brett Porter wrote:
> On 11/08/2006 6:43 AM, dennisl@apache.org wrote:
>> Author: dennisl
>> Date: Thu Aug 10 13:43:24 2006
>> New Revision: 430523
>>
>> URL: http://svn.apache.org/viewvc?rev=430523&view=rev
>> Log:
>> [MNG-2246] mojo developer guide takes a shortcut at explaining fully
>> how the command line can be shortened.
>> Patch supplied by Jerome Lacoste.
>>
>
> Can I be anal and ask that we use:
> Submitted by: NAME
> on a new line as exact text for this?
Of course you can :)
> I have high hopes of one day
> trawling the commit logs to find a list of contributors we've missed
> recognising (its not exhaustive, but this will make it a bit better). I
> just choose that format since it was in the original CVS template way
> back when. I think its documented on the site, but I could be wrong.
No, you're right. Found it now:
http://maven.apache.org/guides/development/guide-m2-development.html#Commit%20Message%20Template
>
> You can edit it with:
> svn pe --revprop -r 430523
Close but not quite:
svn pe svn:log --revprop -r 430523
I fixed the commit message for a bunch of commits I made yesterday:
430523, 430528 and 430533. Hope it looks OK now.
--
Dennis Lundberg
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: svn commit: r430523 - /maven/site/trunk/src/site/apt/guides/plugin/guide-java-plugin-development.apt
Posted by Brett Porter <br...@apache.org>.
BTW, I did also want to say thanks for running through and closing out
so many issues today. Nice work!
- Brett
On 11/08/2006 9:33 AM, Brett Porter wrote:
> On 11/08/2006 6:43 AM, dennisl@apache.org wrote:
>> Author: dennisl
>> Date: Thu Aug 10 13:43:24 2006
>> New Revision: 430523
>>
>> URL: http://svn.apache.org/viewvc?rev=430523&view=rev
>> Log:
>> [MNG-2246] mojo developer guide takes a shortcut at explaining fully
>> how the command line can be shortened.
>> Patch supplied by Jerome Lacoste.
>>
>
> Can I be anal and ask that we use:
> Submitted by: NAME
> on a new line as exact text for this? I have high hopes of one day
> trawling the commit logs to find a list of contributors we've missed
> recognising (its not exhaustive, but this will make it a bit better). I
> just choose that format since it was in the original CVS template way
> back when. I think its documented on the site, but I could be wrong.
>
> You can edit it with:
> svn pe --revprop -r 430523
>
> Thanks,
> Brett
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
--
Apache Maven - http://maven.apache.org/
Better Builds with Maven - http://library.mergere.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: svn commit: r430523 - /maven/site/trunk/src/site/apt/guides/plugin/guide-java-plugin-development.apt
Posted by Brett Porter <br...@apache.org>.
On 11/08/2006 6:43 AM, dennisl@apache.org wrote:
> Author: dennisl
> Date: Thu Aug 10 13:43:24 2006
> New Revision: 430523
>
> URL: http://svn.apache.org/viewvc?rev=430523&view=rev
> Log:
> [MNG-2246] mojo developer guide takes a shortcut at explaining fully how the command line can be shortened.
> Patch supplied by Jerome Lacoste.
>
Can I be anal and ask that we use:
Submitted by: NAME
on a new line as exact text for this? I have high hopes of one day
trawling the commit logs to find a list of contributors we've missed
recognising (its not exhaustive, but this will make it a bit better). I
just choose that format since it was in the original CVS template way
back when. I think its documented on the site, but I could be wrong.
You can edit it with:
svn pe --revprop -r 430523
Thanks,
Brett
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org