Build a Maven project to automatically download the jar package

Source: Internet
Author: User

Automatically download jar packages using Maven
    • Right-click the project to convert the project into a MAVEN project

Then go in Maven's official website

http://mvnrepository.com/



There are a lot of jar packages for us to use, such as I'm now going to download a jsoup jar package

    • Search Jsoup, click the first one

Then there will be a version number, we click on the latest version 1.10.2

Copy the address under Maven

<!-- https://mvnrepository.com/artifact/org.jsoup/jsoup --><dependency>    <groupId>org.jsoup</groupId> <artifactId>jsoup</artifactId> <version>1.10.2</version></dependency>
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6

Edit Pom.xml File

In

</build></project>
    • 1
    • 2
    • 3


The middle adds a

<dependencies></dependencies>
    • 1
    • 2
    • 3

Label

And put Maven's copy in it.


Once saved, eclipse will automatically download the Jsoup.jar package.


Test the discovery, you can use the jar package.


Here's a little bit to note:

    • If there is a problem with the Maven plugin, the MAVEN project will go wrong.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced. 54973954

Build a Maven project to automatically download the jar package

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.