Install Maven On Mac
文章目录
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 to make sure maven work well.
1
mvn -v
Build
mvn package