I want to skip some license test but in vain.
I tried several things such as -Dlicense.skip=true
or -Dlicensing
or Drat.numUnapprovedLicense=100
.
Still it didn't work. How can I skip this process?
The Maven surefire plugin provides a test parameter that we can use to specify test classes or methods we want to execute. If we want to execute a single test class, we can execute the command mvn test -Dtest=”TestClassName”. As the output shows, only the test class we've passed to the test parameter is executed.
By default, the integration tests will run but this setup allows you to easily disable them on the command-line as follows: mvn verify -Dskip.it=true.
During development, you may re-run failing tests because they are flaky. To use this feature through Maven surefire, set the rerunFailingTestsCount property to be a value larger than 0. Tests will be run until they pass or the number of reruns has been exhausted.
I would suggest to read the documentation which brings up the following:
mvn -Drat.ignoreErrors=true package
What is also possible to skip it completely via:
mvn -Drat.skip=true package
Run the build with this parameter -Drat.numUnapprovedLicenses=100
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With