-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MNG-8385] Introduce proto session #1929
Conversation
And make use of it in CLIng. Also, move from "late" Resolver session factory to "early" CLIng invocation of PropertyContributors and make their contribution visible in whole Maven, not only Resolver.
As in case of loading extensions, the context lookup is not yet there.
...rces/mng-8385/spi-extension/src/main/resources/META-INF/maven/org.apache.maven.api.di.Inject
Outdated
Show resolved
Hide resolved
its/core-it-suite/src/test/resources/mng-8385/spi-extension/.mvn/placeholder.txt
Outdated
Show resolved
Hide resolved
*/ | ||
void contribute(Map<String, String> userProperties); | ||
default void contribute(Map<String, String> userProperties) {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Glad we keep compatibility somehow !
import org.apache.maven.api.spi.PropertyContributor; | ||
|
||
/** | ||
* Hack: to circumvent sisu/plexus/di stuff. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really need to investigate what's the problem here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, a few minor enhancements are possible to remove two files from the IT.
Dropped two files, locally is ok, let see ITs and merge |
It is and should contribute user properties only.
And make use of it in CLIng. Also, move from "late" Resolver session factory to "early" CLIng invocation of
PropertyContributor
SPI and make contribution visible across whole Maven, not only Resolver.https://issues.apache.org/jira/browse/MNG-8385