简体   繁体   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

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.

相关问题 Maven错误:无法执行目标org.codehaus.mojo:exec-maven-plugin:1.2.1:exec - Maven error: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec netbeans运行错误:无法执行目标org.codehaus.mojo:exec-maven-plugin:1.2.1 - netbeans Run error :Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1 是否可以使用org.codehaus.mojo:build-helper-maven-plugin将本机dll捆绑到war文件中? - Is it possible to use the org.codehaus.mojo:build-helper-maven-plugin to bundle native dlls into a war file? Maven:无法执行目标org.codehaus.mojo:sonar-maven-plugin:2.7.1:声纳 - Maven: Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.7.1:sonar Maven 不会运行我的项目:无法执行目标 org.codehaus.mojo:exec-maven-plugin:1.2.1:exec - Maven won't run my Project : Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec Maven无法执行目标org.codehaus.mojo:exec-maven-plugin:1.3 - Maven Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.3 无法在项目上执行目标org.codehaus.mojo:exec-maven-plugin:1.2.1:exec(default-cli):命令执行失败 - Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project: Command execution failed 无法在项目上执行目标 org.codehaus.mojo:apt-maven-plugin:1.0-alpha-5:process (default): Apt failed - Failed to execute goal org.codehaus.mojo:apt-maven-plugin:1.0-alpha-5:process (default) on project: Apt failed 我尝试运行我的Maven项目时遇到错误:无法执行目标org.codehaus.mojo:exec-maven-plugin:1.2.1:exec(default-cli) - I have an error when i trying to run my maven project: Failed execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) org.codehaus.mojo:jaxb2-maven-plugin 2.0在哪里? - Where is org.codehaus.mojo:jaxb2-maven-plugin 2.0?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM