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
Post a Comment