码迷,mamicode.com
首页 > 其他好文 > 详细

Maven - Maven Build Life Cycle - maven tutorial

时间:2020-01-02 16:04:23      阅读:92      评论:0      收藏:0      [点我收藏+]

标签:它的   block   build   apache   call   软件   The   构建   ges   

  • 什么是构建工具?

    构建工具是将软件项目构建相关的过程自动化的工具。构建一个软件项目通常包含以下一个或多个过程:

    • 生成源码(如果项目使用自动生成源码);
    • 从源码生成项目文档;
    • 编译源码;
    • 将编译后的代码打包成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

Maven - Maven Build Life Cycle - maven tutorial

标签:它的   block   build   apache   call   软件   The   构建   ges   

原文地址:https://www.cnblogs.com/feng9exe/p/12132963.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!