Skip to content

Conversation

@cstamas
Copy link
Member

@cstamas cstamas commented Nov 20, 2024

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

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.
@cstamas cstamas marked this pull request as ready for review November 20, 2024 15:07
@cstamas cstamas added this to the 4.0.0-rc-1 milestone Nov 20, 2024
@cstamas cstamas changed the title Introduce proto session [MNG-8385] Introduce proto session Nov 20, 2024
@cstamas cstamas requested a review from gnodet November 20, 2024 18:05
* @see #contribute(ProtoSession)
*/
void contribute(Map<String, String> userProperties);
default void contribute(Map<String, String> userProperties) {}
Copy link
Contributor

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.
Copy link
Contributor

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.

Copy link
Contributor

@gnodet gnodet left a 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.

@cstamas
Copy link
Member Author

cstamas commented Nov 20, 2024

Dropped two files, locally is ok, let see ITs and merge

It is and should contribute user properties only.
@cstamas cstamas merged commit fcd9c0f into apache:master Nov 20, 2024
13 checks passed
@cstamas cstamas deleted the proto-session branch November 20, 2024 19:58
@jira-importer
Copy link

Resolve #9468

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants