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-7260] [MNG-7266] Remove maven-compat module #552
Conversation
Wow, massive! 31k LOC gone 😄 |
Well, for a moment I was questioning my own sanity, but figured ("how does this pass" was bonging in my head). Well, you removed the module maven-compat, but you left the dependencies on it, that are coming back into build either from CI local repo or from remote RAO snapshots repo? Unsure, but one thing is certain: I did try this "at home" (remove maven-compat from build) and maven build should fail 😄 So, this is not so simple, as there are things to be reimplemented AFAIR... |
@cstamas I've removed the remaining references. The build still passes and my local repo does not contain any trace of this module (so not downloaded). Let's see what the IT tests results are... |
Hm, I did try removing maven-compat several months ago locally (just to see), and it was not simple back then. I might miss some more recent commits since it seems... |
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.
Almost all Core ITs fail for me. Compat cannot be simply deleted w/o replacing parts used by Core.
One remark: maven-compat removes maven2 compatibility, hence, if any of IT uses "plugin from maven2" (think install/deploy 2.x), they will fail, no? So to say, ITs should be upgraded to use 3.x line of plugins globally (as otherwise IT is about "Maven2 support in Maven3", no?) And hence, to be able to do that, we must tackle install/deploy (and any other plugin not at 3.x version)... as install/deploy 3.x have issues with maven-plugin metadata AFAIR, so I bet 2.x of those are generally used. |
@MartinKanters and @mthmulders made a start with the 3.x implementation for these plugins. |
The first problem hit by the integration tests is that the only implementation of |
I wonder if the deleted files should be removed or moved to a new |
Right. I'll get back to that once I found out why the tests fail on linux/windows and not on osx... |
But isn't that an indicator of our "slackness" then? Maven3 is out for 8 years and we still have (in house) plugins depending on Maven2 stuff? |
Well, I think @rfscholte refers to my last commit which removes the |
In my "attempt" (to drop maven-compat) I did keep |
That's right. It has been lingering a bit but I was actually planning to start working on it this Wednesday. The goal is (as per this JIRA comment to move the existing "install / deploy" logic into Core, implementing it on top of Maven Resolver API. The M-I-P and M-D-P will leverage that, but they will still need a fallback (implemented with Eclipse Aether) so they are compatible with Maven 3.1 and above. |
I'm having a hard time trying to understand why |
IIRC @jvanzyl moved it, so maybe he remembers it. (this is also the reason why adding @deprecated is so so so important) |
IMHO, the
|
I went to a slightly different direction. However, I'm hitting a problem. Some integration tests fail with |
The |
It needs to be evaluated whether those ITs are for Maven 2, or 2. If 2 only, we need to discuss whether to remove them. If 3+ we likely need to migrate them. |
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.