gpt4 book ai didi

java - 无法构建 Maven 项目,并出现以下 Maven 错误 org.codehaus.mojo :license-maven-plugin:1. 12:check-file-header

转载 作者:行者123 更新时间:2023-12-02 10:52:04 25 4
gpt4 key购买 nike

我正在尝试在Windows平台上使用eclipse和m2e构建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 Plugin正在检测一些没有 header 的文件,因此引发错误。您可以通过运行以下命令来修复此问题:

$ mvn license:update-file-header

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

关于java - 无法构建 Maven 项目,并出现以下 Maven 错误 org.codehaus.mojo :license-maven-plugin:1. 12:check-file-header,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52094358/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com