Skip to content

Instantly share code, notes, and snippets.

@terngkub
Last active February 7, 2020 15:49
Show Gist options
  • Select an option

  • Save terngkub/d11804123e9c30d4a92c626396a25335 to your computer and use it in GitHub Desktop.

Select an option

Save terngkub/d11804123e9c30d4a92c626396a25335 to your computer and use it in GitHub Desktop.
# Section: Maven Basics
## Maven Life Cycles
Each life cycles contains phases.
Each phases may have plugin and goal
Three pre-defined lifecycles
* clean
* pre-clean
* clean
* maven-clean-plugin:clean
* post-clean
* default
* __main__ validate
* initialize
* generate-sources
* process-sources
* generate-resources
* process-resources
* maven-resources-plugin:resources
* __main__ compile
* maven-compiler-plugin:compile
* generate-test sources
* process-test sources
* generate-test resources
* process-test resources
* test-compile
* maven-compiler-plugin:testCompile
* process-test classes
* __main__ test
* maven-surefire-plugin:test
* prepare-pakcakge
* __main__ package
* maven-jar-plugin:jar
* pre-integration test
* integration test
* post-integration test
* __main__ verify
* __main__ install
* maven-install-plugin:install
* __main__ deploy
* maven-deploy-plugin:deploy
* site
* pre-site
* site
* maven-site-plugin:site
* post-site
* site-deploy
* maven-site-plugin:deploy
# Section 6: Common Maven Plugins
## Maven Plugins
Each plugin has goal
clean life cycle
* maven-clean-plugin
* clean
default life cycle
* maven-compiler-plugin
* compile
* testCompile
* maven-resources-plugin
* resources
* testResources
* copy-resources
* maven-surefire-plugin
* test
* maven-jar-plugin
* jar
* test-jar
* maven-deploy-plugin
* deploy
* deploy-file
site life cycle
* maven-site-plugin
* site
* deploy
* run
* stage
* stage-deploy
* attach-descriptor
* jar
* effective-site
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment