簡體   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