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

[MNG-8180] Fail install/deploy if rogue Maven Plugin metadata found #1612

Merged
merged 2 commits into from
Jul 11, 2024

Conversation

cstamas
Copy link
Member

@cstamas cstamas commented Jul 11, 2024

Resolver handles transparently the repository metadata, and in case of plugins it peeks into META-INF/maven/plugin.xml of given artifact JAR to figure out needed metadata bits (prefix, name, etc).

But, this was done "blindly", while it is expected that GA of JAR artifact without classifier (requirement for maven plugins) and GA in embedded plugin metadata must be same.

Decision here is to fail hard, prevent this being installed and deployed, as this is most probably wrong (unsure what maven-indexer or even Sonatype search would do in this case).


https://issues.apache.org/jira/browse/MNG-8180

Resolver handles transparently the repository metadata, and in case of plugins it peeks into META-INF/maven/plugin.xml of given artifact JAR to figure out needed metadata bits (prefix, name, etc).

But, this was done "blindly", while it is expected that GA of JAR artifact without classifier (requirement for maven plugins) and GA in embedded plugin metadata must be same.

Decision here is to fail hard, prevent this being installed and deployed, as this is most probably wrong (unsure what maven-indexer or even Sonatype search would do in this case).

---

https://issues.apache.org/jira/browse/MNG-8180
@cstamas cstamas requested a review from gnodet July 11, 2024 10:18
@cstamas cstamas self-assigned this Jul 11, 2024
@cstamas cstamas added this to the 4.0.0-beta-4 milestone Jul 11, 2024
@cstamas cstamas marked this pull request as ready for review July 11, 2024 10:36
@cstamas cstamas merged commit c0012c0 into apache:master Jul 11, 2024
13 checks passed
@cstamas cstamas deleted the MNG-8180 branch July 11, 2024 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants