Changes between Version 18 and Version 19 of shareMaven


Ignore:
Timestamp:
12/31/2011 06:10:38 PM (14 years ago)
Author:
qinhongyuan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • shareMaven

    v18 v19  
    160160 
    161161---- 
     162把spring抽离出来,单独作为一个项目来处理,写一个新的pom 
     163{{{ 
     164<project> 
     165<modelVersion>4.0.0</modelVersion> 
     166  <groupId>cn.pconline.commons</groupId> 
     167  <artifactId>spring-dependencies-module</artifactId> 
     168  <packaging>pom</packaging> 
     169  <properties> 
     170    <spring.version>2.5.6</spring.version> 
     171    </properties> 
     172  <version>${spring.version}</version> 
     173   
     174    <dependencies> 
     175    <dependency> 
     176      <groupId>org.springframework</groupId> 
     177      <artifactId>spring-web</artifactId> 
     178      <version>${spring.version}</version> 
     179    </dependency> 
     180        <dependency> 
     181            <groupId>org.springframework</groupId> 
     182            <artifactId>spring-jdbc</artifactId> 
     183            <version>${spring.version}</version> 
     184        </dependency>            
     185 
     186                        <dependency> 
     187            <groupId>org.springframework</groupId> 
     188            <artifactId>spring-beans</artifactId> 
     189            <version>${spring.version}</version> 
     190        </dependency> 
     191        <dependency> 
     192            <groupId>org.springframework</groupId> 
     193            <artifactId>spring-aop</artifactId> 
     194            <version>${spring.version}</version> 
     195        </dependency> 
     196        <dependency> 
     197            <groupId>org.springframework</groupId> 
     198            <artifactId>spring-context</artifactId> 
     199            <version>${spring.version}</version> 
     200        </dependency> 
     201        <dependency> 
     202            <groupId>org.springframework</groupId> 
     203            <artifactId>spring-tx</artifactId> 
     204            <version>${spring.version}</version> 
     205        </dependency> 
     206        <dependency> 
     207            <groupId>org.springframework</groupId> 
     208            <artifactId>spring-core</artifactId> 
     209            <version>${spring.version}</version> 
     210        </dependency>            
     211    </dependencies> 
     212</project> 
     213}}} 
     214 
     215运行mvn install 弄好到本地,或者上传到私服 
     216 
     217{{{ 
     218   <properties> 
     219    <springversion>2.5.6</springversion> 
     220   </properties> 
     221    <dependencies> 
     222      ...... 
     223     <dependency> 
     224      <groupId>cn.pconline.commons</groupId> 
     225      <artifactId>spring-dependencies-module</artifactId> 
     226      <type>pom</type> 
     227      <version>${springversion}</version> 
     228     </dependency> 
     229     ........ 
     230    </dependencies> 
     231}}} 
     232引入到项目里面就可以了,同样可以使用在不同应用之间的一些client包的调用 
     233---- 
    162234 
    163235