首页 > 解决方案 > 父 pom org.code.exec-maven.plugin:1.4 的无效打包必须是 pom 但是“maven-plugin”

问题描述

使用 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

标签: javamavendependenciesartifactorymvn-repo

解决方案


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


推荐阅读