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,