MyEclipse experience: integrate and use Maven, myeclipsemaven

Source: Internet
Author: User

MyEclipse experience: integrate and use Maven, myeclipsemaven

MyEclipse download: http://www.myeclipsecn.com/download/

Step 1: download and install

1, official website download Maven: http://maven.apache.org/download.cgi

2. decompress the package to a folder.

3. Set environment variables:

For example: M2_HOME: D: \ JAVA \ apache-maven-3.0.5

Add; % M2_HOME % \ bin in path;

Step 2: integrate with MyEclipse:

1. Preferences-> MyEclipse-Maven-> Installations-Add...

2. Modify the Maven settings. xml file and add: <localRepository> d: \. m2 \ repository </localRepository>

3. Preferences-> MyEclipse-Maven-> User Settings-> Browse... then Update Settings

Step 3: Create a Maven-supported Web Project:

1. New-> Web Project

2. Check "Add maven support" and Next...

Import an Mavan Project

1. Import...

2. Existing Maven Projects

3. Next...

Step 4: Add a dependency package (JAR ):

1. Open the pom. xml file, Dependecies, Add...

2. Enter the keyword of the Jar package in "Enter groupId, artifactId..." to search

3. Select a version in a package and click "OK"

4. Wait for the system to download the relevant Jar package from the server.

5. Server-> Redeploy

How to find the package:

First: search on this site: http://mvnrepository.com/

Type 2: search by GOOGLE, for example, input: maven spring repository

This article is an original 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.