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.

浙公网安备 33010602011771号