summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorMark Donszelmann <Mark.Donszelmann@gmail.com>2009-12-23 09:15:31 +0100
committerMark Donszelmann <Mark.Donszelmann@gmail.com>2009-12-23 09:15:31 +0100
commitbc0b2aa4de6ee76730364b2d769efd0e78994835 (patch)
tree0518fbafeaa5ad9ed7ec4d28e73af0b78e060fbd /src/main
parent11e6a0366c5c070d4d2742bb84bd38c0e4403804 (diff)
downloadmaven-nar-plugin-bc0b2aa4de6ee76730364b2d769efd0e78994835.tar.gz
maven-nar-plugin-bc0b2aa4de6ee76730364b2d769efd0e78994835.tar.bz2
maven-nar-plugin-bc0b2aa4de6ee76730364b2d769efd0e78994835.tar.xz
maven-nar-plugin-bc0b2aa4de6ee76730364b2d769efd0e78994835.zip
Removed extra code
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/apache/maven/plugin/nar/NarCompileMojo.java35
1 files changed, 0 insertions, 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();