我从这个github仓库中克隆了源代码:git://github.com/glyptodon/guacamole-client.git
我能够成功构建并使用它。
我阅读了该项目的许可协议:https://github.com/glyptodon/guacamole-client/tree/master/guacamole/src/licenses
它被称为
特此授予获得以下内容的任何人免费的许可 该软件和相关文档文件( “软件”),无限制地处理软件,包括 但不限于使用,复制,修改,合并,发布, 分发,再许可和/或出售本软件的副本,并 允许提供软件的人员这样做,但须遵守 以下条件:
但是当我在其中添加一个类并进行构建时,它会抛出许可证错误:
[INFO] Scanning for projects...
[INFO]
[INFO] -------------------< org.apache.guacamole:guacamole >-------------------
[INFO] Building guacamole 1.0.0
[INFO] --------------------------------[ war ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ guacamole ---
[INFO] Deleting /guacamole-client/guacamole/target
[INFO]
[INFO] --- apache-rat-plugin:0.12:check (validate) @ guacamole ---
[INFO] Enabled default license matchers.
[INFO] Will parse SCM ignores for exclusions...
[INFO] Parsing exclusions from /guacamole-client/guacamole/.gitignore
[INFO] Finished adding exclusions from SCM ignore files.
[INFO] 67 implicit excludes (use -debug for more details).
[INFO] Exclude: src/main/webapp/app/*/templates/*.html
[INFO] Exclude: **/*.json
[INFO] Exclude: src/licenses/**/*
[INFO] 485 resources included (use -debug for more details)
[INFO] Rat check: Summary over all files. Unapproved: 1, unknown: 1, generated: 0, approved: 419 licenses.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.115 s
[INFO] Finished at: 2018-11-18T21:45:16+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.12:check (validate) on project guacamole: Too many files with unapproved license: 1 See RAT report in: /guacamole/target/rat.txt -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
附加了rat.txt以供参考:https://codeshare.io/adNYMZ
有人可以帮我为什么我不能覆盖这个开源项目吗?
谢谢, 哈里
答案 0 :(得分:0)
文件中缺少许可证标头
src/main/java/org/apache/guacamole/rest/auth/TutorialAuthenticationProvider.java
Guacamole pom.xml配置为使用RAT,它检查所有文件中是否存在许可证文本。如果不包括许可证,则构建将失败。
您还可以使用选项-Drat.skip=true
禁用RAT或将文件添加到pom.xml的排除列表中(这对于某些不需要许可证的资源文件很有用)。