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
I think it depends on your requirements. If you have different dependencies based on the environment (ie. jdbc drivers, etc..), you'll want to use maven to sort this out.
If it's just a matter of configuring your deployment, you're probably better off using spring.