Is there a friendlier way to customize a pom when using the maven-publish plugin? Looking at the Gradle Guide (section 65.2.4) we get something like the following
publications {
mavenCustom(MavenPublication) {
pom.withXml {
asNode().appendNode('description', 'A demonstration of maven POM customization')
}
}
}
True, but then again that’s just mixing two Groovy APIs for dealing with XML. Also, this example highlights another problem: the current XML processing mechanism expects nodes to be appended. I know it’s possible to insert nodes anywhere you want to but the API is cumbersome at best
Look for example at a recently published pom for livereload-gradle-plugin
The pom contains all the required information but it’s in the “wrong” order (thank goodness maven does not enforce a strict DTD (I think)). Now look at the old way of pom customization using the maven plugin