Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Skipping some license tests in Maven

Tags:

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?

like image 356
opengllover Avatar asked May 12 '15 03:05

opengllover


People also ask

How do I run a specific test with Maven?

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.

How do I skip a test in spring boot?

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.

How do I run only failed test cases in Maven?

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.


2 Answers

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
like image 119
khmarbaise Avatar answered Sep 25 '22 01:09

khmarbaise


Run the build with this parameter -Drat.numUnapprovedLicenses=100

like image 43
Manju Shingadi Avatar answered Sep 26 '22 01:09

Manju Shingadi