Skipping some license tests in Maven

opengllover picture opengllover · May 12, 2015 · Viewed 13.6k times · Source

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?

Answer

khmarbaise picture khmarbaise · May 12, 2015

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