Skip to content

Commit

Permalink
adding mvn argument to ignore the enforcer error (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
shanto-Rahman authored Sep 16, 2024
1 parent 8a111a1 commit ff99268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This repository is a fork of Maven Surefire that contains two main modifications

To use the plugin, please perform the following steps.

1. Run ```mvn install -DskipTests -Drat.skip``` in this directory
1. Run ```mvn install -DskipTests -Drat.skip -Denforcer.skip``` in this directory
2. Copy ```surefire-changing-maven-extension/target/surefire-changing-maven-extension-1.0-SNAPSHOT.jar``` into your Maven installation's ```lib/ext``` directory. This [StackOverflow post](https://stackoverflow.com/a/39479104) may help indicate where your Maven installation is located

The copying of the extension helps ensure that any project you run ```mvn test``` on will now use this custom version of Surefire and change certain settings (e.g., reuseForks to false) to prevent issues with fixing the ordering of tests. More information on how to use Maven extensions can be found [here](https://maven.apache.org/examples/maven-3-lifecycle-extensions.html#use-your-extension-in-your-build-s). Note that if you already have ```surefire-changing-maven-extension-1.0-SNAPSHOT.jar``` in your Maven installation's ```lib/ext``` you must first remove the jar before installing again.
Expand Down

0 comments on commit ff99268

Please sign in to comment.