From b33c9d140fdcc440fd5f784115f4b576911b9972 Mon Sep 17 00:00:00 2001 From: Emmanuel Venisse Date: Tue, 7 Jun 2005 08:35:04 +0000 Subject: [PATCH] Generate eclipse project only for projects with packaging != pom git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@188731 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/maven/plugin/eclipse/EclipsePlugin.java | 6 ++++++ 1 file changed, 6 insertions(+) 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 {