Hi Laird,

Thanks, this all is very useful :-)

One more thing, if I needed to read the contents of a settings.xml file, I
suppose there's a similar API that make this work?

Best,
Andres

-------------------------------------------
Java Champion; Groovy Enthusiast
JCP EC Associate Seat
http://andresalmiray.com
http://www.linkedin.com/in/aalmiray
--
What goes up, must come down. Ask any system administrator.
There are 10 types of people in the world: Those who understand binary, and
those who don't.
To understand recursion, we must first understand recursion.


On Sat, Dec 8, 2018 at 11:10 PM Laird Nelson <ljnel...@gmail.com> wrote:

> I forgot to mention: if you want to do this all "by hand", i.e. not rely on
> JSR 330 containers, you want to look here (
>
> https://maven.apache.org/resolver/apidocs/index.html?org/eclipse/aether/impl/DefaultServiceLocator.html
> )
> and work backwards.
>
> Best,
> Laird
> --
> https://about.me/lairdnelson
>
> On Sat, Dec 8, 2018 at 2:05 PM Laird Nelson <ljnel...@gmail.com> wrote:
>
> > This is all near and dear to my heart.
> >
> > First, some terminology clearing up: the Maven internals rely on a
> JSR-330
> > implementation (javax.inject.*), not CDI (javax.enterprise.inject.*).
> CDI
> > is a JSR-330 implementation, but so is Guice, HK2, etc.  I believe that
> the
> > internals of Maven rely on Guice, but as Robert says, if you're not
> > rebuilding the innards of Maven then using the facilities of JSR-330 make
> > the code really simple.
> >
> > I did actually put parts of Maven in CDI (
> > https://microbean.github.io/microbean-maven-cdi/).  You may find some of
> > the implementation classes in question that you need in there.  Start
> here:
> >
> https://github.com/microbean/microbean-maven-cdi/blob/c5abd2e3c321020c419442c44ef726e48952d983/src/main/java/org/microbean/maven/cdi/MavenExtension.java#L317
> >
> > Best,
> > Laird
> > --
> > https://about.me/lairdnelson
> >
>

Reply via email to