Repository: maven-integration-testing Updated Branches: refs/heads/master e7a7cff9f -> d68b6579f
[MNG-5840] Adding a test case to ensure regression does not repeat - Confirmed that this test case passes on 3.0.4, 3.2.5 and current 3.3.4-SNAPSHOT after fix merged while failing on 3.3.3 Project: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/repo Commit: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/commit/d68b6579 Tree: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/tree/d68b6579 Diff: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/diff/d68b6579 Branch: refs/heads/master Commit: d68b6579fec649f8d1d1571cb5262e3ddedf9b33 Parents: e7a7cff Author: Stephen Connolly <stephen.alan.conno...@gmail.com> Authored: Wed Jun 24 14:44:08 2015 +0100 Committer: Stephen Connolly <stephen.alan.conno...@gmail.com> Committed: Wed Jun 24 14:44:08 2015 +0100 ---------------------------------------------------------------------- ...venITmng5840RelativePathReactorMatching.java | 31 ++++++++++++++++ .../child/pom.xml | 39 ++++++++++++++++++++ .../parent-1/pom.xml | 14 +++++++ .../parent/pom.xml | 14 +++++++ 4 files changed, 98 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/d68b6579/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5840RelativePathReactorMatching.java ---------------------------------------------------------------------- diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5840RelativePathReactorMatching.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5840RelativePathReactorMatching.java new file mode 100644 index 0000000..91f016f --- /dev/null +++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5840RelativePathReactorMatching.java @@ -0,0 +1,31 @@ +package org.apache.maven.it; + +import org.apache.maven.it.util.ResourceExtractor; + +import java.io.File; + +public class MavenITmng5840RelativePathReactorMatching + extends AbstractMavenIntegrationTestCase +{ + public MavenITmng5840RelativePathReactorMatching() + { + super( ALL_MAVEN_VERSIONS ); + } + + public void testPkgTypeMojoConfiguration() + throws Exception + { + File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-5840-relative-path-reactor-matching" ); + + Verifier verifier = newVerifier( new File( testDir, "parent-1" ).getAbsolutePath(), "remote" ); + verifier.executeGoal( "install" ); + verifier.verifyErrorFreeLog(); + verifier.resetStreams(); + + verifier = newVerifier( new File( testDir, "child" ).getAbsolutePath(), "remote" ); + verifier.executeGoal( "validate" ); + verifier.verifyErrorFreeLog(); + verifier.resetStreams(); + } + +} http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/d68b6579/core-it-suite/src/test/resources/mng-5840-relative-path-reactor-matching/child/pom.xml ---------------------------------------------------------------------- diff --git a/core-it-suite/src/test/resources/mng-5840-relative-path-reactor-matching/child/pom.xml b/core-it-suite/src/test/resources/mng-5840-relative-path-reactor-matching/child/pom.xml new file mode 100644 index 0000000..3551262 --- /dev/null +++ b/core-it-suite/src/test/resources/mng-5840-relative-path-reactor-matching/child/pom.xml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="utf-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>mng-5840-relative-path-reactor-matching</groupId> + <artifactId>parent</artifactId> + <version>1</version> + <relativePath>../parent/pom.xml</relativePath> + </parent> + + <artifactId>child</artifactId> + <version>1-SNAPSHOT</version> + <packaging>pom</packaging> + + <build> + <plugins> + <plugin> + <artifactId>maven-enforcer-plugin</artifactId> + <version>1.4</version> + <executions> + <execution> + <inherited>false</inherited> + <phase>validate</phase> + <goals> + <goal>enforce</goal> + </goals> + <configuration> + <rules> + <alwaysFail/> + </rules> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + +</project> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/d68b6579/core-it-suite/src/test/resources/mng-5840-relative-path-reactor-matching/parent-1/pom.xml ---------------------------------------------------------------------- diff --git a/core-it-suite/src/test/resources/mng-5840-relative-path-reactor-matching/parent-1/pom.xml b/core-it-suite/src/test/resources/mng-5840-relative-path-reactor-matching/parent-1/pom.xml new file mode 100644 index 0000000..3a80446 --- /dev/null +++ b/core-it-suite/src/test/resources/mng-5840-relative-path-reactor-matching/parent-1/pom.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <groupId>mng-5840-relative-path-reactor-matching</groupId> + <artifactId>parent</artifactId> + <version>1</version> + <packaging>pom</packaging> + + <properties> + <enforcer.skip>true</enforcer.skip> + </properties> + +</project> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/d68b6579/core-it-suite/src/test/resources/mng-5840-relative-path-reactor-matching/parent/pom.xml ---------------------------------------------------------------------- diff --git a/core-it-suite/src/test/resources/mng-5840-relative-path-reactor-matching/parent/pom.xml b/core-it-suite/src/test/resources/mng-5840-relative-path-reactor-matching/parent/pom.xml new file mode 100644 index 0000000..4caa777 --- /dev/null +++ b/core-it-suite/src/test/resources/mng-5840-relative-path-reactor-matching/parent/pom.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <groupId>mng-5840-relative-path-reactor-matching</groupId> + <artifactId>parent</artifactId> + <version>2-SNAPSHOT</version> + <packaging>pom</packaging> + + <properties> + <!--<enforcer.skip>true</enforcer.skip>--> + </properties> + +</project>