是否有Spring 4的Maven存储库?

Nic*_*rts 11 java spring maven spring-4

我正在寻找Spring 4.0 M1,用于Java 8.根据这个问题应该有一个构建,但是找不到.理想情况下会有一个Maven回购,但我甚至找不到常规下载?

Pet*_*sik 8

引用Paul Grays的答案 - Spring 4已经在Maven中心,所以你只需要添加这种依赖

<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-core</artifactId>
    <version>4.0.0.RELEASE</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)

年纪大了

我认为您需要将Spring存储库添加到您的 pom.xml

<repository>
    <id>com.springsource.repository.maven.snapshot</id>
    <url>http://maven.springframework.org/snapshot/</url>
    <snapshots>
       <enabled>true</enabled>
    </snapshots>
</repository>
Run Code Online (Sandbox Code Playgroud)

然后,您可以添加以下版本的Spring模块4.0.0.BUILD-SNAPSHOT.所以举个例子

<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-aop</artifactId>
    <version>4.0.0.BUILD-SNAPSHOT</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)


Pau*_*ray 8

截至2013年12月12日,Spring 4.0.0.RELEASE在Maven Central.

您可以将此添加到您的pom.xml内容中:

<dependency>
  <groupId>org.springframework</groupId>
  <artifactId>spring-core</artifactId>
  <version>4.0.0.RELEASE</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)