问题描述
SpringSource.org将其网站更改为
SpringSource.org changed their site to http://spring.io
有人知道如何在没有Maven / github的情况下获得最新版本吗?来自
Does someone know how to get the latest build without Maven/github? from http://spring.io/projects
推荐答案
请编辑以使此镜像列表保持最新状态
我发现此 maven
repo,你可以直接下载一个包含你需要的所有罐子的 zip
文件。
Please edit to keep this list of mirrors current
I found this maven
repo where you could download from directly a zip
file containing all the jars you need.
- http://maven.springframework.org/release/org/springframework/spring/
- http://repo.spring.io/release/org/springframework/spring/
我更喜欢的解决方案是使用 Maven
,这很简单,你不必单独下载每个 jar
。您可以通过以下步骤执行此操作:
The solution I prefer is using Maven
, it is easy and you don't have to download each jar
alone. You can do it with the following steps:
- 使用您喜欢的任何名称在任何地方创建一个空文件夹,例如
spring-source
- 创建一个名为
pom.xml的新文件
- 将下面的xml复制到此文件中
- 在控制台中打开
spring-source
文件夹 - 运行
mvn install
-
下载完成后,您将在 / spring-source / target / dependencies
<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>spring-source-download</groupId>
<artifactId>SpringDependencies</artifactId>
<version>1.0</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>3.2.4.RELEASE</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version>
<executions>
<execution>
<id>download-dependencies</id>
<phase>generate-resources</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/dependencies</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
另外,如果您需要下载任何其他spring项目,只需从相应的网页复制依赖
配置。
例如,如果要下载 Spring Web Flow
jars,请转到,并将其依赖
配置添加到 pom.xml
依赖
,然后再次运行 mvn install
。
For example, if you want to download Spring Web Flow
jars, go to its web page, and add its dependency
configuration to the pom.xml
dependencies
, then run mvn install
again.
<dependency>
<groupId>org.springframework.webflow</groupId>
<artifactId>spring-webflow</artifactId>
<version>2.3.2.RELEASE</version>
</dependency>
这篇关于哪里可以在不使用Maven的情况下下载Spring Framework jar?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!