[英]Failed to build maven project with following maven error org.codehaus.mojo:license-maven-plugin:1.12:check-file-header
I am trying to build Kylo v_0.9.1 using eclipse with m2e on Windows platform . 我试图在Windows平台上使用带有m2e的eclipse构建Kylo v_0.9.1。 But the project build fails at kylo-operational-metadata-jpa and throws following error.
但是项目构建在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: `
The License Maven Plugin is detecting some files that do not have a header, and hence throwing the error. License Maven插件检测到一些没有头的文件,因此引发错误。 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.
然后,您可以再次尝试构建。
The Maven output indicates you're trying to build Kylo 0.9.2-SNAPSHOT which is an unstable version and not supported by the Kylo team. Maven输出表明您正在尝试构建Kylo 0.9.2-SNAPSHOT,这是一个不稳定的版本,Kylo团队不支持。
To build Kylo 0.9.1 please try these commands: 要构建Kylo 0.9.1,请尝试以下命令:
git checkout v0.9.1.1
mvn clean install -DskipTests
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.