1. Environment Construction (MAVEN+ECLIPSE)
Go to cmd
Input: Mvn–v to see if the configuration is good
Input: Mvn-version can view its installed version
To configure Maven in eclipse:
In the help--eclipsemarketplace Client directory, install the error address as follows:
First: Under help--installnew software , click Add :
Name: Eclipse Marketplace Client
location:http://download.eclipse.org/mpc/indigo/
Add success after working with: Always press Next
After success in go: Help–eclipsemerketpalce, enter "Maven" in the Search box, click Find
Found in the following:
Click: Installed
After the configuration is successful, open the window--preferences--maven-installtions
Click ADD ,
OK, finish.
2. The use of Maven in eclipse
1. Create a new maven Engineering, File-->new--other, Then, tap Next
Click NEXT
Last Click Finish .
2, Configure the Pom. in the <dependencies></dependencies> the label contains the package required for the project. maven Warehouse address. Then save it so that maven will go to the appropriate address to download the required package.
Integration is done.
3, How to get the warehouse address of these packages, Find the address of the package in the MAVEN Central Library
Https://mvnrepository.com
For example, select: Spark
After you click inside, you can select the corresponding version:
Then, copy the configuration to the pom.xml just inside.
The configuration of MAVEN environment variables and the use of +eclipse configuration