In maven - how to rename the output .war file based on the name of the profile in use

I have three profiles in my pom.xml for our application...

  1. dev (for use on a developer's)
  2. qa (for use on our internal qa server)
  3. prod (production).

When we run our maven build all three profiles ouput a war file with the same name. I would like to output $profilename-somearbitraryname.war

Any ideas?

34
задан Tuan 15 March 2014 в 16:19
поделиться