简体   繁体   中英

Is there a Maven repository for Spring 4?

I'm looking for Spring 4.0 M1, for use with Java 8. According to this issue there should be a build, can't find however. Ideally there would be a Maven repo, but I can't even find a regular download?

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>

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>

当我查看Spring Framework 摘要页面时,它指出4.0 M1尚未发布-计划于2013年5月2日星期二发布

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM