7

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

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 

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

mvn clean install -Dlicense.skip=true
4

4 回答 4

5

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

于 2018-03-14T16:00:09.820 回答
3

我发现这很有帮助

$ mvn license:help -Ddetail | fgrep skip

这给了我

-Dlicense.skipDownloadLicenses

您不需要添加=true,因为只需定义它就足够了。

于 2019-07-12T11:12:40.447 回答
2

就我而言,它与 just -Dlicense.skip、 without一起使用=true

<plugin>
  <groupId>com.mycila</groupId>
  <artifactId>license-maven-plugin</artifactId>
  <version>3.0</version>
</plugin>
于 2021-06-12T03:42:32.033 回答
0

这个对我有用

-Dlicense.skipCheckLicense
于 2020-04-20T22:55:55.707 回答