Spring Framework Artifacts
Pages 24
-
LoadingHome
-
Loadingautorepo version updating
-
LoadingBuild from Source
-
LoadingBuild Zip with Dependencies
-
LoadingCode Style
-
LoadingGit branch management
-
LoadingGraalVM native image support
-
LoadingHTTP 2 support
-
LoadingIntelliJ IDEA Editor Settings
-
LoadingLogging
-
LoadingManually merging pull requests
-
LoadingMergedAnnotation API internals
-
LoadingMicro Benchmarks
-
LoadingRelease Process
-
LoadingSpring Artifactory
-
LoadingSpring Framework 5 FAQ
-
LoadingSpring Framework Versions
-
LoadingUpgrading to JDK 17
Clone this wiki locally
This document describes how to access Spring Framework artifacts. For snippets of POM configuration go to Maven Central or Spring Repositories. For more in-depth information about Spring repositories see the Spring Artifactory page.
The Spring Framework is modular and publishes 20+ different jars:
spring-aop spring-context-indexer spring-instrument spring-orm spring-web
spring-aspects spring-context-support spring-jcl spring-oxm spring-webflux
spring-beans spring-core spring-jdbc spring-r2dbc spring-webmvc
spring-context spring-expression spring-jms spring-test spring-websocket
spring-messaging spring-tx
Some modules are interdependent. For example spring-context depends on spring-beans which in turn depends on spring-core. There are no required external dependencies although each module has optional dependencies and some of those may be required depending on what functionality the application needs.
There is no one "spring-all" jar that includes all sources.
Maven Central
The Spring Framework publishes GA (general availability) versions to Maven Central which is automatically searched when using Maven, so just add the dependencies to your project's POM:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>5.3.9</version>
</dependency>Spring Repositories
Snapshot, milestone, and release candidate versions are published to an Artifactory instance hosted by JFrog. You can use the Web UI at https://repo.spring.io to browse the Spring Artifactory, or go directly to one of the repositories listed below.
Snapshots
Add the following to resolve snapshot versions – for example, 5.3.10-SNAPSHOT:
<repository>
<id>repository.spring.snapshot</id>
<name>Spring Snapshot Repository</name>
<url>https://repo.spring.io/snapshot</url>
</repository>
...
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>5.3.10-SNAPSHOT</version>
</dependency>Milestones and Release Candidates
Add the following to resolve milestone and RC versions – for example, 5.3.0-M1 or 5.3.0-RC1:
<repository>
<id>repository.spring.milestone</id>
<name>Spring Milestone Repository</name>
<url>https://repo.spring.io/milestone</url>
</repository>
...
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>5.3.0-M1</version>
</dependency>Releases
You can also resolve GA versions of Spring Framework artifacts against https://repo.spring.io/release.
For more in-depth information about Spring repositories, see the Spring Artifactory page.
Downloading a Distribution
If for whatever reason you are not using a build system with dependency management capabilities, you can download Spring Framework distribution zips from the Spring repository at https://repo.spring.io. These distributions contain all source and binary jar files, as well as Javadoc and reference documentation, but do not contain external dependencies!
To create a distribution with all dependencies locally you can build from source. See Build Zip with Dependencies for details.

