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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -