only run goals on plugins

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@169793 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-05-12 08:45:21 +00:00
parent 0ff8c16056
commit 0808a58663
1 changed files with 5 additions and 0 deletions

View File

@ -60,6 +60,11 @@ public abstract class AbstractGeneratorMojo
public void execute()
throws MojoExecutionException
{
if ( !project.getPackaging().equals( "maven-plugin" ) )
{
return;
}
String defaultGoalPrefix = PluginDescriptor.getGoalPrefixFromArtifactId( project.getArtifactId() );
if ( goalPrefix == null )
{