maven install时报错Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.3.2:install

在练习ssm整合时,测试mybatis的generator自动生成配置的时候,clean项目之后,重新install项目时,报错

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install 
(default-cli) on project test: The packaging for this project did not assign a file to the build artifact -> [Help 1]>

在博客上看到解决方法和问题产生原因,在此做个记录,方便以后查阅

解决方法:

使用Maven管理工具 工具栏中的Execute Maven Goal,如下图所示
在这里插入图片描述
点击打开,输入Maven命令,特殊说明:在windows的cmd中执行命令,需要在最前面加上mvn,而在这里不需要,如下图所示:
在这里插入图片描述

原文博主: 

原博文链接:https://blog.csdn.net/gao_zhennan/article/details/89713407

猜你喜欢

转载自www.cnblogs.com/woaiacfun/p/11908482.html