springframework maven地址

简介:

http://blog.springsource.com/2009/12/02/obtaining-spring-3-artifacts-with-maven/

A .pom <dependency> snippet for each Spring Framework 3 artifact as it will be indexed in Maven Central is listed below.


001	<!-- Shared version number properties -->
002	<properties> 
003	 <org.springframework.version>3.0.5.RELEASE</org.springframework.version> 
004	</properties> 
005	 
006	<!-- 
007	 Core utilities used by other modules. 
008	 Define this if you use Spring Utility APIs (org.springframework.core.*/org.springframework.util.*) 
009	-->
010	<dependency> 
011	 <groupId>org.springframework</groupId> 
012	 <artifactId>spring-core</artifactId> 
013	 <version>${org.springframework.version}</version> 
014	</dependency> 
015	 
016	<!-- 
017	 Expression Language (depends on spring-core) 
018	 Define this if you use Spring Expression APIs (org.springframework.expression.*) 
019	-->
020	<dependency> 
021	 <groupId>org.springframework</groupId> 
022	 <artifactId>spring-expression</artifactId> 
023	 <version>${org.springframework.version}</version> 
024	</dependency> 
025	 
026	<!-- 
027	 Bean Factory and JavaBeans utilities (depends on spring-core) 
028	 Define this if you use Spring Bean APIs (org.springframework.beans.*) 
029	-->
030	<dependency> 
031	 <groupId>org.springframework</groupId> 
032	 <artifactId>spring-beans</artifactId> 
033	 <version>${org.springframework.version}</version> 
034	</dependency> 
035	 
036	<!-- 
037	 Aspect Oriented Programming (AOP) Framework (depends on spring-core, spring-beans) 
038	 Define this if you use Spring AOP APIs (org.springframework.aop.*) 
039	-->
040	<dependency> 
041	 <groupId>org.springframework</groupId> 
042	 <artifactId>spring-aop</artifactId> 
043	 <version>${org.springframework.version}</version> 
044	</dependency> 
045	 
046	<!-- 
047	 Application Context (depends on spring-core, spring-expression, spring-aop, spring-beans) 
048	 This is the central artifact for Spring's Dependency Injection Container and is generally always defined 
049	-->
050	<dependency> 
051	 <groupId>org.springframework</groupId> 
052	 <artifactId>spring-context</artifactId> 
053	 <version>${org.springframework.version}</version> 
054	</dependency> 
055	 
056	<!-- 
057	 Various Application Context utilities, including EhCache, JavaMail, Quartz, and Freemarker integration 
058	 Define this if you need any of these integrations 
059	-->
060	<dependency> 
061	 <groupId>org.springframework</groupId> 
062	 <artifactId>spring-context-support</artifactId> 
063	 <version>${org.springframework.version}</version> 
064	</dependency> 
065	 
066	<!-- 
067	 Transaction Management Abstraction (depends on spring-core, spring-beans, spring-aop, spring-context) 
068	 Define this if you use Spring Transactions or DAO Exception Hierarchy 
069	 (org.springframework.transaction.*/org.springframework.dao.*) 
070	-->
071	<dependency> 
072	 <groupId>org.springframework</groupId> 
073	 <artifactId>spring-tx</artifactId> 
074	 <version>${org.springframework.version}</version> 
075	</dependency> 
076	 
077	<!-- 
078	 JDBC Data Access Library (depends on spring-core, spring-beans, spring-context, spring-tx) 
079	 Define this if you use Spring's JdbcTemplate API (org.springframework.jdbc.*) 
080	-->
081	<dependency> 
082	 <groupId>org.springframework</groupId> 
083	 <artifactId>spring-jdbc</artifactId> 
084	 <version>${org.springframework.version}</version> 
085	</dependency> 
086	 
087	<!-- 
088	 Object-to-Relation-Mapping (ORM) integration with Hibernate, JPA, and iBatis. 
089	 (depends on spring-core, spring-beans, spring-context, spring-tx) 
090	 Define this if you need ORM (org.springframework.orm.*) 
091	-->
092	<dependency> 
093	 <groupId>org.springframework</groupId> 
094	 <artifactId>spring-orm</artifactId> 
095	 <version>${org.springframework.version}</version> 
096	</dependency> 
097	 
098	<!-- 
099	 Object-to-XML Mapping (OXM) abstraction and integration with JAXB, JiBX, Castor, XStream, and XML Beans. 
100	 (depends on spring-core, spring-beans, spring-context) 
101	 Define this if you need OXM (org.springframework.oxm.*) 
102	-->
103	<dependency> 
104	 <groupId>org.springframework</groupId> 
105	 <artifactId>spring-oxm</artifactId> 
106	 <version>${org.springframework.version}</version> 
107	</dependency> 
108	 
109	<!-- 
110	 Web application development utilities applicable to both Servlet and Portlet Environments 
111	 (depends on spring-core, spring-beans, spring-context) 
112	 Define this if you use Spring MVC, or wish to use Struts, JSF, or another web framework with Spring (org.springframework.web.*) 
113	-->
114	<dependency> 
115	 <groupId>org.springframework</groupId> 
116	 <artifactId>spring-web</artifactId> 
117	 <version>${org.springframework.version}</version> 
118	</dependency> 
119	 
120	<!-- 
121	 Spring MVC for Servlet Environments (depends on spring-core, spring-beans, spring-context, spring-web) 
122	 Define this if you use Spring MVC with a Servlet Container such as Apache Tomcat (org.springframework.web.servlet.*) 
123	-->
124	<dependency> 
125	 <groupId>org.springframework</groupId> 
126	 <artifactId>spring-webmvc</artifactId> 
127	 <version>${org.springframework.version}</version> 
128	</dependency> 
129	 
130	<!-- 
131	 Spring MVC for Portlet Environments (depends on spring-core, spring-beans, spring-context, spring-web) 
132	 Define this if you use Spring MVC with a Portlet Container (org.springframework.web.portlet.*) 
133	-->
134	<dependency> 
135	 <groupId>org.springframework</groupId> 
136	 <artifactId>spring-webmvc-portlet</artifactId> 
137	 <version>${org.springframework.version}</version> 
138	</dependency> 
139	 
140	<!-- 
141	 Support for testing Spring applications with tools such as JUnit and TestNG 
142	 This artifact is generally always defined with a 'test' scope for the integration testing framework and unit testing stubs 
143	-->
144	<dependency> 
145	 <groupId>org.springframework</groupId> 
146	 <artifactId>spring-test</artifactId> 
147	 <version>${org.springframework.version}</version> 
148	 <scope>test</scope> 
149	</dependency>

Obtaining Spring Releases From The Enterprise Bundle Repository (EBR)

To obtain final releases of Spring projects from the EBR, add the following repositories to your .pom:



01	<repository> 
02	 <id>com.springsource.repository.bundles.release</id> 
03	 <name>EBR Spring Release Repository</name> 
04	 <url>http:// repository.springsource.com/maven/bundles/release</url> 
05	</repository> 
06	<repository> 
07	 <id>com.springsource.repository.bundles.external</id> 
08	 <name>EBR External Release Repository</name> 
09	 <url>http:// repository.springsource.com/maven/bundles/external</url> 
10	</repository>

Then simply add the dependencies your project requires, keeping in mind the EBR artifact naming conventions.
目录
相关文章
|
7月前
|
Java 开发者 Spring
Spring Framework 中的 @Autowired 注解:概念与使用方法
【4月更文挑战第20天】在Spring Framework中,@Autowired 注解是实现依赖注入(Dependency Injection, DI)的一种非常强大的工具。通过使用 @Autowired,开发者可以减少代码中的引用绑定,提高模块间的解耦能力
706 6
|
7月前
|
Java Maven
java修改当前项目的maven仓库地址为国内
修改当前项目的maven仓库地址为国内
|
4月前
|
安全 Java 网络安全
Spring Framework JDK >= 9 远程代码执行(CVE-2022-22965)
Spring Framework JDK >= 9 远程代码执行(CVE-2022-22965)
|
6月前
|
前端开发 Java 调度
Spring Webflux 是 Spring Framework 提供的响应式编程支持
Spring Webflux 是 Spring Framework 提供的响应式编程支持
80 2
|
6月前
|
Java Maven Android开发
eclipse更改maven的本地路径和外部仓库地址
eclipse更改maven的本地路径和外部仓库地址
312 1
|
5月前
|
Cloud Native Java 开发者
深入解析Spring Framework的核心设计原理
深入解析Spring Framework的核心设计原理
|
5月前
|
安全 Java Apache
如何安装与使用Spring Boot 2.2.x、Spring Framework 5.2.x与Apache Shiro 1.7进行高效开发
【7月更文第1天】在现代Java Web开发领域,Spring Boot以其简化配置、快速开发的特点备受青睐。结合Spring Framework的成熟与Apache Shiro的强大权限控制能力,我们可以轻松构建安全且高效的Web应用。本篇文章将指导你如何安装并使用Spring Boot 2.2.x、Spring Framework 5.2.x以及Apache Shiro 1.7来构建一个具备基础权限管理功能的项目。
82 0
|
7月前
|
设计模式 Java 数据库连接
Spring Framework 6 中的设计模式
Spring Framework 6 中的设计模式
47 1
|
7月前
|
前端开发 Java Spring
Spring Framework五大功能模块
Spring Framework五大功能模块
|
开发框架 安全 Java
Spring Framework远程代码执行漏洞复现(CVE-2022-22965)
Spring Framework存在远程代码执行漏洞,攻击者可通过该漏洞执行系统命令。
452 1
Spring Framework远程代码执行漏洞复现(CVE-2022-22965)