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:52 UTC

[maven-integration-testing] branch master 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 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 6906ad070 [MNG-7634] Pass user properties instead of system properties
6906ad070 is described below

commit 6906ad0704dd3e0d7a29b70a03640b3523eb59b7
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 b948c8f43..aa80c2f53 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
@@ -56,9 +56,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();