Skip to content

Instantly share code, notes, and snippets.

@mrschyte
Created January 30, 2019 19:21
Show Gist options
  • Save mrschyte/1405462d2ad04c73daf1fdbda75f1b2f to your computer and use it in GitHub Desktop.
Save mrschyte/1405462d2ad04c73daf1fdbda75f1b2f to your computer and use it in GitHub Desktop.
Replace maven parent version with LATEST
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ns0="http://maven.apache.org/POM/4.0.0">
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>
<xsl:template match="ns0:parent/ns0:version/text()">LATEST</xsl:template>
</xsl:stylesheet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment