that can be fixed, it has to do with the definition of the heredoc being a literal string: 
<<'POM_XML'
instead of: 
<<"POM_XML"