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. dev/test/prod
using different path / jndiname / security rule / properties files
... I think I don't have to list codes here to explain it.
Spring is a very nice and popular framework for java development, since spring3 it has supported profiles concept too.
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.
but I feel spring profile is more flexible than maven profile.
what do you think? please give some advices. thank you.