Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.5.2:install (default-cli) ...

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

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

XXX是我的项目名称

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

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

原文链接:https://blog.csdn.net/dgywj/article/details/116710067

你可能感兴趣的:(Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.5.2:install (default-cli) ...)