Maven的生命周期和maven-assembly-plugin插件使用
记住,运行任何一个阶段的时候,它前面的所有阶段都会被运行,这也就是为什么我们运行mvn install 的时候,代码会被编译,测试,打包。 Maven的插件机制是完全依赖Maven的生命周期的。 Furthermore, a build phase can also have zero or more goals bound to it. If a build phase has no goals bound to it, that build phase will not execute. 此外,每个build阶段可以有0到多个目标与其绑定。如果一个build阶段没有目标与其绑定,那这个build阶段不会执行。 Maven有一个概念:goal。每个build阶段可能包含一个或多个。 The first, and most common way, is to set the packaging for your project via the equally named POM element <packaging>. Some of the valid packaging values are jar, war, ear and pom. If no packaging value has been specified, it will default to jar. Each