Re: Parent pom or BOM not resolved using DefaultProjectBuildingRequest

2021-02-17 Thread Anthony Dahanne
You just made my day! Perfect! Thanks so much Tamás and Hervé! Maven ❤ Anthony Le mer. 17 févr. 2021, à 13 h 39, Hervé BOUTEMY a écrit : > PR provided https://github.com/anthonydahanne/maven-resolver-test/pull/1 > > in fact, you're not testing resolver directly but project builder which > resol

Re: Parent pom or BOM not resolved using DefaultProjectBuildingRequest

2021-02-17 Thread Hervé BOUTEMY
PR provided https://github.com/anthonydahanne/maven-resolver-test/pull/1 in fact, you're not testing resolver directly but project builder which resolves everything Regards, Hervé Le samedi 13 février 2021, 23:36:28 CET Anthony Dahanne a écrit : > Hello Tamás, > Thanks for your answer. > Yes,

Re: Parent pom or BOM not resolved using DefaultProjectBuildingRequest

2021-02-13 Thread Anthony Dahanne
Hello Tamás, Thanks for your answer. Yes, I remember I also got a look at this maven-resolver-demos repo; and I could even leverage it to successfully resolve GAVs. And your remark about the MRESOLVER-157 takes all its meaning with my issue: reconciling the "pure maven-resolver" world (GAV transfor

Re: Parent pom or BOM not resolved using DefaultProjectBuildingRequest

2021-02-13 Thread Tamás Cservenák
Howdy, take a peek at resolver "demo" snippets here: https://github.com/apache/maven-resolver/blob/master/maven-resolver-demos/maven-resolver-demo-snippets/src/main/java/org/apache/maven/resolver/examples/ResolveTransitiveDependencies.java Word of warning: do not "mix" ServiceLocator and DI (Guic

Re: Parent pom or BOM not resolved using DefaultProjectBuildingRequest

2021-02-13 Thread Anthony Dahanne
Hello Hervé, Thanks for your answer. I understand it's a time sink to investigate such issues. I have followed your recommendation renaming the project; totally makes sense. Actually, since I believe my issue is because of my DefaultRepositorySystemSessionor my DefaultProjectBuildingRequest config

Re: Parent pom or BOM not resolved using DefaultProjectBuildingRequest

2021-02-13 Thread Hervé BOUTEMY
Hi Anthony This mailing list is not a bad location It's just that your question is not easy to answer, very specific, we have many other things to do then I can't tell you if anybody has time to dig into it, but what's clear is that it will require time One quick feedback: maven-resolver artifa

Re: Parent pom or BOM not resolved using DefaultProjectBuildingRequest

2021-02-12 Thread Anthony Dahanne
Hello, I still could not find any solution to this problem I have cross posted on stackoverflow : https://stackoverflow.com/questions/66181515/defaultprojectbuildingrequest-org-apache-maven-project-projectbuildingexception Please let me know if my question is not posted in the right mailing lis

Parent pom or BOM not resolved using DefaultProjectBuildingRequest

2021-02-11 Thread Anthony Dahanne
Hello Maven devs, I'm trying to programmatically ingest a pom.xml and start a Maven dependency resolution on it. For that end, I'm using DefaultProjectBuildingRequest and a ProjectBuilder. I could successfully issue the request, but when trying against a pom that relies on a parent or a BOM (spring