From 5c79de69e754241b9204f06fb326d9c8063fa2ff Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Wed, 27 Jul 2011 10:39:37 +0000 Subject: [PATCH] [MNG-5137] Reactor resolution does not work for forked multi module builds Submitted by: Stuart McCulloch git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1151421 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/maven/ReactorReader.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/maven-core/src/main/java/org/apache/maven/ReactorReader.java b/maven-core/src/main/java/org/apache/maven/ReactorReader.java index 6d9bd23234..3c210b7bc8 100644 --- a/maven-core/src/main/java/org/apache/maven/ReactorReader.java +++ b/maven-core/src/main/java/org/apache/maven/ReactorReader.java @@ -222,7 +222,12 @@ class ReactorReader if ( project != null ) { - return find( project, artifact ); + File file = find( project, artifact ); + if ( file == null && project != project.getExecutionProject() ) + { + file = find( project.getExecutionProject(), artifact ); + } + return file; } return null;