Build a Maven Environment

Source: Internet
Author: User

First, create a Maven local repository in a folder

1:

Copy the setting. xml file in Maven in the same directory,

Let's modify the path of the downloaded file in a repository.

The default value is:

That is, place the JAR file configured in POM. xml under. m2/Repository/of the current user.

We customize the path we like:

<Localrepository> F: \ softwaredevelopment \ Java \ Maven \ repository </localrepository>

That is, the path in Figure 1.

Next, try to download the target jar from MVN and place it in the prepared local repository.

Create a Maven project:

 

 

 

Enter the MVN compile command in the created Maven project folder to compile and download the JAR file configured in POM. xml.

After entering the maven project in win7, press shift and right-click to quickly open the project path.

 

Finally, let's take a look at the jar package downloaded to the local repository.

 

 

Build a Maven Environment

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.