简体   繁体   English

无法在项目 giraph-gora 上执行目标 org.apache.rat:apache-rat-plugin:0.8:check (default): Too many unapproved licenses: 56

[英]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.

相关问题 无法在项目上执行目标org.apache.maven.plugins:maven-compiler-plugin:3.3:compile(default-compile) - Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project 无法在项目上执行目标 org.apache.maven.plugins:maven-compiler-plugin (default-compile): Fatal error compiling: tools.jar not found - Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin (default-compile) on project: Fatal error compiling: tools.jar not found 无法在项目上执行目标 org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3:test (default-test)。 而“作为 Maven 测试运行” - Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3:test (default-test) on project. while 'Run as Maven test' 无法在项目上执行目标org.apache.maven.plugins:maven-surefire-plugin:2.5-r682619-maestro-2.0.0:test(默认测试) - Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5-r682619-maestro-2.0.0:test (default-test) on project 无法执行目标org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test(default-test) - Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) 未能执行目标 org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) - Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) 无法执行目标org.apache.maven.plugins:maven-compiler-plugin:3.1:compile - Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile Maven:无法执行目标 org.apache.maven.plugins:maven-resources-plugin:2.7:resources - Maven:Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.7:resources org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1 - org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1 无法执行目标org.apache.camel:camel-maven-plugin:2.11.0:run MojoExecutionException - Failed to execute goal org.apache.camel:camel-maven-plugin:2.11.0:run MojoExecutionException
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM