From 37b93697799a601e25a20fa929d17f013eaedf91 Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Wed, 13 Sep 2023 13:39:27 +0200 Subject: [PATCH] [MNG-7877] Fix ITs for build bom + consumer/pom simplification (#292) --- ...mng1021EqualAttachmentBuildNumberTest.java | 1 + ...anagementForOverConstrainedRangesTest.java | 3 ++ .../maven/it/MavenITmng6656BuildConsumer.java | 28 +++++++++- .../maven/it/MavenITmng6957BuildConsumer.java | 30 +++++++++++ .../it/MavenITmng7228LeakyModelTest.java | 9 +++- .../expected/parent-build.pom | 31 +++++++++++ .../expected/parent.pom | 25 +-------- .../expected/simple-parent-build.pom | 46 ++++++++++++++++ .../expected/simple-parent.pom | 27 +--------- .../expected/simple-weather-build.pom | 30 +++++++++++ .../expected/simple-weather.pom | 25 +-------- .../expected/simple-webapp-build.pom | 46 ++++++++++++++++ .../expected/simple-webapp.pom | 24 +-------- .../resources/mng-6656-buildconsumer/pom.xml | 3 +- .../simple-parent/pom.xml | 3 +- .../simple-parent/simple-weather/pom.xml | 3 +- .../simple-parent/simple-webapp/pom.xml | 3 +- .../expected/parent-build.pom | 32 ++++++++++++ .../expected/parent.pom | 23 +------- .../expected/simple-parent-build.pom | 52 +++++++++++++++++++ .../expected/simple-parent.pom | 25 +-------- .../expected/simple-testutils-build.pom | 28 ++++++++++ .../expected/simple-testutils.pom | 20 +------ .../expected/simple-weather-build.pom | 39 ++++++++++++++ .../expected/simple-weather.pom | 24 +-------- .../expected/simple-webapp-build.pom | 47 +++++++++++++++++ .../expected/simple-webapp.pom | 22 +------- .../expected/utils-parent-build.pom | 28 ++++++++++ .../expected/utils-parent.pom | 20 +------ .../mng-7487-deadlock/plugin/pom.xml | 2 +- 30 files changed, 466 insertions(+), 233 deletions(-) create mode 100644 core-it-suite/src/test/resources/mng-6656-buildconsumer/expected/parent-build.pom create mode 100644 core-it-suite/src/test/resources/mng-6656-buildconsumer/expected/simple-parent-build.pom create mode 100644 core-it-suite/src/test/resources/mng-6656-buildconsumer/expected/simple-weather-build.pom create mode 100644 core-it-suite/src/test/resources/mng-6656-buildconsumer/expected/simple-webapp-build.pom create mode 100644 core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/parent-build.pom create mode 100644 core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/simple-parent-build.pom create mode 100644 core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/simple-testutils-build.pom create mode 100644 core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/simple-weather-build.pom create mode 100644 core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/simple-webapp-build.pom create mode 100644 core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/utils-parent-build.pom diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng1021EqualAttachmentBuildNumberTest.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng1021EqualAttachmentBuildNumberTest.java index 7247dcb92..b282b97e3 100644 --- a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng1021EqualAttachmentBuildNumberTest.java +++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng1021EqualAttachmentBuildNumberTest.java @@ -48,6 +48,7 @@ public void testitMNG1021() throws Exception { verifier.setAutoclean(false); verifier.deleteDirectory("repo"); verifier.deleteArtifacts("org.apache.maven.its.mng1021"); + verifier.addCliArgument("-Dmaven.experimental.buildconsumer=false"); verifier.addCliArgument("initialize"); verifier.execute(); verifier.verifyErrorFreeLog(); diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3396DependencyManagementForOverConstrainedRangesTest.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3396DependencyManagementForOverConstrainedRangesTest.java index 83e1c3c47..9e34f8d59 100644 --- a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3396DependencyManagementForOverConstrainedRangesTest.java +++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3396DependencyManagementForOverConstrainedRangesTest.java @@ -46,6 +46,7 @@ public void testitMNG3396() throws Exception { verifier.deleteArtifact(GROUP_ID, "A", "1.0", "jar"); verifier.deleteArtifact(GROUP_ID, "B", "1.0", "pom"); verifier.deleteArtifact(GROUP_ID, "B", "1.0", "jar"); + verifier.addCliArgument("-Dmaven.experimental.buildconsumer=false"); verifier.addCliArgument("install"); verifier.execute(); verifier.verifyErrorFreeLog(); @@ -59,6 +60,7 @@ public void testitMNG3396() throws Exception { verifier.deleteArtifact(GROUP_ID, "A", "3.0", "jar"); verifier.deleteArtifact(GROUP_ID, "plugin", "1.0", "pom"); verifier.deleteArtifact(GROUP_ID, "plugin", "1.0", "jar"); + verifier.addCliArgument("-Dmaven.experimental.buildconsumer=false"); verifier.addCliArgument("install"); verifier.execute(); verifier.verifyErrorFreeLog(); @@ -68,6 +70,7 @@ public void testitMNG3396() throws Exception { verifier = newVerifier(testDir.getAbsolutePath(), "remote"); verifier.deleteArtifact(GROUP_ID, "pluginuser", "1.0", "pom"); verifier.deleteArtifact(GROUP_ID, "pluginuser", "1.0", "jar"); + verifier.addCliArgument("-Dmaven.experimental.buildconsumer=false"); verifier.addCliArgument("install"); verifier.execute(); verifier.verifyErrorFreeLog(); diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6656BuildConsumer.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6656BuildConsumer.java index a5ec53118..2258fa737 100644 --- a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6656BuildConsumer.java +++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6656BuildConsumer.java @@ -20,11 +20,13 @@ import java.io.File; import java.io.IOException; +import java.util.List; import org.apache.maven.shared.utils.io.FileUtils; import org.apache.maven.shared.verifier.Verifier; import org.apache.maven.shared.verifier.util.ResourceExtractor; import org.junit.jupiter.api.Test; +import org.opentest4j.AssertionFailedError; /** * With the build-consumer the pom.xml will be adjusted during the process. @@ -77,6 +79,11 @@ public void testPublishedPoms() throws Exception { new File(verifier.getArtifactPath( "org.sonatype.mavenbook.multi", "parent", "0.9-MNG6656-SNAPSHOT", "pom"))); + assertTextEquals( + new File(testDir, "expected/parent-build.pom"), + new File(verifier.getArtifactPath( + "org.sonatype.mavenbook.multi", "parent", "0.9-MNG6656-SNAPSHOT", "pom", "build"))); + assertTextEquals( new File(testDir, "expected/simple-parent.pom"), new File(verifier.getArtifactPath( @@ -87,13 +94,32 @@ public void testPublishedPoms() throws Exception { new File(verifier.getArtifactPath( "org.sonatype.mavenbook.multi", "simple-weather", "0.9-MNG6656-SNAPSHOT", "pom"))); + assertTextEquals( + new File(testDir, "expected/simple-weather-build.pom"), + new File(verifier.getArtifactPath( + "org.sonatype.mavenbook.multi", "simple-weather", "0.9-MNG6656-SNAPSHOT", "pom", "build"))); + assertTextEquals( new File(testDir, "expected/simple-webapp.pom"), new File(verifier.getArtifactPath( "org.sonatype.mavenbook.multi", "simple-webapp", "0.9-MNG6656-SNAPSHOT", "pom"))); + + assertTextEquals( + new File(testDir, "expected/simple-webapp-build.pom"), + new File(verifier.getArtifactPath( + "org.sonatype.mavenbook.multi", "simple-webapp", "0.9-MNG6656-SNAPSHOT", "pom", "build"))); } static void assertTextEquals(File file1, File file2) throws IOException { - assertEquals(FileUtils.loadFile(file1), FileUtils.loadFile(file2)); + List s1 = FileUtils.loadFile(file1); + List s2 = FileUtils.loadFile(file2); + try { + assertEquals("Not same size", s1.size(), s2.size()); + for (int i = 0; i < s1.size(); i++) { + assertEquals("Mismatch line " + i, s1.get(i), s2.get(i)); + } + } catch (AssertionFailedError error) { + assertEquals(error.getMessage(), s1, s2); + } } } diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6957BuildConsumer.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6957BuildConsumer.java index 5b27a9142..503b2fa36 100644 --- a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6957BuildConsumer.java +++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6957BuildConsumer.java @@ -77,30 +77,60 @@ public void testPublishedPoms() throws Exception { new File(verifier.getArtifactPath( "org.sonatype.mavenbook.multi", "parent", "0.9-MNG6957-SNAPSHOT", "pom"))); + assertTextEquals( + new File(testDir, "expected/parent-build.pom"), + new File(verifier.getArtifactPath( + "org.sonatype.mavenbook.multi", "parent", "0.9-MNG6957-SNAPSHOT", "pom", "build"))); + assertTextEquals( new File(testDir, "expected/simple-parent.pom"), new File(verifier.getArtifactPath( "org.sonatype.mavenbook.multi", "simple-parent", "0.9-MNG6957-SNAPSHOT", "pom"))); + assertTextEquals( + new File(testDir, "expected/simple-parent-build.pom"), + new File(verifier.getArtifactPath( + "org.sonatype.mavenbook.multi", "simple-parent", "0.9-MNG6957-SNAPSHOT", "pom", "build"))); + assertTextEquals( new File(testDir, "expected/simple-weather.pom"), new File(verifier.getArtifactPath( "org.sonatype.mavenbook.multi", "simple-weather", "0.9-MNG6957-SNAPSHOT", "pom"))); + assertTextEquals( + new File(testDir, "expected/simple-weather-build.pom"), + new File(verifier.getArtifactPath( + "org.sonatype.mavenbook.multi", "simple-weather", "0.9-MNG6957-SNAPSHOT", "pom", "build"))); + assertTextEquals( new File(testDir, "expected/simple-webapp.pom"), new File(verifier.getArtifactPath( "org.sonatype.mavenbook.multi", "simple-webapp", "0.9-MNG6957-SNAPSHOT", "pom"))); + assertTextEquals( + new File(testDir, "expected/simple-webapp-build.pom"), + new File(verifier.getArtifactPath( + "org.sonatype.mavenbook.multi", "simple-webapp", "0.9-MNG6957-SNAPSHOT", "pom", "build"))); + assertTextEquals( new File(testDir, "expected/simple-testutils.pom"), new File(verifier.getArtifactPath( "org.sonatype.mavenbook.multi", "simple-testutils", "0.9-MNG6957-SNAPSHOT", "pom"))); + assertTextEquals( + new File(testDir, "expected/simple-testutils-build.pom"), + new File(verifier.getArtifactPath( + "org.sonatype.mavenbook.multi", "simple-testutils", "0.9-MNG6957-SNAPSHOT", "pom", "build"))); + assertTextEquals( new File(testDir, "expected/utils-parent.pom"), new File(verifier.getArtifactPath( "org.sonatype.mavenbook.multi", "utils-parent", "0.9-MNG6957-SNAPSHOT", "pom"))); + + assertTextEquals( + new File(testDir, "expected/utils-parent-build.pom"), + new File(verifier.getArtifactPath( + "org.sonatype.mavenbook.multi", "utils-parent", "0.9-MNG6957-SNAPSHOT", "pom", "build"))); } static void assertTextEquals(File file1, File file2) throws IOException { diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng7228LeakyModelTest.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng7228LeakyModelTest.java index f7a70094d..1868f57c1 100644 --- a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng7228LeakyModelTest.java +++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng7228LeakyModelTest.java @@ -21,6 +21,7 @@ import java.io.File; import org.apache.commons.io.FileUtils; +import org.apache.maven.artifact.versioning.DefaultArtifactVersion; import org.apache.maven.shared.verifier.Verifier; import org.apache.maven.shared.verifier.util.ResourceExtractor; import org.junit.jupiter.api.Test; @@ -54,8 +55,12 @@ void testLeakyModel() throws Exception { verifier.verifyErrorFreeLog(); - String pom = FileUtils.readFileToString( - new File(verifier.getArtifactPath("org.apache.maven.its.mng7228", "test", "1.0.0-SNAPSHOT", "pom"))); + String classifier = null; + if (getMavenVersion().compareTo(new DefaultArtifactVersion("4.0.0-alpha-7")) > 0) { + classifier = "build"; + } + String pom = FileUtils.readFileToString(new File( + verifier.getArtifactPath("org.apache.maven.its.mng7228", "test", "1.0.0-SNAPSHOT", "pom", classifier))); assertThat(pom, containsString("projectProperty")); assertThat(pom, not(containsString("activeProperty"))); diff --git a/core-it-suite/src/test/resources/mng-6656-buildconsumer/expected/parent-build.pom b/core-it-suite/src/test/resources/mng-6656-buildconsumer/expected/parent-build.pom new file mode 100644 index 000000000..98906356e --- /dev/null +++ b/core-it-suite/src/test/resources/mng-6656-buildconsumer/expected/parent-build.pom @@ -0,0 +1,31 @@ + + + + org.sonatype.mavenbook.multi + parent + 0.9-${changelist}-SNAPSHOT + pom + Multi Chapter Parent Project + + + + simple-parent + + diff --git a/core-it-suite/src/test/resources/mng-6656-buildconsumer/expected/parent.pom b/core-it-suite/src/test/resources/mng-6656-buildconsumer/expected/parent.pom index d557a66ca..d5ec0fc21 100644 --- a/core-it-suite/src/test/resources/mng-6656-buildconsumer/expected/parent.pom +++ b/core-it-suite/src/test/resources/mng-6656-buildconsumer/expected/parent.pom @@ -1,30 +1,9 @@ - - + 4.0.0 org.sonatype.mavenbook.multi parent 0.9-MNG6656-SNAPSHOT pom Multi Chapter Parent Project - - - - + \ No newline at end of file diff --git a/core-it-suite/src/test/resources/mng-6656-buildconsumer/expected/simple-parent-build.pom b/core-it-suite/src/test/resources/mng-6656-buildconsumer/expected/simple-parent-build.pom new file mode 100644 index 000000000..526699b41 --- /dev/null +++ b/core-it-suite/src/test/resources/mng-6656-buildconsumer/expected/simple-parent-build.pom @@ -0,0 +1,46 @@ + + + + 4.0.0 + + org.sonatype.mavenbook.multi + parent + + simple-parent + pom + Multi Chapter Simple Parent Project + + + simple-weather + simple-webapp + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + + + + + diff --git a/core-it-suite/src/test/resources/mng-6656-buildconsumer/expected/simple-parent.pom b/core-it-suite/src/test/resources/mng-6656-buildconsumer/expected/simple-parent.pom index 88015cd71..f6e68a3dd 100644 --- a/core-it-suite/src/test/resources/mng-6656-buildconsumer/expected/simple-parent.pom +++ b/core-it-suite/src/test/resources/mng-6656-buildconsumer/expected/simple-parent.pom @@ -1,23 +1,5 @@ - - + 4.0.0 org.sonatype.mavenbook.multi @@ -27,18 +9,13 @@ under the License. simple-parent pom Multi Chapter Simple Parent Project - - - - org.apache.maven.plugins maven-compiler-plugin - - + \ No newline at end of file diff --git a/core-it-suite/src/test/resources/mng-6656-buildconsumer/expected/simple-weather-build.pom b/core-it-suite/src/test/resources/mng-6656-buildconsumer/expected/simple-weather-build.pom new file mode 100644 index 000000000..b7ea1daa3 --- /dev/null +++ b/core-it-suite/src/test/resources/mng-6656-buildconsumer/expected/simple-weather-build.pom @@ -0,0 +1,30 @@ + + + + + org.sonatype.mavenbook.multi + simple-parent + + simple-weather + jar + + Multi Chapter Simple Weather API + + diff --git a/core-it-suite/src/test/resources/mng-6656-buildconsumer/expected/simple-weather.pom b/core-it-suite/src/test/resources/mng-6656-buildconsumer/expected/simple-weather.pom index 0c1aedf05..75d9dc2b1 100644 --- a/core-it-suite/src/test/resources/mng-6656-buildconsumer/expected/simple-weather.pom +++ b/core-it-suite/src/test/resources/mng-6656-buildconsumer/expected/simple-weather.pom @@ -1,23 +1,5 @@ - - + 4.0.0 org.sonatype.mavenbook.multi @@ -25,8 +7,5 @@ under the License. 0.9-MNG6656-SNAPSHOT simple-weather - jar - Multi Chapter Simple Weather API - - + \ No newline at end of file diff --git a/core-it-suite/src/test/resources/mng-6656-buildconsumer/expected/simple-webapp-build.pom b/core-it-suite/src/test/resources/mng-6656-buildconsumer/expected/simple-webapp-build.pom new file mode 100644 index 000000000..c07fcd10d --- /dev/null +++ b/core-it-suite/src/test/resources/mng-6656-buildconsumer/expected/simple-webapp-build.pom @@ -0,0 +1,46 @@ + + + + + org.sonatype.mavenbook.multi + simple-parent + + + simple-webapp + Multi Chapter Simple Web Application Project + + + org.sonatype.mavenbook.multi + simple-weather + + + + simple-webapp + + + + org.apache.maven.plugins + maven-war-plugin + 3.3.2 + + + + + diff --git a/core-it-suite/src/test/resources/mng-6656-buildconsumer/expected/simple-webapp.pom b/core-it-suite/src/test/resources/mng-6656-buildconsumer/expected/simple-webapp.pom index 680b417c2..ecd5348bf 100644 --- a/core-it-suite/src/test/resources/mng-6656-buildconsumer/expected/simple-webapp.pom +++ b/core-it-suite/src/test/resources/mng-6656-buildconsumer/expected/simple-webapp.pom @@ -1,30 +1,11 @@ - - + 4.0.0 org.sonatype.mavenbook.multi simple-parent 0.9-MNG6656-SNAPSHOT - simple-webapp Multi Chapter Simple Web Application Project @@ -39,11 +20,10 @@ under the License. - org.apache.maven.plugins maven-war-plugin 3.3.2 - + \ No newline at end of file diff --git a/core-it-suite/src/test/resources/mng-6656-buildconsumer/pom.xml b/core-it-suite/src/test/resources/mng-6656-buildconsumer/pom.xml index 2c66f7212..baa41ff20 100644 --- a/core-it-suite/src/test/resources/mng-6656-buildconsumer/pom.xml +++ b/core-it-suite/src/test/resources/mng-6656-buildconsumer/pom.xml @@ -17,8 +17,7 @@ KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> - - 4.0.0 + org.sonatype.mavenbook.multi parent 0.9-${changelist}-SNAPSHOT diff --git a/core-it-suite/src/test/resources/mng-6656-buildconsumer/simple-parent/pom.xml b/core-it-suite/src/test/resources/mng-6656-buildconsumer/simple-parent/pom.xml index 526699b41..706d33484 100644 --- a/core-it-suite/src/test/resources/mng-6656-buildconsumer/simple-parent/pom.xml +++ b/core-it-suite/src/test/resources/mng-6656-buildconsumer/simple-parent/pom.xml @@ -17,8 +17,7 @@ KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> - - 4.0.0 + org.sonatype.mavenbook.multi parent diff --git a/core-it-suite/src/test/resources/mng-6656-buildconsumer/simple-parent/simple-weather/pom.xml b/core-it-suite/src/test/resources/mng-6656-buildconsumer/simple-parent/simple-weather/pom.xml index 61e50911e..b7ea1daa3 100644 --- a/core-it-suite/src/test/resources/mng-6656-buildconsumer/simple-parent/simple-weather/pom.xml +++ b/core-it-suite/src/test/resources/mng-6656-buildconsumer/simple-parent/simple-weather/pom.xml @@ -17,8 +17,7 @@ KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> - - 4.0.0 + org.sonatype.mavenbook.multi simple-parent diff --git a/core-it-suite/src/test/resources/mng-6656-buildconsumer/simple-parent/simple-webapp/pom.xml b/core-it-suite/src/test/resources/mng-6656-buildconsumer/simple-parent/simple-webapp/pom.xml index 94e0ebe04..c07fcd10d 100644 --- a/core-it-suite/src/test/resources/mng-6656-buildconsumer/simple-parent/simple-webapp/pom.xml +++ b/core-it-suite/src/test/resources/mng-6656-buildconsumer/simple-parent/simple-webapp/pom.xml @@ -17,8 +17,7 @@ KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> - - 4.0.0 + org.sonatype.mavenbook.multi simple-parent diff --git a/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/parent-build.pom b/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/parent-build.pom new file mode 100644 index 000000000..bc932c61d --- /dev/null +++ b/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/parent-build.pom @@ -0,0 +1,32 @@ + + + + 4.0.0 + org.sonatype.mavenbook.multi + parent + 0.9-${changelist}-SNAPSHOT + pom + Multi Chapter Parent Project + + + + simple-parent + + diff --git a/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/parent.pom b/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/parent.pom index 10700cb4e..ecf4d09d0 100644 --- a/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/parent.pom +++ b/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/parent.pom @@ -1,22 +1,4 @@ - 4.0.0 org.sonatype.mavenbook.multi @@ -24,7 +6,4 @@ under the License. 0.9-MNG6957-SNAPSHOT pom Multi Chapter Parent Project - - - - + \ No newline at end of file diff --git a/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/simple-parent-build.pom b/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/simple-parent-build.pom new file mode 100644 index 000000000..89ee52ccc --- /dev/null +++ b/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/simple-parent-build.pom @@ -0,0 +1,52 @@ + + + + 4.0.0 + + org.sonatype.mavenbook.multi + parent + + simple-parent + pom + Multi Chapter Simple Parent Project + + + simple-weather + simple-webapp + + + + simple-testutils + utils-parent + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 0.1-stub-SNAPSHOT + + + + + + diff --git a/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/simple-parent.pom b/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/simple-parent.pom index 1b1551516..4f402f6b6 100644 --- a/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/simple-parent.pom +++ b/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/simple-parent.pom @@ -1,22 +1,4 @@ - 4.0.0 @@ -27,19 +9,14 @@ under the License. simple-parent pom Multi Chapter Simple Parent Project - - - - org.apache.maven.plugins maven-surefire-plugin 0.1-stub-SNAPSHOT - - + \ No newline at end of file diff --git a/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/simple-testutils-build.pom b/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/simple-testutils-build.pom new file mode 100644 index 000000000..75de31ce4 --- /dev/null +++ b/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/simple-testutils-build.pom @@ -0,0 +1,28 @@ + + + + 4.0.0 + + org.sonatype.mavenbook.multi + utils-parent + ../utils-parent + + simple-testutils + diff --git a/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/simple-testutils.pom b/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/simple-testutils.pom index d902a3c6c..dddf56160 100644 --- a/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/simple-testutils.pom +++ b/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/simple-testutils.pom @@ -1,22 +1,4 @@ - 4.0.0 @@ -25,4 +7,4 @@ under the License. 0.9-MNG6957-SNAPSHOT simple-testutils - + \ No newline at end of file diff --git a/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/simple-weather-build.pom b/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/simple-weather-build.pom new file mode 100644 index 000000000..7fbe5bfa2 --- /dev/null +++ b/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/simple-weather-build.pom @@ -0,0 +1,39 @@ + + + + 4.0.0 + + org.sonatype.mavenbook.multi + simple-parent + + simple-weather + jar + + Multi Chapter Simple Weather API + + + + org.sonatype.mavenbook.multi + simple-testutils + test + + + + diff --git a/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/simple-weather.pom b/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/simple-weather.pom index d4aa843d4..b7bbabb92 100644 --- a/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/simple-weather.pom +++ b/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/simple-weather.pom @@ -1,22 +1,4 @@ - 4.0.0 @@ -25,17 +7,13 @@ under the License. 0.9-MNG6957-SNAPSHOT simple-weather - jar - Multi Chapter Simple Weather API - org.sonatype.mavenbook.multi simple-testutils - test 0.9-MNG6957-SNAPSHOT + test - diff --git a/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/simple-webapp-build.pom b/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/simple-webapp-build.pom new file mode 100644 index 000000000..655d0ccd1 --- /dev/null +++ b/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/simple-webapp-build.pom @@ -0,0 +1,47 @@ + + + + 4.0.0 + + org.sonatype.mavenbook.multi + simple-parent + + + simple-webapp + Multi Chapter Simple Web Application Project + + + org.sonatype.mavenbook.multi + simple-weather + + + + simple-webapp + + + + org.apache.maven.plugins + maven-war-plugin + 3.3.2 + + + + + diff --git a/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/simple-webapp.pom b/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/simple-webapp.pom index 9cc486860..491e7bd9d 100644 --- a/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/simple-webapp.pom +++ b/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/simple-webapp.pom @@ -1,22 +1,4 @@ - 4.0.0 @@ -24,7 +6,6 @@ under the License. simple-parent 0.9-MNG6957-SNAPSHOT - simple-webapp Multi Chapter Simple Web Application Project @@ -39,11 +20,10 @@ under the License. - org.apache.maven.plugins maven-war-plugin 3.3.2 - + \ No newline at end of file diff --git a/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/utils-parent-build.pom b/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/utils-parent-build.pom new file mode 100644 index 000000000..933db5cdb --- /dev/null +++ b/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/utils-parent-build.pom @@ -0,0 +1,28 @@ + + + + 4.0.0 + + org.sonatype.mavenbook.multi + simple-parent + + utils-parent + pom + diff --git a/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/utils-parent.pom b/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/utils-parent.pom index 00f362464..22d4fdbcc 100644 --- a/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/utils-parent.pom +++ b/core-it-suite/src/test/resources/mng-6957-buildconsumer/expected/utils-parent.pom @@ -1,22 +1,4 @@ - 4.0.0 @@ -26,4 +8,4 @@ under the License. utils-parent pom - + \ No newline at end of file diff --git a/core-it-suite/src/test/resources/mng-7487-deadlock/plugin/pom.xml b/core-it-suite/src/test/resources/mng-7487-deadlock/plugin/pom.xml index 772f38ebc..e6dc32422 100644 --- a/core-it-suite/src/test/resources/mng-7487-deadlock/plugin/pom.xml +++ b/core-it-suite/src/test/resources/mng-7487-deadlock/plugin/pom.xml @@ -57,7 +57,7 @@ under the License. org.apache.maven.plugins maven-plugin-plugin - 3.6.4 + 3.9.0