java - How to modify pom.xml without regenerating the whole pom -


my job create mavenxpp3rewriter class same mavenxpp3writer rewriter shouldn't regenerate whole pom.xml update it.

the mavenxpp3rewriter contains method: private void rewritemodel(model model, model oldmodel, string tagname, xmlserializer serializer)

  • model: new maven model contains modifications
  • oldmodel: old maven model before modification

i have overwrite original pom.xml new model. problem if call writemodel method empties pom.xml , starting regenerate time in case of large number of poms.

the question how can update specific parts of pom? 'specific parts' means difference between model , olmodel.

i hope understand. help.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -