简体   繁体   English

Spring 4是否有Maven存储库?

[英]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. 我正在寻找与Java 8一起使用的Spring 4.0 M1。根据这个问题,应该有一个版本,但是找不到。 Ideally there would be a Maven repo, but I can't even find a regular download? 理想情况下,会有Maven仓库,但我什至找不到常规下载?

Quoting Paul Grays answer - Spring 4 is already in Maven central so you just need to add this dependency 引用Paul Grays的答案Spring 4已经在Maven Central中,因此您只需添加此依赖项

<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 我认为您需要将Spring存储库添加到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 . 然后,您可以使用以下版本4.0.0.BUILD-SNAPSHOT添加您的Spring模块。 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. 截至2013年12月12日 ,Spring 4.0.0.RELEASE在Maven Central中。

You can add this to your pom.xml to bring it in: 您可以将其添加到pom.xml以将其引入:

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

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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