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