读书人

spring maven治理

发布时间: 2012-10-16 09:57:37 作者: rapoo

spring maven管理

刚刚开始使用maven ,spring依赖是写成这样的。通过m2eclipse? 不停加入spring子项

pom.xml变成这样

                                 <dependency><groupId>org.springframework</groupId><artifactId>spring-core</artifactId><version>2.5.6.SEC01</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-tomcat-weaver</artifactId><version>2.5.6.SEC01</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-aop</artifactId><version>2.5.6.SEC01</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-aspects</artifactId><version>2.5.6.SEC01</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-jpa</artifactId><version>2.0.8</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-agent</artifactId><version>2.5.6.SEC01</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-orm</artifactId><version>2.5.6.SEC01</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-webmvc</artifactId><version>2.5.6.SEC01</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-jms</artifactId><version>2.5.6.SEC01</version></dependency>

?

?

上面这样的依赖很容易遗漏其他的jar包,应该写成这样:

                                <dependency><groupId>org.springframework</groupId><artifactId>spring</artifactId><version>2.5.6.SEC01</version></dependency>

??

来源:

1.http://pookey.co.uk/wordpress/archives/50-getting-started-with-maven-and-spring

读书人网 >软件架构设计

热点推荐