title: How do I override the spring framework version in Spring Batch?
body: <p>I'm starting a new project with Spring Batch 2.1.6.RELEASE and I use Maven for depemdency management. </p>
  
  <p>By default, it imports spring framework 2.5.6, but I'd like to use 3.0.5.RELEASE instead.</p>
  
  <p><a href="http://forum.springsource.org/showthread.php?p=344699#post344699" rel="nofollow">This post</a> says it's compatible, but I don't know how to declare that in my maven pom file.  </p>
  
  <p>I tried just putting the dependencies for spring-core, spring-beans and spring-context versions 3.0.5.RELEASE, but that adds the libraries to the project without removing the 2.5.6 version.</p>
  
  <p>I had a look at spring-batch-parent pom file, and there is a profile called "spring3" that uses the spring version I want. How do I activate a profile in my project's pom file ? </p>
  
  <p>Thanks in advance,</p>
  
  <p>Philippe</p>