You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2022/12/20 08:24:42 UTC

[maven-integration-testing] branch maven-3.8.x updated: [MNG-7634] Pass user properties instead of system properties

This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch maven-3.8.x
in repository https://gitbox.apache.org/repos/asf/maven-integration-testing.git


The following commit(s) were added to refs/heads/maven-3.8.x by this push:
     new 4f4f8439f [MNG-7634] Pass user properties instead of system properties
4f4f8439f is described below

commit 4f4f8439f2d1e9967377feb3a463aa59b1fb4e8c
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Tue Dec 20 09:21:08 2022 +0100

    [MNG-7634] Pass user properties instead of system properties
    
    Instead of passing a user property to verify a fix a system property was passed
    where code worked before and after the fix identically.
---
 .../maven/it/MavenITmng4913UserPropertyVsDependencyPomPropertyTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng4913UserPropertyVsDependencyPomPropertyTest.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng4913UserPropertyVsDependencyPomPropertyTest.java
index f7edc05e1..e4082ffe4 100644
--- a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng4913UserPropertyVsDependencyPomPropertyTest.java
+++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng4913UserPropertyVsDependencyPomPropertyTest.java
@@ -52,9 +52,9 @@ public class MavenITmng4913UserPropertyVsDependencyPomPropertyTest
         verifier.setAutoclean( false );
         verifier.deleteDirectory( "target" );
         verifier.deleteArtifacts( "org.apache.maven.its.mng4913" );
-        verifier.setSystemProperty( "mng4913.version", "98.76" );
         verifier.addCliOption( "-s" );
         verifier.addCliOption( "settings.xml" );
+        verifier.addCliOption( "-Dmng4913.version=98.76" );
         verifier.filterFile( "settings-template.xml", "settings.xml", "UTF-8", verifier.newDefaultFilterProperties() );
         verifier.executeGoal( "validate" );
         verifier.verifyErrorFreeLog();