You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sn...@apache.org on 2006/04/09 21:01:01 UTC

svn commit: r392802 - /maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/AbstractEarMojo.java

Author: snicoll
Date: Sun Apr  9 12:00:58 2006
New Revision: 392802

URL: http://svn.apache.org/viewcvs?rev=392802&view=rev
Log:
MEAR-25: fixed handling of POM dependencies.

Modified:
    maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/AbstractEarMojo.java

Modified: maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/AbstractEarMojo.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/AbstractEarMojo.java?rev=392802&r1=392801&r2=392802&view=diff
==============================================================================
--- maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/AbstractEarMojo.java (original)
+++ maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/AbstractEarMojo.java Sun Apr  9 12:00:58 2006
@@ -111,6 +111,12 @@
         {
             Artifact artifact = (Artifact) iter.next();
 
+            // If the artifact's type is POM, ignore and continue
+            // since it's used for transitive deps only.
+            if ("pom".equals(artifact.getType())) {
+                continue;
+            }
+
             // Artifact is not yet registered and it has neither test, nor a
             // provided scope, not is it optional
             ScopeArtifactFilter filter = new ScopeArtifactFilter( Artifact.SCOPE_RUNTIME );