我在哪里可以在不使用 Maven 的情况下下载 Spring Framework jars? [英] Where can I download Spring Framework jars without using Maven?
问题描述
SpringSource.org 将他们的网站更改为 http://spring.io
SpringSource.org changed their site to http://spring.io
有人知道如何在没有 Maven/github 的情况下获得最新版本吗?来自 http://spring.io/projects
Does someone know how to get the latest build without Maven/github? from http://spring.io/projects
推荐答案
请编辑以使此镜像列表保持最新
我找到了这个 maven
存储库,您可以在其中直接从包含您需要的所有 jar 的 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.
- https://maven.springframework.org/release/org/springframework/春天/
- https://repo.spring.io/release/org/springframework/春天/
我更喜欢的解决方案是使用 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复制到这个文件中
Copy the xml below into this file
在控制台中打开 spring-source
文件夹
Open the spring-source
folder in your console
运行 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项目,只需从其对应的网页中复制dependency
配置即可.
例如,如果你想下载Spring Web Flow
jars,去它的网页,并将其dependency
配置添加到pom.xml
dependencies
,然后运行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 jars?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!