Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Maven Wiki" for change 
notification.

The following page has been changed by EdwinPark:
http://wiki.apache.org/maven/Maven2Info

------------------------------------------------------------------------------
  
  [http://docs.codehaus.org/display/MAVEN/Maven+Plugin+Matrix Maven Plugin 
Matrix] - current status of various available Maven plugins
  
- === Various bugfixes for getting custom plugins to work ===
+ === Various bugfixes and info for getting custom plugins to work ===
+ 
+ When building a plugin, you must use the following settings:
+ 
+  * groupId = org.apache.maven.plugin
+  * artifactId = maven-<my plugin name>-plugin
  
  Use the following archetype command to create a starter plugin project:
  
-   {{{m2 archetype:create -DgroupId=com.mystuff -DartifactId=myplugin 
-DpackageName=com.mystuff.myplugin -DarchetypeArtifactId=maven-archetype-mojo}}}
+   {{{m2 archetype:create -DgroupId=org.apache.maven.plugins 
-DartifactId=maven-foo-plugin -DpackageName=com.mystuff.myplugin 
-DarchetypeArtifactId=maven-archetype-mojo}}}
  
  Note: The current mojo archetype creates a dependency in the pom.xml for 
maven-plugin-api version 2.0-beta-1-SNAPSHOT, which does not exist. Change this 
to 2.0-beta-1.
  
- After installing the plugin, if you get errors saying unable to find RELEASE 
version, try the following:
+ After installing the plugin, if you get errors saying unable to find RELEASE 
version, try the following (this only needs to be done once):
  
    {{{m2 install -DupdateReleaseInfo=true}}}
  
+ This will add a {{{<release>}}} tag in 
{{{$HOME/.m2/repository/org/apache/maven/plugins/maven-foo-plugin/maven-metadata-local.xml}}}
 that matches the {{{<latest>}}} version in the same file.
+ 
+ Also note that the registered versions of the plugins are kept here:
+ 
+   {{{$HOME/.m2/plugin-registry.xml}}}
+ 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to