The configuration of MAVEN environment variables and the use of +eclipse configuration

Source: Internet
Author: User
Tags maven central

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

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.