Skip to content
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

Add more discriminating properties to the daemon #749

Merged
merged 1 commit into from
Dec 8, 2022

Conversation

oehme
Copy link
Contributor

@oehme oehme commented Dec 7, 2022

The local repo and maven settings are both used while resolving core extensions, which happens during daemon startup. Thus these two also need to be discriminating properties, as the core extensions themselves are discriminating.

Our concrete use case is that our extension's integration tests use an isolated repository which is deleted after the build, so we don't pile up garbage data on our CI agents. The lack of support for a custom local repository means we currently can't run the tests for our Maven extension against the Maven daemon.

@oehme oehme force-pushed the oehme/local-repo-discriminates branch 3 times, most recently from 2bf0a43 to 8de024e Compare December 8, 2022 10:44
The local repo and maven settings are both used while resolving core extensions,
which happens during daemon startup. Thus these two also need to be discriminating
properties, as the core extensions themselves are discriminating.
@oehme oehme force-pushed the oehme/local-repo-discriminates branch from 8de024e to 9b9221d Compare December 8, 2022 11:23
@ppalaga
Copy link
Contributor

ppalaga commented Dec 8, 2022

Indeed, very useful, thanks @oehme!

@ppalaga ppalaga merged commit 866a7c6 into apache:master Dec 8, 2022
OptionType.PATH,
Flags.DISCRIMINATING | Flags.OPTIONAL,
"mvn:-s",
"mvn:--settings"),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@oehme Should this also apply to -gs and --global-settings?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it should, but from a cursory look at this class it's not yet supported at all. I also think that the Java Home should be discriminating and that the actual content of the settings.xml should be considered as well, but all of these seemed out of scope for this PR.

@gnodet gnodet added this to the 1.0.0-m1 milestone Dec 9, 2022
gnodet added a commit to gnodet/mvnd that referenced this pull request Dec 9, 2022
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.

None yet

4 participants