Is there a Maven repository for Spring 4?

守給你的承諾、 提交于 2019-12-05 00:56:27

As of December 12, 2013, Spring 4.0.0.RELEASE is in Maven Central.

You can add this to your pom.xml to bring it in:

<dependency>
  <groupId>org.springframework</groupId>
  <artifactId>spring-core</artifactId>
  <version>4.0.0.RELEASE</version>
</dependency>

Quoting Paul Grays answer - Spring 4 is already in Maven central so you just need to add this dependency

<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-core</artifactId>
    <version>4.0.0.RELEASE</version>
</dependency>

Older asnwer

I think you need to add Spring repository to your pom.xml

<repository>
    <id>com.springsource.repository.maven.snapshot</id>
    <url>http://maven.springframework.org/snapshot/</url>
    <snapshots>
       <enabled>true</enabled>
    </snapshots>
</repository>

Then you can add your Spring module with following version 4.0.0.BUILD-SNAPSHOT. So for example

<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-aop</artifactId>
    <version>4.0.0.BUILD-SNAPSHOT</version>
</dependency>

When I look at the Spring Framework summary page it states that 4.0 M1 is not released yet - it is scheduled for Tuesday, 2013-05-14

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!