Installation

  • Download maven
  • Ensure JAVA_HOME environment variable is set and points to your JDK installation
  • Extract distribution archive in any directory, like /opt
  • Check environment variable value $JAVA_HOME
  • Adding to PATH
    1
    export PATH=/opt/apache-maven/bin:$PATH
  • Confirm with
    1
    mvn -v
    to make sure maven work well.

Build

mvn package