-
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-7055] Fix G level metadata handling #555
Conversation
Just make Resolver handle it. This is TBD, as actual prefix still needs somehow to get there.
How does this relate to MNG-7055? |
Fixes it (not yet, once done) |
The ITs reported in MNG-7055 to fail with 3.x of m-install-p and m-deploy-p are passing OK (!), but now another IT fails:
|
Patched ITs with apache/maven-integration-testing#114 all pass OK:
|
A similar change needs to be done for both plugins, in case it is used with Maven 3 |
I'm a bit sad that the work that @MartinKanters and me had done so far (announced in the JIRA ticket and more recently here on GitHub) is apparently of no use. |
@mthmulders this is a fix for Maven 4, but not for Maven 3 |
I don't think the fix that @MartinKanters and I have worked on is compatible with this approach. |
Does this mean that the |
Yes and no: Yes, as we could get the only missing piece even without it (the goalPrefix that is plugin configuration). The "price" would be high, go thru plugin config/DOM stuff.... No, as due that above, it made this PR stupid simple (just reuse the data that mojo gave to us). In general (and that's why I created this PR initially to drop this useless mojo) I'd drop it, but this seems like "simple first step", and later we can change it at will. Given m-plugin-p is "just a plugin" but is still quite often referenced in core (so somewhat not "just a plugin"), I think we could do more here, for example change the mojo to just stick some values somewhere (ie. session) and alter the provider in maven core and voila, GroupRepositoryMetadata is not needed.... |
Use provider as SISU Providers obey scope. In UT two affected UTs needs a bit of extra work, enter scope and fake session using Mockito
Related to apache/maven-plugin-tools#37 wrt |
Maven Artifact Transfer silently prevents group level metadata to reach Resolver and causes metadata loss on install/deploy. Fix is to "bridge" this from maven-resolver-provider (and core) by reusing the actual metadata that m-plugin-p:addPluginArtifactMetadata mojo adds, but m-a-t filters out. This is backport of commit d141957 to maven-3.9.x branch.
Maven Artifact Transfer silently prevents group level metadata to reach Resolver and causes metadata loss on install/deploy. Fix is to "bridge" this from maven-resolver-provider (and core) by reusing the actual metadata that m-plugin-p:addPluginArtifactMetadata mojo adds, but m-a-t filters out.
https://issues.apache.org/jira/browse/MNG-7055