You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by gn...@apache.org on 2024/08/27 19:02:10 UTC
(maven-integration-testing) branch master updated: Use non deprecated option for Maven >= 4.0.0-beta-4
This is an automated email from the ASF dual-hosted git repository.
gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-integration-testing.git
The following commit(s) were added to refs/heads/master by this push:
new 41cd7059b Use non deprecated option for Maven >= 4.0.0-beta-4
41cd7059b is described below
commit 41cd7059bf204dc338dbf9e92bc17b8e2c0f2b22
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Tue Aug 27 21:02:01 2024 +0200
Use non deprecated option for Maven >= 4.0.0-beta-4
---
.../java/org/apache/maven/it/AbstractMavenIntegrationTestCase.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/core-it-support/maven-it-helper/src/main/java/org/apache/maven/it/AbstractMavenIntegrationTestCase.java b/core-it-support/maven-it-helper/src/main/java/org/apache/maven/it/AbstractMavenIntegrationTestCase.java
index 99fee1bce..f91e35aee 100644
--- a/core-it-support/maven-it-helper/src/main/java/org/apache/maven/it/AbstractMavenIntegrationTestCase.java
+++ b/core-it-support/maven-it-helper/src/main/java/org/apache/maven/it/AbstractMavenIntegrationTestCase.java
@@ -280,7 +280,11 @@ public abstract class AbstractMavenIntegrationTestCase {
String path = settingsFile.getAbsolutePath();
- verifier.addCliArgument("--global-settings");
+ if (matchesVersionRange("[4.0.0-beta-4,)")) {
+ verifier.addCliArgument("--install-settings");
+ } else {
+ verifier.addCliArgument("--global-settings");
+ }
if (path.indexOf(' ') < 0) {
verifier.addCliArgument(path);
} else {