1. Preparatory work
1.1. JDK Installation
JDK version requirements: Version JDK1.7 (64-bit)
Jdk:http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-windows-x64.exe
JDK installation steps: Follow the Software Installation step by step installation. (Installation directories such as: D:\J2EE\JAVA\JDK1.7.0_79 and D:\J2EE\JAVA\JRE7)
Environment variable configuration: Right click on "This PC"--Select "Properties"--click Advanced System Settings--Select the Advanced tab--click the "Environment variables" button, you can configure environment variables.
Java_home environment variable configuration. (Please note that I installed the JDK directory )
PATH environment variable configuration. (%java_home%\bin;)
1.2. Tomcat Installation
Tomcat version requirements: Tomcat 7 Green Edition (64-bit)
Tomcat:http://mirrors.hust.edu.cn/apache/tomcat/tomcat-7/v7.0.68/bin/apache-tomcat-7.0.68-windows-x64.zip
Tomcat installation steps: Unzip the file and copy the extracted folder to your java. (after installation such as: D:\J2EE\APACHE-TOMCAT-7)
1.3. Eclipse Installation
Eclipse version requirements: Eclipse IDE for Java EE developers--eclipse Mars 2 Packages (Windows 64-bit)
eclipse:http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/mars/2/ eclipse-jee-mars-2-win32-x86_64.zip&mirror_id=1109
Eclipse installation steps: Unzip the file, copy the extracted folder to your Java EE directory, and rename it. (after installation such as: D:\J2EE\eclipse)
1.4. MAVEN Installation
Maven Version requirements: apache-maven-3.3.9
Maven:http://mirrors.cnnic.cn/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.zip
Maven installation steps: Unzip the file under your Java EE directory and rename it. (after installation such as: D:\j2ee\apache-maven-3.3.9)
MAVEN environment variable configuration: m2_home=d:\j2ee\apache-maven-3.3.9
Maven Path setting: Add "%m2_home%\bin" after path environment variable;
Maven Test installs successfully: Enters DOS environment, executes "mvn-version"
Modify the MAVEN local warehouse: After the system installs the default warehouse "C:\Users\ user \.m2", (post-installation warehouse address such as: C:\USERS\ZHUJI\.M2), the warehouse configuration file is: ""%m2_home%\conf\settings.xml ", (Post-installation configuration file address such as: D:\j2ee\apache-maven-3.3.9\conf\settings.xml); open settings.xml file, modify "localrepository" corresponding address, specific code, as follows:
<!--localrepository
| The path to the local repository maven would use to store artifacts.
|
| Default: ${user.home}/.m2/repository
<localRepository>/path/to/local/repo</localRepository>
-
<localRepository>D:/j2ee/m2/repository</localRepository> <!--set up your local warehouse to D:/J2EE/M2--
1.4. Eclipse Maven Plugin Installation
Since the Maven plugin is already in the eclipse Mars, it is now necessary to point eclips to the Maven we have installed.
Open Eclipse, Menu "window"--"proferences" and follow the image below to configure the Maven plugin:
Ah
Java Technology Development Specification (1)--Development environment construction