From cfa0ee31d9a9e2e2fe54ba607e193b9e018520d3 Mon Sep 17 00:00:00 2001 From: BJ Hargrave Date: Wed, 28 Aug 2024 08:47:52 -0400 Subject: [PATCH] maven-plugins: Add integration test execution for maven target version For extra coverage, in addition to running integration tests on the build maven version, we now also run the integration tests on the target maven version. Signed-off-by: BJ Hargrave --- .../pom.xml | 4 +++ .../transformer-maven-plugin/pom.xml | 6 +++- org.eclipse.transformer.parent/pom.xml | 36 +++++++++++++++++-- 3 files changed, 43 insertions(+), 3 deletions(-) diff --git a/bnd-plugins/org.eclipse.transformer.bnd.analyzer/pom.xml b/bnd-plugins/org.eclipse.transformer.bnd.analyzer/pom.xml index 4d82ad21..fcea3afb 100644 --- a/bnd-plugins/org.eclipse.transformer.bnd.analyzer/pom.xml +++ b/bnd-plugins/org.eclipse.transformer.bnd.analyzer/pom.xml @@ -109,6 +109,10 @@ + + org.apache.maven.plugins + maven-dependency-plugin + org.apache.maven.plugins maven-invoker-plugin diff --git a/maven-plugins/transformer-maven-plugin/pom.xml b/maven-plugins/transformer-maven-plugin/pom.xml index 31f0d617..5c7b3fd9 100644 --- a/maven-plugins/transformer-maven-plugin/pom.xml +++ b/maven-plugins/transformer-maven-plugin/pom.xml @@ -159,10 +159,14 @@ org.apache.maven.plugins maven-plugin-plugin + + org.apache.maven.plugins + maven-dependency-plugin + org.apache.maven.plugins maven-invoker-plugin - \ No newline at end of file + diff --git a/org.eclipse.transformer.parent/pom.xml b/org.eclipse.transformer.parent/pom.xml index 3e971086..75de664e 100644 --- a/org.eclipse.transformer.parent/pom.xml +++ b/org.eclipse.transformer.parent/pom.xml @@ -180,6 +180,27 @@ SPDX-License-Identifier: ${project.licenses[0].name} org.apache.maven.plugins maven-dependency-plugin 3.8.0 + + + maven-target-version + pre-integration-test + + unpack + + + + + org.apache.maven + apache-maven + ${maven.target.version} + bin + zip + ${project.build.directory}/it + + + + + org.apache.maven.plugins @@ -213,9 +234,10 @@ SPDX-License-Identifier: ${project.licenses[0].name} ${basedir}/src/it ${basedir}/src/it/settings.xml - ${project.build.directory}/it-repo - ${project.build.directory}/it + ${project.build.directory}/it/${mojo.executionId}/repo + ${project.build.directory}/it/${mojo.executionId}/projects true + ${project.build.directory}/invoker-reports/${mojo.executionId} ${project.build.sourceEncoding} ${project.reporting.outputEncoding} @@ -241,6 +263,16 @@ SPDX-License-Identifier: ${project.licenses[0].name} run + + integration-test-maven-target-version + + install + run + + + ${project.build.directory}/it/apache-maven-${maven.target.version} + +