Deploying a WAR artifact with a dynamic filename


I am building my Java/Tomcat application with Maven and the finalName field is set to a dynamic value - it is unique for every build. Specifically we are currently using this:


From what I can see, the deployer expects a static filename for the WAR file to be configured, and I don't see any way to either give it the same format as we use in the POM file, or have IDEA actually inspect the POM file (or perhaps parse the Maven output) to get the name of the WAR file that was just built. I'd like to not change the file name if possible, so that my testing in IDEA doesn't need any special case from what we use in production.

Is there a way to accomplish this?

Please sign in to leave a comment.