title: maven profiles or spring profiles?
body: <p>a lot java applications are build with maven. maven has Profiles concept, it is really handy to build release package for different environments. e.g. <code>dev/test/prod</code> using different <code>path / jndiname / security rule / properties files</code>... I think I don't have to list codes here to explain it.</p>
  
  <p>Spring is a very nice and popular framework for java development, since spring3 it has supported profiles concept too. </p>
  
  <p>Now question comes, for releasing to different ENVs purpose, which one is better? right now I prefer maven profile. since spring has to copy each bean definition in each profile. and it needs an initializer/property to let spring know which profile should be actived.</p>
  
  <p>but I feel spring profile is more flexible than maven profile. </p>
  
  <p>what do you think? please give some advices. thank you.</p>