A brief collection of Apache Maven notes and recipes.

Setup

Add profile in your terminal.

tan@n35060:~$ cat profiles/maven
# Maven
export M3_HOME="/opt/maven"
export PATH="$M3_HOME/bin:$PATH"

Creating Projects

Create Maven Skeleton Project from Quickstart Archetype

mvn archetype:generate \
  -DgroupId=net.cinhtau \
  -DartifactId=watch-over-it \
  -DarchetypeArtifactId=maven-archetype-quickstart