mirror of https://github.com/apache/maven.git
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:
parent
0ff8c16056
commit
0808a58663
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue