Maven-Download Jar Package

Source: Internet
Author: User

Enter Spring Official website http://projects.spring.io/spring-framework/if we want to download spring discovery only

Downloaded through maven or cradle.

The following is an example of spring using maven to download the jar file


Method:

1. Create a folder under any directory, under which a Pom.xml file is created (in this case: D:\maven-jar)


2. Modify the MAVEN default download location

Open D:\apache-maven-3.0.5\conf\settings.xml

<!-- localRepository   | The path to the local repository maven will use to store artifacts.   |   | Default: ~/.m2/repository<localRepository>/path/to/local/repo</localRepository>--><localRepository>D:/maven-jar</localRepository>


3, Pom.xml

<project xmlns="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>Springframework</groupId>   <artifactid>Project</artifactid>   <version>1.0</version>   <!--download the corresponding jar package --   <dependencies>        <dependency>            <groupId>Org.springframework</groupId>            <artifactid>Spring-context</artifactid>            <version>4.2.3.RELEASE</version>        </Dependency>    </dependencies></Project>


4. Open the console and perform the following mvn clean install command


When you're done, you'll see the downloaded spring about the jar file.


Itmyhome

Maven-Download 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.