Use an XML lib to produce the pom.xml, instead of string templating on a file.