http://blog.csdn.net/tiefanhe/article/details/9774189
1.安装 maven ,下载地址:http://maven.apache.org/download.cgi 下载3.1.0版本 2.解压到制定路径下,这里选择/usr/local/java/apache-maven-3.1.0。 3.链接 到/usr/bin/mvn : ln -s /usr/local/java/apache-maven-3.1.0/bin/mvn /usr/bin/mvn 4.修改配置文件/etc/profile 添加如下所示: export JAVA_HOME=/usr/local/java/jdk1.7.0_25 export JRE_HOME=/usr/local/java/jdk1.7.0_25/jre export MAVEN_HOME=/usr/local/java/apache-maven-3.1.0 export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH export PATH=$JAVA_HOME/bin:$MAVEN_HOME/bin:$JRE_HOME/bin:$JAVA_HOME:$PATH 5.执行source /etc/profile;mvn -v eclipse 插件安装 1.Help->Eclipse marketplace ->Find maven 2.安装Maven integration for Eclipse(Juno or newer) 3.配置插件 Windows->preferences->Maven->Installations: 将/usr/local/java/apache-maven-3.1.0添加进入