From f770dc82d690fb001cd43b65c9fcbf6397770e6c Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Fri, 31 Jul 2009 18:11:57 +0000 Subject: [PATCH] [MNG-4269] [regression] Invocation of just installed plugin on its plugin project can fail with ComponentLookupException for mojo class git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@799680 13f79535-47bb-0310-9956-ffa450edef68 --- .../maven/ReactorArtifactRepository.java | 46 ++++++++++--------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/maven-core/src/main/java/org/apache/maven/ReactorArtifactRepository.java b/maven-core/src/main/java/org/apache/maven/ReactorArtifactRepository.java index 037347ce6a..d425864528 100644 --- a/maven-core/src/main/java/org/apache/maven/ReactorArtifactRepository.java +++ b/maven-core/src/main/java/org/apache/maven/ReactorArtifactRepository.java @@ -64,28 +64,30 @@ public class ReactorArtifactRepository artifact.setResolved( true ); } - else - { - File classesDir; - - if ( isTestArtifact( artifact ) ) - { - classesDir = new File( project.getBuild().getTestOutputDirectory() ); - } - else - { - classesDir = new File( project.getBuild().getOutputDirectory() ); - } - - if ( classesDir.isDirectory() ) - { - artifact.setFile( classesDir ); - - artifact.setFromAuthoritativeRepository( true ); - - artifact.setResolved( true ); - } - } +// TODO: The code below supports MNG-3043 & MNG-2871 but in its current form causes MNG-4269. +// We need to consider the state of the reactor before handing out directories. +// else +// { +// File classesDir; +// +// if ( isTestArtifact( artifact ) ) +// { +// classesDir = new File( project.getBuild().getTestOutputDirectory() ); +// } +// else +// { +// classesDir = new File( project.getBuild().getOutputDirectory() ); +// } +// +// if ( classesDir.isDirectory() ) +// { +// artifact.setFile( classesDir ); +// +// artifact.setFromAuthoritativeRepository( true ); +// +// artifact.setResolved( true ); +// } +// } } }