You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Apache Wiki <wi...@apache.org> on 2005/09/28 11:07:43 UTC

[Maven Wiki] Update of "Maven2Info" by BrettPorter

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 BrettPorter:
http://wiki.apache.org/maven/Maven2Info

The comment on the change is:
correct misinformation about group naming

------------------------------------------------------------------------------
  
  This information applies to Maven2 beta 2
  
- 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=org.apache.maven.plugins -DartifactId=maven-foo-plugin -DpackageName=com.mystuff.myplugin -DarchetypeArtifactId=maven-archetype-mojo}}}
+   {{{m2 archetype:create -DgroupId=com.mystuff -DartifactId=foo-maven-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.
+ 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-2.
+ 
+ By default, the goal names will be foo:*, based on the artifactId. To use a different prefix, set the prefix configuration parameter for maven-plugin-plugin on your project.
+ 
+ So that Maven can find your plugin, you need to add the following to your settings.xml file:
+   {{{<pluginGroups>
+   <pluginGroup>com.mystuff</pluginGroup>
+ </pluginGroups>}}}
  
  After installing the plugin, if you get errors saying unable to find RELEASE version, try the following (this only needs to be done once):
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org