Maven WAR Filtering

So it looks like you can adjust your war plugin to use filtering, as such:

This will automatically scan your deployment discriptors, including web.xml.


So we put the following in a web.xml:

At which point you can use this in your JSP:

This will then resolve in any jsp page you have, and you can just use the “apiVersion” variable in any way you want.