本文介绍: 今天通过IDEA进行maveninstall操作,报了以下错误Failed to execute goal org.apache.maven.plugins:maveninstall-plugin:2.5.2:install (defaultcli) on project xxxxxx: The packaging for this project did not assign a file to the build artifactxxxxxx是我的项目名称把项目清了重试,和在网上找了很多方法

今天通过IDEA进行maveninstall操作,报了以下错误

Failed to execute goal org.apache.maven.plugins:maveninstall-plugin:2.5.2:install (defaultcli) on project xxxxxx: The packaging for this project did not assign a file to the build artifact

xxxxxx是我的项目名称

把项目清了重试,和在网上找了很多方法都没用,而用eclipse命令mvn install却是可以的。

后来发现,原来是要用Lifecycle下的install才有效

参考:https://blog.csdn.net/Camellia919/article/details/81190450

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注