Maven报错:The packaging for this project did not assign a file to the build artifact

使用IDEA的Maven管理工具将项目安装到本地仓库,在Plugins下的install:install去执行:

在这里插入图片描述

结果提示报错:

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

解决方法:

使用 verify install:install 执行

verify install:install 

在这里插入图片描述
在这里插入图片描述

执行成功:

详细原因参见
https://blog.csdn.net/gao_zhennan/article/details/89713407

猜你喜欢

转载自blog.csdn.net/weixin_41003771/article/details/114659468