[英]Failed to execute goal org.apache.rat:apache-rat-plugin:0.8:check (default) on project giraph-gora: Too many unapproved licenses: 56
I am new to Giraph and hadoop.I am trying to compile giraph using maven i tried using command mvn -Phadoop_2 -fae -DskipTests clean install
on command prompt but i am getting error.我是 Giraph 和 hadoop 的新手。我正在尝试使用 maven 编译 giraph 我尝试在命令提示符下使用命令
mvn -Phadoop_2 -fae -DskipTests clean install
但我收到错误。 Image i attached is from eclipse(i am geting similar error in cmd as well .我附上的图片来自 eclipse(我在 cmd 中也遇到了类似的错误。
GIRAPH version- 1.2.0 RC1
HADOOP version- 2.2.0
MAVEN version- 3.5.3
JAVA version 1.8.0_121
Any help in solving this problem will help me a lot.解决这个问题的任何帮助都会对我有很大帮助。 THANK YOU
谢谢你
I found a workaround for this as I was facing a similar problem.我找到了一个解决方法,因为我遇到了类似的问题。
mvn clean install -PallModules -Drat.numUnapprovedLicenses=200 -DskipTests
-Drat.numUnapprovedLicenses=200
This helps to suppress the error.-Drat.numUnapprovedLicenses=200
这有助于抑制错误。
Thanks @leftjoin for the comment.感谢@leftjoin 的评论。
There must be a file created by Apache Rat in the path giraph-gora/target/rat.txt
(as this is the failed project).路径
giraph-gora/target/rat.txt
必须有Apache Rat创建的文件(因为这是失败的项目)。 This file will contain details on the files in your projects that do not have a proper licence (as well as the ones that do but these are not of any interest to you).此文件将包含有关您的项目中没有适当许可证的文件(以及有但您不感兴趣的文件)的详细信息。
Most likely, the case is that the files produced by eclipse (.classpath, .project, org.eclipse.core.resources.prefs, org.eclipse.m2e.core.prefs,org.eclipse.jdt.core.prefs) are creating the problem.最有可能的情况是 eclipse 生成的文件(.classpath、.project、org.eclipse.core.resources.prefs、org.eclipse.m2e.core.prefs、org.eclipse.jdt.core.prefs)是造成问题。 If you remove them you will be able to compile giraph properly.
如果您删除它们,您将能够正确编译 giraph。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.