apache的maven的配置

1.先到下面地址下载maven3.0.1版本压缩文件

  http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-3.0.1-bin.zip

2.解压缩下载下来的压缩包,得到解压缩文件apache-maven-3.0.1

3.把解压缩后的文件放到一个目录下,比如:D:/software/apache-maven-3.0.1

4.设置JAVA_HOME,JAVA_HOME需要设置到jdk目录,不能设置到bin目录,如:

  JAVA_HOME=C:/Program Files/Java/jdk1.6.0_06,而不是设置到:JAVA_HOME=C:/Program

  Files/Java/jdk1.6.0_06/bin

5.设置path路径,set PATH="c:/program files/apache-maven-3.0.x/bin";%PATH%

6.检查maven是否配置成功,在cmd模式敲入命令:mvn -version,出现以下界面表示配置成功:

  C:/Users/rey>mvn -version
  Apache Maven 3.0.1 (r1038046; 2010-11-23 18:58:32+0800)
  Java version: 1.6.0_06
  Java home: C:/Program Files/Java/jdk1.6.0_06/jre
  Default locale: zh_CN, platform encoding: GBK
  OS name: "windows vista" version: "6.1" arch: "x86" Family: "windows"

你可能感兴趣的:(java,apache,maven,windows,Path,encoding)