To start building with Maven2 you are required to copy the settings.xml.sample to ~/.mvn/settings.xml
The work in progress is documented on http://wiki.apache.org/portals/Jetspeed2/Maven2BuildSupport
Build only
mvn
Build and Test
mvn -P test
Run Tests Individually
mvn -P test -Dtest=MyJavaTestFileNameWithOutPathOrExtension
Build and Deploy to Tomcat
mvn -P tomcat