Skip to content

Enables reading and writing of Maven POM files without loosing formats and comments

License

Notifications You must be signed in to change notification settings

CoreMedia/maven-jdom-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maven JDom Parser

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.

Installation

The project/library is (currently) not available in Maven Central, hence it must be cloned, built, installed and deployed manually.

Usage

This project used ETL. The typical usage is:

  1. Instantiate the JDomModelETL (probably using the JDomModelETLFactory).
  2. Read the pom.xml file using the extract method.
  3. 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.
  4. Write the (modified) pom.xml file using the load method.

License

This code is under the Apache Licence v2

About

Enables reading and writing of Maven POM files without loosing formats and comments

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages