Versions Static Resources with Struts2 and Maven

I have built a web application using Apache Struts2 and you need to set up static resources to enable caching inside browsers. I have all the resources checked out in Subversion.

Is there a possible solution so that Maven checks the static resources at build time and reads the latest SVN version number for the static file and adds the version number to the URL accordingly and replaces it inside HTML templates using a property filter?


source to share

All Articles