Have a look at setting up different maven build profiles for server builds and developer workstation builds