Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Maven: a forty five minute crash course

Maven: a forty five minute crash course

A look at how Maven, the Java project management tool, operates.

justin j. moses

November 16, 2011
Tweet

More Decks by justin j. moses

Other Decks in Technology

Transcript

  1. In general, the default lifecycle involves the following phases: ▪

    validate ▪ compile ▪ test ▪ package ▪ integration-test ▪ verify ▪ install ▪ deploy
  2. In addition, plugins provide goals and can bind them to

    phases. eg. > mvn compiler:compile compiler:testCompile
  3. In order to add new dependencies to your repository, you

    can simply > mvn install:install-file
  4. When building, if a dependency is missing, Maven will try

    to download it from an upstream repository.
  5. Maven can also create IDE projects from the POM. (never

    check in a .project file or dependency again)
  6. You can use profiles to customize the build. They can

    activate based on environment &/or set conditions.