maven - Is there a way to edit parent relativePath with mvn -


is there command or mechanism can edit child pom.xml files parent relativepath tag gets edited or inserted child modules?

basically have aggregate pom.xml, , separate parent pom.xml. aggregator collects set of independent git submodules, independently released, not setup know aggregator nor relative location of parent, , want way automatically apply needed edits such do.

aggregator/     - pom.xml     - @parent/         - pom.xml     - @module1/         - pom.xml 

the modules reference released versions of parent, want switch on -snapshot (versions:update-child-modules handles great), , point modules @ relativepath of parent.

currently hand edit files insert <relativepath>../parent</relativepath> in each parent section.

the aggregator optional projects, since it's coming long after fact, can't commit hand edit changes module pom.xmls. why want dynamic mechanism people want use aggregator.

it may have resort xml parser, since i'm half way there without doing it'd nice if avoided.

answering own question:

no there doesn't seem way using mvn.

i ended using python find xml nodes in question, , make in-line edits pom.xml files.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -