File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
core-it-suite/src/test/java/org/apache/maven/it Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -79,9 +79,11 @@ public void testitMNG3746_UsingCLIProperty() throws Exception {
7979 verifier = newVerifier (projectDir .getAbsolutePath ());
8080 verifier .setLogFileName ("log-cli.txt" );
8181
82- verifier .addCliArgument ("-Dtest.verification=cli" );
82+ // user properties are copied to system properties... setting java.version here
83+ // has impact on system property used by code, so use a value that will be more safely
84+ verifier .addCliArgument ("-Dtest.verification=100" );
8385 verifier .addCliArgument ("-Dtest.usingCliValue=true" );
84- verifier .addCliArgument ("-Djava.version=cli " );
86+ verifier .addCliArgument ("-Djava.version=100 " );
8587
8688 verifier .addCliArgument ("validate" );
8789 verifier .execute ();
You can’t perform that action at this time.
0 commit comments