运行Maven安装时如何跳过许可证检查? [英] How do i skip the license check when running the maven install?

查看:1157
本文介绍了运行Maven安装时如何跳过许可证检查?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I ran a mvn clean install on a big Java project that I work on, but it kept failing due to some files not having the proper license headers. Well, thats not my concern right now, how do I skip that? the actual error i am seeing is,

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命令,但是没有用

I also tried this maven command, but it didn't work

mvn clean install -Dlicense.skip=true

推荐答案

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

Try skipping AddThirdParty mojo with -Dlicense.skipAddThirdParty=true.

这篇关于运行Maven安装时如何跳过许可证检查?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆