Maven HTMLCompressor Plugin allows to compress html/xml by adding a few lines to the pom file.
Version2.4.0compared with

Version Details

Compile Changes (2)

2.3.0 2.4.0
ChangeGroup / ArtifactPreviousCurrent
~ Updated com.github.hazendaz » htmlcompressor2.3.02.3.1
~ Updated org.mozilla » rhino1.8.01.8.1