Repository navigation
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.
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.
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 🤔 |
| "io.takari.maven:takari-smart-builder", | ||
| OptionType.STRING, | ||
| Flags.OPTIONAL), | ||
| Flags.DISCRIMINATING | Flags.OPTIONAL), |
There was a problem hiding this comment.
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...
Default must be manually handled, i missed this. Fixes apache#912 Backport of apache#953 to mvnd-1.x
(cherry picked from commit 6de7431) Only the integration tests are taken, the fix is already on this branch; kept the 1.x interpolation and multiModuleProjectDirectory tests next to the new mvndParams() hook.
Default must be manually handled, i missed this.
Fixes #912