I have a spring mvc maven application. I want to build an rpm out of it which can be deployed on the servers.
whats the process for generating rpms.
Also what i want is that the rpm bundles all the property files ie. for dev, staging, prod etc.
and when the rpm is unpacked and war deployed on the machine it at runtime selects the correct version to use... ie. for dev, prod or staging... depending on some environment variable.