需要安装 JDK java8 也就是 1.8, 用 jdk-8u271-windows-x64.exe
网上有很多安装java8的教程,很简单。我已经安装完了。注意配置环境变量。
C:\Users\Reciter>java -version java version "1.8.0_211" Java(TM) SE Runtime Environment (build 1.8.0_211-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.211-b12, mixed mode)
Maven3的压缩包 找同事要一个,解压到本地,记得设置环境变量。网上有很多教程,也不做介绍了。
$ mvn -v Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 23:22:22+0800) Maven home: E:\myHome\epan\javaz\maven\maven3 Java version: 1.8.0_211, vendor: Oracle Corporation Java home: C:\Program Files\Java\jdk1.8.0_211\jre Default locale: zh_CN, platform encoding: GBK OS name: "windows 10", version: "10.0", arch: "amd64", family: "dos"
记得添加 maven3的阿里镜像
<mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror>