java - How do I override the spring framework version in Spring Batch? -
i'm starting new project spring batch 2.1.6.release , use maven depemdency management.
by default, imports spring framework 2.5.6, i'd use 3.0.5.release instead.
this post says it's compatible, don't know how declare in maven pom file.
i tried putting dependencies spring-core, spring-beans , spring-context versions 3.0.5.release, adds libraries project without removing 2.5.6 version.
i had @ spring-batch-parent pom file, , there profile called "spring3" uses spring version want. how activate profile in project's pom file ?
thanks in advance,
philippe
you can exclude transient dependency on spring framework v2.5.6 of spring batch using dependency exclusions element of spring-batch dependency in maven. like...
<dependency>   <groupid>org.springframework.batch</groupid>   <artifactid>spring-batch-core</artifactid>   <version>2.1.6.release</version>   <exclusions>     <exclusion>       <groupid>org.springframework</groupid>        <artifactid>spring-beans</artifactid>      </exclusion>     <!-- other exclusions here -->   </exclusions>  </dependency>      
Comments
Post a Comment