Enables reading and writing of Maven POM files without losing formats and comments.
It is based on work by Robert Scholte for version 3.0 of the Maven Release Plugin.
The project/library is (currently) not available in Maven Central, hence it must be cloned, built, installed and deployed manually.
This project used ETL. The typical usage is:
- Instantiate the JDomModelETL (probably using the JDomModelETLFactory).
- Read the pom.xml file using the extract method.
- Get the model object using the using the getModel method and do the desired modifications on it. NOTE that the transform method is not implemented.
- Write the (modified) pom.xml file using the load method.
This code is under the Apache Licence v2