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

Use IDEA's Maven management tool to install the project to the local warehouse, and execute it under install:install under Plugins:

Insert picture description here

The result prompts an error:

[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

Solution:

Use verify install:install to execute

verify install:install 

Insert picture description here
Insert picture description here

execution succeed:

For detailed reasons, please refer to
https://blog.csdn.net/gao_zhennan/article/details/89713407

Guess you like

Origin blog.csdn.net/weixin_41003771/article/details/114659468