Aw: Re: How is the best way to get an effective POM outside of a Maven Plugin?

2017-08-14 Thread sparsick
Hello, I found a solution for my problem that I'd like to share with you. Maybe it helps others, too. JBoss's ShrinkWrap Resolver makes it possible to run Maven embedded in your code. I use it to run "help:effective-pom -Doutput=effective-pom.xml". Then I read "effective-pom.xml" with

Aw: Re: How is the best way to get an effective POM outside of a Maven Plugin?

2017-08-09 Thread sparsick
Hi Karl Heinz, unfortunately, I need the full resolved pom. Best regards, Sandra Parsick > Gesendet: Mittwoch, 09. August 2017 um 19:24 Uhr > Von: "Karl Heinz Marbaise" > An: "Maven Users List" , spars...@web.de > Betreff: Re: How is the best way to

Re: How is the best way to get an effective POM outside of a Maven Plugin?

2017-08-09 Thread Karl Heinz Marbaise
Hi Sandra, first question: Do you need the full resolved pom (effective pom) or would it be enough just to simply to parse the pom file which can simply being done using MavenXpp3Reader this would deliver the XML as a Maven Model class which can simply being used to extract information from

How is the best way to get an effective POM outside of a Maven Plugin?

2017-08-09 Thread sparsick
Hello, currently, I'm working on a small tool, that needs some information of a POM and its parent POM. I didn't want to parse them with a XML reader, so I found that the DefaultModelBuilder can build a complete effective POM for me. Based on a stackoverflow answer