0

我正在尝试在 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:    `
4

2 回答 2

2

The License Maven Plugin is detecting some files that do not have a header, and hence throwing the error. You can fix this by running the below command:

$ mvn license:update-file-header

This should add the header to the missing files. Then you can attempt the build again.

于 2018-08-30T17:08:58.580 回答
0

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

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

git checkout v0.9.1.1
mvn clean install -DskipTests
于 2018-08-30T16:21:22.937 回答