2014-08-17

在Linux安裝maven

maven 安裝步驟:
1. Download and tar maven to /usr/local/apache-maven-3.0.4
2. set variables:
export M2_HOME=/usr/local/apache-maven-3.0.4
export M2=$M2_HOME/bin
export PATH=$M2:$PATH
3.test:
mvn -version

4.一般maven build package command:
mvn package
mvn package -DskipTests
mvn install

No comments:

Post a Comment