- 什么是构建工具?
构建工具是将软件项目构建相关的过程自动化的工具。构建一个软件项目通常包含以下一个或多个过程:
- 生成源码(如果项目使用自动生成源码);
- 从源码生成项目文档;
- 编译源码;
- 将编译后的代码打包成JAR文件或者ZIP文件;
- 将打包好的代码安装到服务器、仓库或者其它的地方;
有些项目可能需要更多的过程才能完成构建,这些过程一般也可以整合到构建工具中,因此它们也可以实现自动化。
自动化构建过程的好处是将手动构建过程中犯错的风险降到最低。而且,自动构建工具通常要比手动执行同样的构建过程要快。
- http://ifeve.com/maven-1/
-
- The sequence of steps which is defined in order to execute the tasks and goals of any maven project is known as build life cycle in maven.
learn maven tutorial - maven project - apache maven - maven architecture - Apache Maven example programs
- Maven 2.0 version is basically a build life cycle oriented and clearly says that these steps are well defined to get the desired output after the successful execution of the build life cycle.
- Maven comes with 3 built-in build life cycles as shown below :
- Clean - this phase involves cleaning of the project (for a fresh build & deployment)
- Default - this phase handles the complete deployment of the project
- Site - this phase handles the generating the java documentation of the project.
learn maven tutorial - maven project - apache maven - maven lifecycle build types - Apache Maven example programs
https://www.wikitechy.com/tutorials/maven/maven-build-life-cycle
原文地址:https://www.cnblogs.com/feng9exe/p/12132963.html
时间: 2024-10-03 00:36:17