O'Reilly logo

Beginning Spring Framework 2 by Christian Dupuis, Naveen Balani, Thomas Van de Velde, Anne Horton, Sing Li, Bruce Snyder

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix A. Maven 2 Basics

To compile and build the PIX project in this book, you need to use Maven 2, a powerful project building and management tool, capable of handling anything from the simplest single-source file project to huge projects over the Internet involving thousands of source files and hundreds of developers all over the world.

If you have worked with Ant, make, or nmake before, you already know the ins and outs of a build tool. Maven 2 has the same general objectives as most:

  • To manage source code, configuration, and resource files in the project

  • To orchestrate the compilation of source and unit-test code

  • To run the actual suite of unit tests and report the results

  • To assemble the final application

  • To assist or to carry out integration tests (optional)

  • To help deploy the final application (optional)

This appendix shows how to use Maven 2 to build the PIX project. The same techniques can apply to any of your Java and/or Spring framework projects.

Downloading and Installing Maven

Downloading and Installing Maven

The official URL for downloading Maven 2 is at http://maven.apache.org/download.html.

At the time of writing, the latest available version is 2.0.6. All the Maven configuration files in the PIX project have been tested with this version, and should be compatible with any version higher than 2.0.6.

Installing Maven 2 is as simple as making sure that the distribution's bin directory is in your PATH environment variable. On Windows, you can set the PATH using the following ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required