This plugin could be used: https://code.google.com/p/wro4j howto: https://community.jboss.org/people/fjuma/blog/2013/04/19/using-javascript-and-css-minification-at-build-time-on-openshift