运行Maven安装时如何跳过许可证检查?

Shr*_*thy 5 maven license-maven-plugin

我在一个mvn clean install正在进行的大型Java项目上运行,但是由于某些文件没有正确的许可证标头,它一直失败。好吧,那不是我现在关心的问题,我该如何跳过呢?我看到的实际错误是

Failed to execute goal org.codehaus.mojo:license-maven-plugin:1.14:add-third-party (default) on project test-project: There are some dependencies with no license, please fill the file /Users/test-project/src/license/THIRD-PARTY.properties 
Run Code Online (Sandbox Code Playgroud)

我也尝试了这个maven命令,但是没有用

mvn clean install -Dlicense.skip=true
Run Code Online (Sandbox Code Playgroud)

mis*_*der 9

尝试使用 跳过 AddThirdParty mojo -Dlicense.skipAddThirdParty=true


Mas*_*aka 5

就我而言,它适用于 just -Dlicense.skip, without =true

<plugin>
  <groupId>com.mycila</groupId>
  <artifactId>license-maven-plugin</artifactId>
  <version>3.0</version>
</plugin>
Run Code Online (Sandbox Code Playgroud)