ECLIPSE+TOMCAT+MAVEN+SVN Project Complete Environment construction

Source: Internet
Author: User
Tags svn

Installation of 1.JDK

First download the JDK, this from the Sun Company's official website can be downloaded, according to their own system choose 64 or 32 bit, the installation process is next all the way to the end. After the installation is complete, the environment variables will be configured.

———————————————————————————————————————————————————

1.1 New variable Name: Java_home variable Value: E:\Java\jdk1.6.0_43 (This is my JDK installation path)

1.2 Edit variable Name: Path at the back add:%java_home%\bin;%java_home%\jre\bin

1.3 New variable Name: CLASSPATH variable value:.; %java_home%\lib;%java_home%\lib\dt.jar;%java_home%\lib\tools.jar

(Note: Do not add ";" when setting the end of a variable)

———————————————————————————————————————————————————

After the setup is done, of course we need to test, open "run"--input "CMD"--on the command line input: Java, and then enter; input Javac, enter, input java-version, return, if the following three screen, then the JDK configuration is successful, Otherwise, you need to check the configuration of the environment variables.

Installation of 2.Eclipse

: Http://www.eclipse.org/downloads/version selected by itself

When we're done, we'll start eclipse, set up a working path, or directly default. We open window-->preference input JRE, install

At this point we can build a Java project casually and then write a HelloWorld to test it correctly.

Installation of 3.TOMCAT8

Tomcat I use the version is 8, you can go to Apache official online download, http://tomcat.apache.org, download direct decompression on the line

5.Maven installation Configuration 5.1 maven configuration environment variables

Download maven, is a package: apache-maven-3.2.1, I use the version is 3.2.1, extract to a path, and then configure the environment variables:

——————————————————————————————————————————————————

5.1 New variable name: Maven_home variable Value: D:\server\apache-maven-3.2.1 (This is my MAVEN path)

5.2 Edit Variable Name: Path is preceded by:%maven_home%\bin; (Note that there is a ";" in the end.) As a delimiter)

——————————————————————————————————————————————————

When you are finished, enter: mvn-version in the command line to see if there are any of the following, if any, to indicate a successful configuration.

Configuration of the 5.2Maven data Warehouse

MAVEN also has an important configuration is the Data Warehouse path configuration, we find MAVEN installation path, enter conf--> open settings.xml, find localrepository tag, this time is commented out, we dismiss the comment, Then configure a path, for example: E:\Dev\Java\maven\repo, so that the jar packages downloaded by MAVEN management will be under this path. Of course we need to build such a directory structure, and then we have to say settings.xml copy to E:\Dev \java\maven, which is used when integrating with eclipse. Modifying the default save path

Integrated maven in 5.3Eclipse

Configuration in Preferences,

At this point, click file-->new-->other--> Input Maven-->-->maven Project, if you can see these, prove that the configuration is successful, you can already build a Maven project.

If indexjsp prompts for an error, you need to import Javaee-api.jar in Pom.xml

<Dependency> <groupId>javax</groupId> <artifactid>javaee-api< c10></Artifactid> <version>7.0</version></ dependency>                

6.SVN Installation

Refer to previously written blog address: http://www.cnblogs.com/zyw-205520/p/4598091.html

Ext.: http://www.cnblogs.com/zyw-205520/p/4767633.html

ECLIPSE+TOMCAT+MAVEN+SVN Project Complete Environment construction

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.