diff --git a/maven-plugins/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipsePlugin.java b/maven-plugins/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipsePlugin.java index 5947a7b288..9fb6e16f03 100644 --- a/maven-plugins/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipsePlugin.java +++ b/maven-plugins/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipsePlugin.java @@ -75,6 +75,12 @@ public class EclipsePlugin { throw new MojoExecutionException( "There must be a POM in the current working directory for the Eclipse plugin to work." ); } + if ( "pom".equals( project.getPackaging() ) ) + { + getLog().info( "Don't generate Eclipse project for pom project" ); + + return; + } try {