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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to