I have heard several times developer telling me how they build their artifacts before deploying to each of their environment. Yes, they build a jar for dev and instead of promoting the same jar to their acceptance testing environment, they rebuild the jar specifically for their UAT environment.
Here is