diff --git a/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2576MakeLikeReactorTest.java b/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2576MakeLikeReactorTest.java
index e717a81ed8..ce6b3a9f6c 100644
--- a/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2576MakeLikeReactorTest.java
+++ b/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2576MakeLikeReactorTest.java
@@ -152,6 +152,32 @@ public class MavenITmng2576MakeLikeReactorTest
verifier.assertFileNotPresent( "sub-d/target/touch.txt" );
}
+ /**
+ * Verify that using the mere basedir in the project list properly matches projects with non-default POM files.
+ */
+ public void testitMatchesByBasedir()
+ throws Exception
+ {
+ File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-2576" );
+
+ Verifier verifier = new Verifier( testDir.getAbsolutePath() );
+ verifier.setAutoclean( false );
+ clean( verifier );
+ verifier.assertFileNotPresent( "sub-d/pom.xml" );
+ verifier.getCliOptions().add( "-pl" );
+ verifier.getCliOptions().add( "sub-d" );
+ verifier.setLogFileName( "log-basedir.txt" );
+ verifier.executeGoal( "validate" );
+ verifier.verifyErrorFreeLog();
+ verifier.resetStreams();
+
+ verifier.assertFileNotPresent( "target/touch.txt" );
+ verifier.assertFileNotPresent( "sub-a/target/touch.txt" );
+ verifier.assertFileNotPresent( "sub-b/target/touch.txt" );
+ verifier.assertFileNotPresent( "sub-c/target/touch.txt" );
+ verifier.assertFilePresent( "sub-d/target/touch.txt" );
+ }
+
/**
* Verify that reactor is resumed from specified project.
*/
diff --git a/its/core-it-suite/src/test/resources/mng-2576/pom.xml b/its/core-it-suite/src/test/resources/mng-2576/pom.xml
index 2442384d43..1719773149 100644
--- a/its/core-it-suite/src/test/resources/mng-2576/pom.xml
+++ b/its/core-it-suite/src/test/resources/mng-2576/pom.xml
@@ -34,7 +34,7 @@ under the License.
sub-a
sub-b
sub-c
- sub-d
+ sub-d/pom-special.xml
diff --git a/its/core-it-suite/src/test/resources/mng-2576/sub-d/pom.xml b/its/core-it-suite/src/test/resources/mng-2576/sub-d/pom-special.xml
similarity index 100%
rename from its/core-it-suite/src/test/resources/mng-2576/sub-d/pom.xml
rename to its/core-it-suite/src/test/resources/mng-2576/sub-d/pom-special.xml