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