Skip to content

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

cstamas added 2 commits July 11, 2024 12:10
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
@cstamas cstamas deleted the MNG-8180 branch July 11, 2024 16:47
@jira-importer
Copy link

Resolve #9818

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.

3 participants