You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2012/06/05 00:41:04 UTC
svn commit: r1346186 -
/maven/site/trunk/src/site/apt/guides/plugin/guide-java-plugin-development.apt
Author: hboutemy
Date: Mon Jun 4 22:41:04 2012
New Revision: 1346186
URL: http://svn.apache.org/viewvc?rev=1346186&view=rev
Log:
formatting
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=1346186&r1=1346185&r2=1346186&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 Mon Jun 4 22:41:04 2012
@@ -71,7 +71,7 @@ public class GreetingMojo extends Abstra
{
public void execute() throws MojoExecutionException
{
- getLog().info("Hello, world.");
+ getLog().info( "Hello, world." );
}
}
+---+
@@ -133,11 +133,14 @@ public class GreetingMojo extends Abstra
+----+
<project>
<modelVersion>4.0.0</modelVersion>
+
<groupId>sample.plugin</groupId>
<artifactId>hello-maven-plugin</artifactId>
- <packaging>maven-plugin</packaging>
<version>1.0-SNAPSHOT</version>
+ <packaging>maven-plugin</packaging>
+
<name>Sample Parameter-less Maven Plugin</name>
+
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
@@ -189,7 +192,7 @@ public class GreetingMojo extends Abstra
And, you need to specify a fully-qualified goal in the form of:
+----+
-mvn groupID:artifactID:version:goal
+mvn groupId:artifactId:version:goal
+----+
For example, to run the simple mojo in the sample plugin, you would enter