繁体   English   中英

无法通过以下Maven错误org.codehaus.mojo:license-maven-plugin:1.12:check-file-header构建Maven项目

[英]Failed to build maven project with following maven error org.codehaus.mojo:license-maven-plugin:1.12:check-file-header

我试图在Windows平台上使用带有m2e的eclipse构建Kylo v_0.9.1。 但是项目构建在kylo-operational-metadata-jpa失败,并引发以下错误。

[INFO] ------------------------------------------------------------------------

[INFO] Building kylo-operational-metadata-jpa 0.9.1.2-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO] 

[INFO] --- apt-maven-plugin:1.1.3:process (default) @ kylo-operational-metadata-jpa ---

[INFO] 
[INFO] --- license-maven-plugin:1.12:update-file-header (first) @ kylo-operational-metadata-jpa ---
[WARNING] The failOnMissingHeader has no effect if the property dryRun is not set.
[WARNING] The failOnNotUptodateHeader has no effect if the property dryRun is not set.

[INFO] adding extra resolver file:/C:/Users/kylo_0_9_1/kylo/core/operational-metadata/operational-metadata-jpa/../../../license-config

[WARNING] The extension sql is already accepted for comment style sql

[INFO] Will search files to update from root C:\Users\kylo_0_9_1\kylo\core\operational-metadata\operational-metadata-jpa\target\generated-sources

[INFO] Scan 52 files header done in 1.089s.

[INFO] 
 * add header on 52 files.

[INFO] 

[INFO] --- license-maven-plugin:1.12:check-file-header (first) @ kylo-operational-metadata-jpa ---

[INFO] adding extra resolver file:/C:/Users//kylo_0_9_1/kylo/core/operational-metadata/operational-metadata-jpa/../../../license-config

[WARNING] The extension sql is already accepted for comment style sql

[INFO] Will search files to update from root 



[ERROR] Failed to execute goal org.codehaus.mojo:license-maven-plugin:1.12:check-file-header (first) on project kylo-operational-metadata-jpa:

[ERROR] There are 52 file(s) with header to update:    `

License Maven插件检测到一些没有头的文件,因此引发错误。 您可以通过运行以下命令来解决此问题:

$ mvn license:update-file-header

这应该将标头添加到丢失的文件中。 然后,您可以再次尝试构建。

Maven输出表明您正在尝试构建Kylo 0.9.2-SNAPSHOT,这是一个不稳定的版本,Kylo团队不支持。

要构建Kylo 0.9.1,请尝试以下命令:

git checkout v0.9.1.1
mvn clean install -DskipTests

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM