Each phase of a build lifecycle in implemented by a set of goals. These goals are part of plugins.
Which goals handle which phases is specified by binding the goals(s) to phases. Following is the list of default such bindings.
Some phases have goals binded to them by default. And for the default lifecycle, these bindings depend on the packaging value. Here are some of the goal-to-build-phase bindings.
Clean Lifecycle Bindings
clean | clean:clean |
Default Lifecycle Bindings - Packaging ejb / ejb3 / jar / par / rar / war
process-resources | resources:resources |
compile | compiler:compile |
process-test-resources | resources:testResources |
test-compile | compiler:testCompile |
test | surefire:test |
package | ejb:ejb or ejb3:ejb3 or jar:jar or par:par or rar:rar or war:war |
install | install:install |
deploy | deploy:deploy |
Default Lifecycle Bindings - Packaging ear
generate-resources | ear:generateApplicationXml |
process-resources | resources:resources |
package | ear:ear |
install | install:install |
deploy | deploy:deploy |
Default Lifecycle Bindings - Packaging maven-plugin
generate-resources | plugin:descriptor |
process-resources | resources:resources |
compile | compiler:compile |
process-test-resources | resources:testResources |
test-compile | compiler:testCompile |
test | surefire:test |
package | jar:jar and plugin:addPluginArtifactMetadata |
install | install:install and plugin:updateRegistry |
deploy | deploy:deploy |
Default Lifecycle Bindings - Packaging pom
package | site:attach-descriptor |
install | install:install |
deploy | deploy:deploy |
Site Lifecycle Bindings
site | site:site |
site-deploy | site:deploy |
No comments:
Post a Comment