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 <[email protected]> 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 >
