Maven Model Helper
A library to parse Maven descriptors (pom.xml) and write changes to the model preserving the original comments
To use this library, add the following dependency to your project:
<dependency>
<groupId>io.fabric8</groupId>
<artifactId>maven-model-helper</artifactId>
<version>16</version>
</dependency>
See MavenTest for more details