All,
I want to write my own maven plugin but I am getting some wired error while
executing the goal.
1) Using below command I am creating one archetype :
archetype:generate -DgroupId=sample.plugin -DartifactId=hello-maven-plugin
-DarchetypeGroupId=org.apache.maven.archetypes
-DarchetypeArtifactId=maven-archetype-mojo
2) After this I am installing the same.
3) I am trying to run the MOJO by running following command.
sample.plugin:hello-maven-plugin:2.3:sayhi.
I am getting error like " Could not find goal 'sayhi' in plugin
sample.plugin:hello-maven-plugin:2.3 among available goals touch -> [Help
1]"
My MOJO defination is like this.
public class GreetingMojo extends AbstractMojo
{
public void execute() throws MojoExecutionException
{
getLog().info("Hello, world.");
}
}
Any one is having any idea on this.
--
View this message in context:
http://maven.40175.n5.nabble.com/Error-writing-first-Maven-plugin-tp4957761p4957761.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]