今天通过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

xxxxxx是我的项目名称

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

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

 

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

Logo

助力广东及东莞地区开发者,代码托管、在线学习与竞赛、技术交流与分享、资源共享、职业发展,成为松山湖开发者首选的工作与学习平台

更多推荐