-
Notifications
You must be signed in to change notification settings - Fork 213
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
Default value must be manually handled #953
Conversation
That works :) Thanks! |
Am adding IT (something I'd done initially would catch this), and will merge |
The code change is OK and fixes issue, but something else is wrong. The maven.config is ignored by mvnd, hence it tries (local repo shows the attempt) to load extension foo:bar but naturally fails, but continues instead to fail the build. |
Can we get this in for alpha14? |
Sure, this will be in it. But as i wrote, seems there is something else to be fixed as IT this PR adds shows... |
@gnodet If you run this PR locally:
Any idea? |
Yes, the problem is here:
|
String exclusionsString = | ||
systemProperty(Environment.MVND_CORE_EXTENSIONS_EXCLUDE).asString(); | ||
String exclusionsString = systemProperty(Environment.MVND_CORE_EXTENSIONS_EXCLUDE) | ||
.asOptional() |
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 think this should be:
String exclusionsString =
systemProperty(Environment.MVND_CORE_EXTENSIONS_EXCLUDE).orDefault().asString();
.filter(e -> !exclusions.contains(e.getGroupId() + ":" + e.getArtifactId())) | ||
.collect(Collectors.toList()); | ||
if (!exclusions.isEmpty()) { | ||
LOG.info("Excluded extensions (GA): {}", exclusions); |
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.
This should definitely not be part of the output, and not 4 times.
I'll revert this chunk, or log to debug at most.
Unsure why ubuntu failed, win passed.... locally also passed w/ same CLI params as CI invoked 🤔 |
@@ -224,7 +224,7 @@ public enum Environment { | |||
null, | |||
"io.takari.maven:takari-smart-builder", | |||
OptionType.STRING, | |||
Flags.OPTIONAL), | |||
Flags.DISCRIMINATING | Flags.OPTIONAL), |
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 don't think this one is discriminating. What is discriminating is the list of extensions to load which may actually be affected by this property, but not necessarily. If you add an exclusion which is not supposed to be loaded, this won't affect the result. In addition, that property is not really interesting on the daemon side, as the extensions list is loaded by the client...
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.
removed
Default must be manually handled, i missed this. Fixes apache#912 Backport of apache#953 to mvnd-1.x
Default must be manually handled, i missed this.
Fixes #912