【问题标题】:Invalid packaging for parent pom org.code.exec-maven.plugin:1.4 must be pom but is "maven-plugin"父 pom org.code.exec-maven.plugin:1.4 的无效打包必须是 pom 但是“maven-plugin”
【发布时间】:2020-10-15 21:07:21
【问题描述】:

我在使用 mvn 编译 maven 项目时遇到以下错误,即使 exec-maven.plugin-1.4.pom 文件在工件上可用:

Downloading : https://domain.abc/public/org/code/exec-maven.plugin/1.4/exec-maven.plugin-1.4.pom
[ERROR]Invalid packaging for parent pom org.code.exec-maven.plugin:1.4  must be pom but is "maven-plugin @"
[ERROR]Invalid packaging for parent pom org.code.exec-maven.plugin:1.4  must be pom but is "maven-plugin @"
[FATAL] The parent from cycle  :om org.code.exec-maven.plugin:1.4 -> om org.code.exec-maven.plugin:1.4

【问题讨论】:

    标签: java maven dependencies artifactory mvn-repo


    【解决方案1】:

    您使用org.code.exec-maven.plugin:1.4 作为父 POM,但这是一个 Maven 插件,而不是父 POM。

    【讨论】:

    • 相同的 pom.xml 文件正在另一台机器上工作,两台机器都使用了相同的工件
    • 你检查过本地仓库中的POM文件吗?例如你的~/.m2 目录?
    • 对不起,我的回答错了。我留在这里是因为 Stephen C 发表了很好的评论。
    • 这里我没有在本地存储库 (~/.m2) 文件夹中存储任何工件。每次构建后都会删除此文件夹。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-09-17
    • 1970-01-01
    • 2016-01-26
    • 1970-01-01
    • 2020-04-04
    • 2010-12-31
    • 1970-01-01
    相关资源
    最近更新 更多