From 1eb1b94d8bd4f69dd697b39de86f8c96566085ba Mon Sep 17 00:00:00 2001 From: Slawomir Jaranowski Date: Tue, 24 Oct 2023 21:30:27 +0200 Subject: [PATCH] Build improvements - one profile for ITs We can move configurations of ITs from project profile to invoker.properties per tested project --- pom.xml | 69 +------------------ src/it/ISSUE-145/submodule1/pom.xml | 2 +- src/it/MLICENSE-4/invoker.properties | 4 +- .../invoker.properties | 3 + .../invoker.properties | 1 + 5 files changed, 10 insertions(+), 69 deletions(-) diff --git a/pom.xml b/pom.xml index fedbf8178..c4994f6b9 100644 --- a/pom.xml +++ b/pom.xml @@ -321,11 +321,6 @@ - - org.codehaus.mojo - build-helper-maven-plugin - 3.4.0 - org.apache.maven.plugins maven-javadoc-plugin @@ -502,7 +497,8 @@ all-integration-test install - run + integration-test + verify @@ -510,73 +506,12 @@ ${project.groupId}:${project.artifactId}:${project.version}:license.properties:test-third-party - MLICENSE-4/pom.xml - download-licenses-proxy/pom.xml download-licenses-basic/pom.xml download-licenses-force/pom.xml - - - integration-test-offline - - run - - - - MLICENSE-4/pom.xml - - ${project.build.directory}/it-offline - - - - integration-test-proxy - - run - - - src/it/settings-proxy.xml - - download-licenses-proxy/pom.xml - - ${project.build.directory}/it-proxy - - - - - - - - - - run-one-it - - verify - - - maven-invoker-plugin - - ${project.build.directory}/it - src/it/settings.xml - ${project.build.directory}/local-repo - - - - - one-integration-test - - install - run - - - true - - ${itName}/pom.xml - - - diff --git a/src/it/ISSUE-145/submodule1/pom.xml b/src/it/ISSUE-145/submodule1/pom.xml index 08fd971ca..fe9ec7c64 100644 --- a/src/it/ISSUE-145/submodule1/pom.xml +++ b/src/it/ISSUE-145/submodule1/pom.xml @@ -26,7 +26,7 @@ org.apache.maven.plugins maven-shade-plugin - 3.2.1 + 3.5.1 package diff --git a/src/it/MLICENSE-4/invoker.properties b/src/it/MLICENSE-4/invoker.properties index 7c78e6286..a88668316 100644 --- a/src/it/MLICENSE-4/invoker.properties +++ b/src/it/MLICENSE-4/invoker.properties @@ -1 +1,3 @@ -invoker.goals=clean license:download-licenses -o \ No newline at end of file +invoker.goals=clean license:download-licenses -o +# execute as the last one +invoker.ordinal = -100 diff --git a/src/it/add-third-party-no-encoding/invoker.properties b/src/it/add-third-party-no-encoding/invoker.properties index a017991af..921ee0baa 100644 --- a/src/it/add-third-party-no-encoding/invoker.properties +++ b/src/it/add-third-party-no-encoding/invoker.properties @@ -21,3 +21,6 @@ ### invoker.goals=clean ${project.groupId}:${project.artifactId}:${project.version}:add-third-party invoker.failureBehavior=fail-fast + +# Maven 4 add default encoding +invoker.maven.version = !4.0.0+ diff --git a/src/it/download-licenses-proxy/invoker.properties b/src/it/download-licenses-proxy/invoker.properties index 457dd91ad..aa24f7a7a 100644 --- a/src/it/download-licenses-proxy/invoker.properties +++ b/src/it/download-licenses-proxy/invoker.properties @@ -1 +1,2 @@ invoker.goals = license:download-licenses +invoker.settingsFile = src/it/settings-proxy.xml