A Maven Tutorial 

Joined:
08/13/2009
Posts:
172

January 10, 2010 00:19:30    Last update: January 31, 2012 16:28:42
Maven is a powerful yet complex tool. When I started learning Maven, the first obstacle was, of course, its complexity. The second, was the lack of documentation that can get me off the ground quickly. This tutorial is an attempt to create a pragmatic guide that aims to get you familiar with Maven in the quickest way possible. The main theme is to get you on some hands on experience to start out and lead you through the creation of a simple Java EE project as quickly as possible. Instead of trying to give you a good read, I try to get you on the journey right away. The topics are roughly ordered by the logical sequence but you can jump around in any way you want.

Any feedback or suggestions are welcomed and appreciated.

Practice Projects
The best way to learn how to use a tool is - use it.


Concepts
Bare minimum gobbledigook you need to know about Maven.


Problems and solutions
What are some of the problems you encountered while using Maven? Nothing? You haven't used it yet.


Maven 3.0 update
These notes were written for Maven 2.x. Maven 3.0 has been released since then. However, because of the good compatibility between 3.0 and 2.x, these notes are still applicable. Please refer to Maven 3.x Compatibility Notes for things that have changed.

A final word about Maven
Maven is a powerful tool that can do a lot of wonderful things. But there are also a multitude of ways to shoot yourself in the foot. Without caution, you can build a Maven project so complex that you'll only have time to maintain Maven and no time for anything else. By all means, keep it simple.
Share |
| Comment  | Tags