I have used YUI maven plugin to compress css and js when building war file. But couldn’t find a plugin to do XML/XSL compression. Can anyone suggest a way to do this? It has to be done when the war file is built through maven. Even a script which can be included with maven
for this purpose will be helpful.
Thanks in advance.
XML and XSL are DATA, best you can do is eliminate whitespace, not compress the same way you would compress JavaScript but changing ‘var someVariableIneed’ to ‘var x’. I don’t think its really going to save you much if you can even find something for this (extraneous) task.