Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Sep 30, 2024
1 parent b44ce2e commit 7c3b5ae
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void testitCiFriendlyWithProjectProperties() throws Exception {
File testDir = ResourceExtractor.simpleExtractResources(getClass(), "/mng-8230-ci-friendly-and-gav");

Verifier verifier = newVerifier(new File(testDir, "cif-with-project-props").getAbsolutePath());
verifier.addCliArguments("help:evaluate", "-Dexpression=project.version");
verifier.addCliArguments("org.apache.maven.plugins:maven-help-plugin:3.3.0:evaluate", "-Dexpression=project.version");
verifier.execute();
verifier.verifyErrorFreeLog();
verifyExactLine(verifier, "1.0-SNAPSHOT");
Expand All @@ -61,7 +61,7 @@ void testitCiFriendlyWithProjectPropertiesOverride() throws Exception {
File testDir = ResourceExtractor.simpleExtractResources(getClass(), "/mng-8230-ci-friendly-and-gav");

Verifier verifier = newVerifier(new File(testDir, "cif-with-project-props").getAbsolutePath());
verifier.addCliArguments("help:evaluate", "-Dexpression=project.version", "-Dci-version=1.1-SNAPSHOT");
verifier.addCliArguments("org.apache.maven.plugins:maven-help-plugin:3.3.0:evaluate", "-Dexpression=project.version", "-Dci-version=1.1-SNAPSHOT");
verifier.execute();
verifier.verifyErrorFreeLog();
verifyExactLine(verifier, "1.1-SNAPSHOT");
Expand All @@ -77,7 +77,7 @@ void testitCiFriendlyWithUserProperties() throws Exception {
File testDir = ResourceExtractor.simpleExtractResources(getClass(), "/mng-8230-ci-friendly-and-gav");

Verifier verifier = newVerifier(new File(testDir, "cif-with-user-props").getAbsolutePath());
verifier.addCliArguments("help:evaluate", "-Dexpression=project.version", "-Dci-version=1.1-SNAPSHOT");
verifier.addCliArguments("org.apache.maven.plugins:maven-help-plugin:3.3.0:evaluate", "-Dexpression=project.version", "-Dci-version=1.1-SNAPSHOT");
verifier.execute();
verifier.verifyErrorFreeLog();
verifyExactLine(verifier, "1.1-SNAPSHOT");
Expand All @@ -93,7 +93,7 @@ void testitCiFriendlyWithUserPropertiesNotGiven() throws Exception {
File testDir = ResourceExtractor.simpleExtractResources(getClass(), "/mng-8230-ci-friendly-and-gav");

Verifier verifier = newVerifier(new File(testDir, "cif-with-user-props").getAbsolutePath());
verifier.addCliArguments("help:evaluate", "-Dexpression=project.version");
verifier.addCliArguments("org.apache.maven.plugins:maven-help-plugin:3.3.0:evaluate", "-Dexpression=project.version");
try {
verifier.execute();
fail("Expected failure");
Expand Down

0 comments on commit 7c3b5ae

Please sign in to comment.