-
1. Re: how to obtain maven effective dependencies from an external pom ?
gastaldi Apr 29, 2013 12:01 PM (in response to myannou)Hi Yann,
Have you tried to @Inject ProjectFactory in your plugin and use it to find your external pom.xml as a new Project ? Then you could call getEffectiveDependencies() on each project object to compare dependencies.
Best Regards,
George Gastaldi
-
2. Re: how to obtain maven effective dependencies from an external pom ?
myannou Apr 30, 2013 2:42 AM (in response to gastaldi)Hi George,
I just tried, it works if my file is in the local repo but in the case where this pom.xml is not (yet) in the local repo then I cannot do a reference on this file.
Or should I use the remote repo to locate this file ? is this going to work with the ProjectFactory API ?
Thanks
Yann.
-
3. Re: how to obtain maven effective dependencies from an external pom ?
gastaldi Apr 30, 2013 11:50 AM (in response to myannou)Hi Yann,
Have you tried @Inject DependencyResolver for this task ?
With that you can call resolveDependencies or resolveDependencyMetadata.
I think this is what you're looking for.
-
4. Re: how to obtain maven effective dependencies from an external pom ?
myannou Apr 30, 2013 5:16 PM (in response to gastaldi)Hi George,
Thanks it works
Yann.