maven生命周期、阶段与默认绑定插件梳理
maven生命周期、阶段与默认绑定插件梳理
1.maven生命周期、阶段与默认绑定插件
序号 | 生命周期 lifecycle | 阶段 phase | 默认绑定插件(链接官网) | 默认绑定插件(链接maven库) | 说明 |
---|---|---|---|---|---|
1 | clean | clean | maven-clean-plugin | maven-clean-plugin | 清理 |
2.1 | build | validate | — | — | 验证 |
2.2 | build | compile | maven-compiler-plugin maven-resources-plugin | maven-compiler-plugin maven-resources-plugin | 编译 |
2.3 | build | test | maven-surefile-plugin | maven-surefile-plugin | 测试 |
2.4 | build | package | maven-jar-plugin maven-war-plugin | maven-jar-plugin maven-war-plugin | 打包 |
2.5 | build | verify | —— | —— | 检查 |
2.6 | build | install | maven-install-plugin | maven-install-plugin | 安装 |
2.7 | build | deploy | maven-deploy-plugin | maven-deploy-plugin | 部署 |
3 | site | site | maven-site-plugin | maven-site-plugin | 站点 |