Download the relevant jar package using the Maven tool

Source: Internet
Author: User

  1. Create a folder under any directory, under which you create a pom.xml file, a bat batch script;
  2. Select the bat batch script right-click Edit and copy the following:
     Call Mvn-f pom.xml dependency: Copy-dependencies@Pause

  3. Pom.xml does not need to be as complex as the actual project, the example is as follows (<?xml version= "1.0"?> must be in the first line of text):
    <?XML version= "1.0"?><Projectxmlns= "http://maven.apache.org/POM/4.0.0"Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"xsi:schemalocation= "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">    <modelversion>4.0.0</modelversion>    <groupId>Temp.download</groupId>    <Artifactid>Temp-download</Artifactid>    <version>1.0-snapshot</version>     <Dependencies><!--what jar packages need to be downloaded add the rest of the dependencies without care -        <Dependency>            <groupId>Mysql</groupId>            <Artifactid>Mysql-connector-java</Artifactid>            <version>5.1.34</version>        </Dependency>    </Dependencies></Project>

  4. After running the new target folder, there is a dependency folder, which is the jar package you want.
  5. The values of the related fields, such as groubid in the Dependecy node, can be searched and retrieved from the http://mvnrepository.com.

Download the relevant jar package using the Maven tool

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.