-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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-7407] Introduce a ModelVersionProcessor component to make CI Friends Versions pluggable #675
Conversation
Please rebase |
Done! |
...src/main/java/org/apache/maven/model/interpolation/AbstractStringBasedModelInterpolator.java
Outdated
Show resolved
Hide resolved
...src/main/java/org/apache/maven/model/interpolation/AbstractStringBasedModelInterpolator.java
Show resolved
Hide resolved
maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java
Outdated
Show resolved
Hide resolved
Friends Versions pluggable
} | ||
|
||
StringSearchModelInterpolator() | ||
{ | ||
super( null, null ); | ||
super( null, null, null ); |
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.
@cstamas Can you come up with a reason why we have this?
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.
I think that was for test only but is no longer used, should I remove that?
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.
Much better, let me run tests after I have completed a task here.
So I have good and bad news. This change revealed a really really ugly bug in Maven. I will share details tomorrow and need to discuss this with @rfscholte. Good news: The bug can be worked around for your PR. |
Anything I could do in the meantime to mitigate this? |
Just need a bit of time. It is almost complete on my side. |
…endly Versions pluggable This closes #675
Currently the handling for https://maven.apache.org/maven-ci-friendly.html is hard wired into maven.
For Tycho we like to replace/extend the default handling for this to supply the user with some automatic derived values for some of the variables.
This PR extracts the parts of that handling in a new ModelVersionProcessor that has the current behavior as a default implemented. This not only makes it more clear how this is handled (no cross references between DefaultModelValidator and AbstractStringBasedModelInterpolator required) but also allows to override the handling by a core extension.
FYI @mickaelistria @akurtakov
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] SUMMARY
, where you replaceMNG-XXX
and
SUMMARY
with the appropriate JIRA issue. Best practice is to use the JIRA issuetitle 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.