From bc0b2aa4de6ee76730364b2d769efd0e78994835 Mon Sep 17 00:00:00 2001 From: Mark Donszelmann Date: Wed, 23 Dec 2009 09:15:31 +0100 Subject: Removed extra code --- .../apache/maven/plugin/nar/NarCompileMojo.java | 35 ---------------------- 1 file changed, 35 deletions(-) diff --git a/src/main/java/org/apache/maven/plugin/nar/NarCompileMojo.java b/src/main/java/org/apache/maven/plugin/nar/NarCompileMojo.java index 40ab692..08a8ff1 100644 --- a/src/main/java/org/apache/maven/plugin/nar/NarCompileMojo.java +++ b/src/main/java/org/apache/maven/plugin/nar/NarCompileMojo.java @@ -73,41 +73,6 @@ public class NarCompileMojo public final void narExecute() throws MojoExecutionException, MojoFailureException { - for ( Iterator i = session.getSortedProjects().iterator(); i.hasNext(); ) - { - MavenProject project = (MavenProject) i.next(); - if ( !project.getPackaging().equals( NarConstants.NAR ) ) - { - continue; - } - if ( project.isExecutionRoot() ) - { - continue; - } - - // is this me ? bail out, the list was sorted - MavenProject me = getMavenProject(); - if ( project.getArtifact().equals( me.getArtifact() ) ) - { - break; - } - - // search the dependency list - for ( Iterator it = me.getArtifacts().iterator(); it.hasNext(); ) - { - Artifact dependency = (Artifact) it.next(); - // equals will not work here as the project type is "nar" while the dependencies type is "jar" - // - if ( dependency.getArtifactId().equals( project.getArtifactId() ) - && dependency.getGroupId().equals( project.getGroupId() ) - && dependency.getVersion().equals( project.getVersion() ) && dependency.getType().equals( "nar" ) ) - { - getLog().info( - "Added intermodule dependency to " + project.getArtifact() + " in " - + project.getBuild().getDirectory() ); - } - } - } // make sure destination is there getTargetDirectory().mkdirs(); -- cgit v1.2.3