slawekjaranowski opened a new pull request, #14162:
URL: https://github.com/apache/maven/pull/14162

   The `org.eclipse.sisu` package is not exported by Maven core to plugin 
realms, so Sisu
   annotations used by plugin components, such as `@org.eclipse.sisu.Priority`, 
are not visible
   at runtime and the container silently ignores them.
   
   A real example is maven-enforcer (apache/maven-enforcer#1091): the built-in
   `EnforceBytecodeVersion` rule is annotated with `@Priority(10)` so that it 
prevails over
   the rule with the same name from `org.codehaus.mojo:extra-enforcer-rules`, 
but the annotation
   has no effect and the rule placed earlier on the plugin classpath is used.
   
   This change exports the `org.eclipse.sisu` package (annotations like 
`@Priority`,
   `@Description`, `@Typed`, `@EagerSingleton` and the `BeanEntry` / `Mediator` 
API).
   Only the package itself is exported, not its sub-packages
   (`org.eclipse.sisu.inject`, `org.eclipse.sisu.plexus`, ...), so Sisu 
internals stay hidden.
   
   Backports: after merge, this change will be cherry-picked to `maven-4.0.x`, 
`maven-3.10.x`
   and `maven-3.9.x`.
   
   ---
   
   To make clear that you license your contribution under
   the [Apache License Version 2.0, January 
2004](https://www.apache.org/licenses/LICENSE-2.0)
   check one of the following:
   
   - [ ] I hereby declare this contribution to be licensed under the [Apache 
License Version 2.0, January 2004](https://www.apache.org/licenses/LICENSE-2.0)
   - [x] I hereby declare that I have filed an [Apache Individual Contributor 
License Agreement](https://www.apache.org/licenses/icla.pdf).
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to