Hi,
I would like to know if there is a standard Maven API to edit parts of a
pom.xml. I managed to parse a pom to a Model using ModelBuilder. Then I can do
some modifications and write Model to file using ModelWriter. But of course it
will completly rewrite the pom (loosing comments, writing un
Hi,
> Is it still the recommended way? Is there a better solution with Maven 3
> API?
I don't know a better oneI'm searching for a better solution as well, but i
didn't one...
Kind regards
Karl Heinz Marbaise
--
MfG
Karl Heinz Marbaise
--
SoftwareEntwicklung Beratung SchulungTel.: +49
On 04/13/2011 07:56 AM, Julien HENRY wrote:
I would like to know if there is a standard Maven API to edit parts of a
pom.xml. I managed to parse a pom to a Model using ModelBuilder. Then I can do
some modifications and write Model to file using ModelWriter. But of course it
will completly rewrite
Thanks Jesse for the pointer. Actually it is on central:
http://repo2.maven.org/maven2/de/pdark/decentxml/1.3/
Regards,
Julien
- Message d'origine
> De : Jesse Glick
> À : dev@maven.apache.org
> Envoyé le : Mer 13 avril 2011, 16h 00min 21s
> Objet : Re: Maven API
We've got some techniques to do this in the release plugin as well.
It may be a good thing to build a solid API (either in Maven proper, or a
shared module) either with this, the code from the release plugin, the versions
plugin, or a combination of them all and then bring them all into line...