使用maven又想试用spring 3.0 m3的朋友可以用springsource官方的maven仓库
http://repository.springsource.com/maven/bundles/milestone
官方repository上面缺少几个依赖, 加入atlassian proxy仓库
https://m2proxy.atlassian.com/repository/public
使用Spring 3.0 M3的示例如下
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.andyao</groupId>
<artifactId>spring-m3-test</artifactId>
<version>1.0-SNAPSHOT</version>
<repositories>
<repository>
<id>springsource-milestone</id>
<url>http://repository.springsource.com/maven/bundles/milestone</url>
</repository>
<repository>
<id>atlassian-m2-repository</id>
<url>https://m2proxy.atlassian.com/repository/public</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.beans</artifactId>
<version>3.0.0.M3</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.context</artifactId>
<version>3.0.0.M3</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.context.support</artifactId>
<version>3.0.0.M3</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.core</artifactId>
<version>3.0.0.M3</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.oxm</artifactId>
<version>3.0.0.M3</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.web</artifactId>
<version>3.0.0.M3</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.web.servlet</artifactId>
<version>3.0.0.M3</version>
</dependency>
<dependency>
<groupId>asm</groupId>
<artifactId>asm-all</artifactId>
<version>2.2.3</version>
</dependency>
</dependencies>
</project>
分享到:
相关推荐
- [http://maven.springframework.org/milestone](http://maven.springframework.org/milestone) - [http://repository.codehaus.org](http://repository.codehaus.org) - ...
在项目的POM文件中,我们可以指定Maven仓库的地址,以便Maven可以从中下载依赖包。 知识点五:SpringBoot依赖包管理 ----------------------------- SpringBoot提供了多种依赖包,以便开发者可以快速构建基于...
<name>Spring Milestone Repository <url>https://repo.spring.io/milestone</url> </repository> ``` 这将允许你访问最新的里程碑版本和快照。 #### 二、新特性 ##### 2.1 Spring Web Flow 2.4新特性 - **Java...
Mvn-Repository-Android-Libraries-...存储库名称可以是以下任何一个:[“ jcenter”,“ central”,“ ibiblio-m2”,“ springio-plugins-release”,“ spring-libs-milestone”,“ sonatype-releases”,“ sprin
- **Spring Jar包下载**:可以从Spring官方网站提供的下载链接中获取最新的版本,也可以通过Maven仓库直接引用。具体的下载地址如下: - [Spring官网]...