-
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-5577 convert most of maven core to jsr330 annotations #332
MNG-5577 convert most of maven core to jsr330 annotations #332
Conversation
- Reduce the use of wiring in unit tests - Enable class scanning for tests that require it. - Remove test and wiring that's not used.
This class was deleted, but retained in tests. We don't need it anymore, so drop it.
Convert (almost) all Plexus components in maven-core to JSR 330 annotations.
I found one issue with Intellij check this stacktrace: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 all our ITs passed ok, Jenkins is Green also for each separate commit. https://builds.apache.org/job/maven-box/job/maven/job/MNG-5577/3/
core IT? |
Yes, core it is green |
Folks, do have have a way to run this PR against all Plugin ITs? I'd like to avoid the same situation as with the multiple POM loads against Maven Shade Plugin. |
Why do we keep changing maven-compat? By showing it is maintained it will be harder to convince projects to drop it. @michael-o no, unless somebody has it all on his system, he can easily make an aggregator for it. But I'm not so worried about this. The loop was caused by new implementations, this is a clear replacement. Plugins that might be hit are more likely the tiles-maven-plugin and polyglot-maven-plugin. |
Running ITs here too... |
The changes to maven-compat are test-only; a couple are necessary to wire up the classes from I'd be delighted if the module wasn't there at all, and would also support formally WONTFIX'ing MNG-6687. |
It's worth to do change also in maven-compat as we have few implementation beans that are required for maven to run. Quick check - rename maven-compat.jar in Maven installation and try to run something. ;-) I have few more commits almost ready to get rid off plexus annotations that we can review later. |
I issued https://issues.apache.org/jira/browse/MNG-5995 so I am aware of the awkward compat situation. However this shouldn't be solved in compat, but in core. mven-compat should be conisdered dead code, it was there to keep Maven2 plugins compatible with Maven 3. I prefer to spend energy on the other modules. |
Convert (almost) all Plexus components in maven-core to JSR 330 annotations Closes #332
Adds an IT that verifies that "ide" WorkspaceReader is used by Maven. Relates to fix apache@3f47580
The aim of this PR is to get
git grep 'org.codehaus.plexus.component.annotations' maven-core/src/main/java/
down as low as possible; it covers everything exceptDefaultLifecyclePluginAnalyzer
.(For
DefaultLifecyclePluginAnalyzer
, switching@Requirement
to@Inject
forlifecycleMappings
means it's no longer wired up with aRealmFilteredBeans
, andMNG-4385
regresses.)Tests are also simplified, to avoid injection in tests of concrete classes, and remove some no-longer-used mocks.
Following this checklist to help us incorporate your
contribution quickly and easily:
for the change (usually before you start working on it). Trivial changes like typos do not
require a JIRA issue. Your pull request should address just this issue, without
pulling in other changes.
[MNG-XXX] - Fixes bug in ApproximateQuantiles
,where you replace
MNG-XXX
with the appropriate JIRA issue. Best practiceis to use the JIRA issue title in the pull request title and in the first line of the
commit message.
mvn clean verify
to make sure basic checks pass. A more thorough check willbe performed on your pull request automatically.
If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.
To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.
I hereby declare this contribution to be licenced under the Apache License Version 2.0, January 2004
In any other case, please file an Apache Individual Contributor License Agreement.