Re: howto resolve dependencies for a pom outside of a maven build

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: howto resolve dependencies for a pom outside of a maven build

ljnelson
On Thu, Feb 7, 2019 at 8:14 AM Bert <[hidden email]> wrote:

> So far, I have found plugins (maven-dependency-tree,
> maven-dependency-analyzer,..) that do what I want to do and I hoped to
> learn from there on how to resolve dependencies.
> Unfortunately, they all rely on an existing/running plexus container
> (or so I understand).
> I did not find information or a sample on how to start plexus.
>

You might be interested in a blog post I wrote on this a while back:
https://lairdnelson.wordpress.com/2017/03/06/maven-and-the-project-formerly-known-as-aether/

The short answer is you want the *new* version of Maven Artifact Resolver:
https://maven.apache.org/resolver/index.html

For the longer answer, I hope you enjoy the blog post.

Best,
Laird
--
https://about.me/lairdnelson
Reply | Threaded
Open this post in threaded view
|

Re: howto resolve dependencies for a pom outside of a maven build

Bert
Thank you so much for that write up. I did indeed enjoyed reading it.
No wonder I got lost on the way..

I will look into your provided code example on the weekend. Quite a
bit of plumbing ;-). Do I need all of this? Because I do not need to
download all the dependencies. A collection / tree of the artefact
metadata would be enough. But again, thank you for help. I was about
to abandon my little site project.

Bert

Am Do., 7. Feb. 2019 um 17:24 Uhr schrieb Laird Nelson <[hidden email]>:

>
> On Thu, Feb 7, 2019 at 8:14 AM Bert <[hidden email]> wrote:
>
> > So far, I have found plugins (maven-dependency-tree,
> > maven-dependency-analyzer,..) that do what I want to do and I hoped to
> > learn from there on how to resolve dependencies.
> > Unfortunately, they all rely on an existing/running plexus container
> > (or so I understand).
> > I did not find information or a sample on how to start plexus.
> >
>
> You might be interested in a blog post I wrote on this a while back:
> https://lairdnelson.wordpress.com/2017/03/06/maven-and-the-project-formerly-known-as-aether/
>
> The short answer is you want the *new* version of Maven Artifact Resolver:
> https://maven.apache.org/resolver/index.html
>
> For the longer answer, I hope you enjoy the blog post.
>
> Best,
> Laird
> --
> https://about.me/lairdnelson

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]