> 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.
Is the code above your entire Mojo? If so, it's missing the @goal
annotation in the class-level javadoc comment:
/**
* @goal sayhi
*/
public class GreetingMojo extends AbstractMojo
-dirk
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]