/**
* The goal prefix that will appear before the ":".
*
* @parameter
*/
protected String goalPrefix;
...
public void execute()
throws MojoExecutionException
{
if ( !project.getPackaging().equals( "maven-plugin" ) )
{
return;
}
String defaultGoalPrefix = PluginDescriptor.getGoalPrefixFromArtifactId( project.getArtifactId() );
if ( goalPrefix == null )
{
goalPrefix = defaultGoalPrefix;
}
else
{
getLog().warn( "Goal prefix is: " + goalPrefix + "; Maven currently expects it to be " + defaultGoalPrefix );
}