MyEclipse compiling MAVEN projects and Tomcat deployment

Source: Internet
Author: User

Test software version:

Myeclipse10.0,maven3.2.1,tomcat7


1. MyEclipse Configuring MAVEN, Tomcat

1.1 Configuring Maven

1) Download the maven,https://maven.apache.org/download.cgi, download the zip package;

2) Configure the WINDOW7 environment variables:

Such as

Test: Open the DOS window, enter mvn-version, you can see the information similar to the following;


3) configuration MyEclipse

Windows->preference, search maven


Select the maven you just downloaded to unzip, click OK.

1.2 Configuring Tomcat

windows-"preference, search Tomcat


Select the decompression address of Tomcat and click OK.

2. Download the MAVEN project and import the MyEclipse

Download HTTPS://GITHUB.COM/FANSY1990/SSH_HADOOP_V1 here, directly under the zip, after decompression in myeclipse right click import--"Exist Project to workspace


Click Finish to


After importing, there is no JDK here, the JDK is configured here


Click Finish to


Right-click Project, Run as--"maven install, you can compile Maven project (if Maven does not download some jar packages to local, it will download many jar packages, this process will be a bit slow, If you have modified the Pom.xml file, you need to right-click the project maven4myeclipse--"Update project configuration."


The console will also display the corresponding information

[INFO]------------------------------------------------------------------------[INFO] BUILD Success[info]-------- ----------------------------------------------------------------[INFO] Total time:9.733 s[info] finished at: 2015-06-13t11:39:01+08:00[info] Final memory:19m/216m


3. Deploying Tomcat

3.1 Locate the SSH directory: for example: D:\workspase_test\ssh_hadoop_v1\target\ssh

3.2 In the Tomcat installation directory (D:\tomcat-7.0.42\conf\Catalina\localhost) configuration file Ssh.xml, the contents are as follows:


<context Path = "/ssh"  docBase = "D:\workspase_test\ssh_hadoop_v1\target\ssh"   privileged = "true"  Reloadable = "false"  >  </Context>

Then directly click on the MyEclipse configured Tomcat to run


Note that the configuration of the project needs to refer to http://blog.csdn.net/fansy1990/article/details/46432803 for deployment so that it can start successfully, and after successful startup, the browser enters:

Http://localhost/ssh/index.html can see the first page of the project (the port I configured here is 80, so I could omit it)




Share, grow, be happy

Down-to-earth, focus

Reprint Please specify blog address: http://blog.csdn.net/fansy1990



MyEclipse compiling MAVEN projects and Tomcat deployment

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.