Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

laeubi
Copy link

@laeubi laeubi commented Feb 6, 2022

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:

  • Make sure there is a JIRA issue filed
    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.
  • Each commit in the pull request should have a meaningful subject line and body.
  • Format the pull request title like [MNG-XXX] SUMMARY, where you replace MNG-XXX
    and SUMMARY with the appropriate JIRA issue. Best practice is to use the JIRA issue
    title in the pull request title and in the first line of the commit message.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Run mvn clean verify to make sure basic checks pass. A more thorough check will
    be performed on your pull request automatically.
  • You have run the Core IT successfully.

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.

@michael-o
Copy link
Member

Please rebase

@laeubi
Copy link
Author

laeubi commented Feb 13, 2022

Please rebase

Done!

}

StringSearchModelInterpolator()
{
super( null, null );
super( null, null, null );
Copy link
Member

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?

Copy link
Author

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?

Copy link
Member

@michael-o michael-o left a 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.

@michael-o
Copy link
Member

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.

@laeubi
Copy link
Author

laeubi commented Feb 17, 2022

The bug can be worked around for your PR.

Anything I could do in the meantime to mitigate this?

@michael-o
Copy link
Member

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.

asfgit pushed a commit that referenced this pull request Feb 19, 2022
@asfgit asfgit closed this in 62cf29b Feb 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants