maven install 与install:install 的区别

Posted 木子李

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了maven install 与install:install 的区别相关的知识,希望对你有一定的参考价值。

install:install实际上是maven-install-plugin的目标这与install maven生命周期阶段不同。

Maven生命周期阶段是构建中的某些步骤,某些插件可以将其自身绑定到。当您调用单个生命周期阶段时,可能会执行来自不同插件的许多不同目标。

这归结为命令......

mvn clean install

与......不同

mvn clean install:install

前者将在每个循环中运行所有目标,包括安装(如编译,包,测试等)。后者甚至不会编译或打包你的代码,它只会运行那一个目标。

翻译:https://stackoverflow.com/questions/6308162/maven-the-packaging-for-this-project-did-not-assign-a-file-to-the-build-artifac

以上是关于maven install 与install:install 的区别的主要内容,如果未能解决你的问题,请参考以下文章

No plugin found for prefix ‘install‘ in the current project and in the plugin groups 的解决方法

No plugin found for prefix ‘install‘ in the current project and in the plugin groups 的解决方法

Run “mvn clean install” in Eclipse

apt-get install in Ubuntu 16.04 docker image: '/etc/resolv.conf': 设备或资源忙

sh 在OS X上安装GNU程序https://www.topbug.ne​​t/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-m

sh 在OS X上安装GNU程序https://www.topbug.ne​​t/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-m