Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Maven uses the notion of a build life-cycle to which plugins can attach. Plugins are similar to Ant tasks. When a Maven build is invoked, we specify a point in the life-cycle up to which the build should proceed. The compile phase comes before test, and test comes before package, and package comes before install. Once we have Maven setup, we can invoke the Struts build, and specify which phase the build should use.

Table of Contents

Installing Maven

Get Maven binary: http://maven.apache.org/download.htmlImage Added

For Mac and Linux:

Extract the latest stable binary release to /usr/local/maven

Add following to your .zshrc/.bashrc/.aliasrc:

Code Block

export M2_HOME=/usr/local/maven
export PATH=${M2_HOME}/bin:${PATH}

For Windows: FIXME

Dependencies

Running mvn in source root will download and setup dependency jars in ~/.m2/repository.

...