在不使用Maven的情况下可以从哪里下载Spring Framework jar?
问题内容:
SpringSource.org将其站点更改为http://spring.io
有人知道如何在没有Maven /
github的情况下获取最新版本吗?来自http://spring.io/projects
问题答案:
请编辑以使此镜像列表保持最新
我找到了这个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
在控制台中打开文件夹- 跑
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">
4.0.0
spring-source-download
SpringDependencies
1.0
UTF-8
org.springframework
spring-context
3.2.4.RELEASE
org.apache.maven.plugins
maven-dependency-plugin
2.8
download-dependencies
generate-resources
copy-dependencies
${project.build.directory}/dependencies