使用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