请编辑以使此镜像列表保持最新
我找到了这个
maven仓库,你可以在其中直接从
zip包含所需jar的文件中下载文件。
- http://maven.springframework.org/release/org/springframework/spring/
- http://repo.spring.io/release/org/springframework/spring/
替代解决方案:Maven
我更喜欢使用的解决方案Maven,这很容易,你不必jar单独下载每个解决方案。你可以按照以下步骤进行操作:
- 例如,使用你喜欢的任何名称在任何地方创建一个空文件夹
spring-source
- 创建一个名为
pom.xml
- 将下面的xml复制到该文件中
spring-source
在控制台中打开文件夹- Run
mvn install
- 下载完成后,你会在其中找到spring jars
/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项目,只需
dependency从相应的网页复制配置即可。
例如,如果要下载
Spring Web Flowjar,请转至其网页,然后将其
dependency配置添加到中
pom.xml dependencies,然后
mvn install再次运行。
<dependency> <groupId>org.springframework.webflow</groupId> <artifactId>spring-webflow</artifactId> <version>2.3.2.RELEASE</version></dependency>



