Skipping some license tests in Maven

心不动则不痛 提交于 2019-11-29 02:31:25

问题


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?


回答1:


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



回答2:


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




回答3:


In pom file change version as below apache-rat-plugin 0.12




回答4:


I ran into similar issues and skipped license check by only -Dlicense.skip.



来源:https://stackoverflow.com/questions/30181154/skipping-some-license-tests-in-maven

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!