使用idea install工程的时候出现了这样问题:

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

是使用的Plugins中的install:

The packaging for this project did not assign a file to the build artifact_参考资料

结合网上的相关资料,要使用Lifecycle下的install:

The packaging for this project did not assign a file to the build artifact_apache_02

原因好像是Lifecycle下才会走Maven完整的phase。