Skip to content

Broken setups due to builtin references to other P2 composite update sites #423

Open

Description

@mhoffrog

Issue

  1. Our Oomph based setups with former Eclipse versions (like e.g. 2024-03) did get broken since your recent update of the update site approx. 2 weeks ago.
  2. The setup procedure takes 2-3 times longer as needed.

Root causes

For Issue 1

  • The builtin references to the root URLs of composite repos of Checkstyle, SpotBugs and PMD lead to getting installed dependencies being incompatible with former Eclipse platform versions.

For Issue 2

  • The builtin references to those composite repos enforce the setup to read any content file from any version beyond the referenced composite root. This makes the setup to take much more time than needed.

Solution recommended

Remove the hard coded builtin references to other composite repos and document what range of versions for each code checker implementation is supported by what version of m2e-code-quality. It must be subject of the individual users setup scenario what version of a code checker dependency is to be installed.

Activity

  1. adangel commented on May 9, 2026

    @adangel
    Member

    Thanks for reporting an issue.

    When you talk about oomph based setups, do you mean the oomph setup file of this project (https://github.com/m2e-code-quality/m2e-code-quality/blob/develop/m2e-code-quality.setup) or some other file?

    Without a clear error message, it's very difficult to help. "Did get broken" is not very specific...

    I assume, you run into the problem, that checkstyle 13 is not compatible with 2024-03 (it requires at least Java 21 + at least eclipse 2025-06). I can't explain, why eclipse/osgi wouldn't figure this out on its own. I had to pin checkstyle to an older version for 2022-09 (see #421). So, that's that for issue 1. It's more an eclipse platform/osgi bug or checkstyle not declaring their requirements in a way, eclipse/osgi expects it.

    For Issue 2, we had in the past a similar issue with referencing old update sites: #344

    I also see, that for the checkstyle repository, metadata for many different versions are downloaded from the update site. But I didn't see that for the other update sites (pmd, spotbugs, findbugs). So maybe, this is really a checkstyle issue? Do you have the same experience?

    Sure, we could remove those entries:

    <repository-reference location="https://checkstyle.org/eclipse-cs-update-site/" enabled="true" />
    <repository-reference location="https://pmd.github.io/pmd-eclipse-plugin-p2-site/" enabled="true" />
    <repository-reference location="https://findbugs.cs.umd.edu/eclipse/" enabled="true" />
    <repository-reference location="https://spotbugs.github.io/eclipse/" enabled="true" />

    But then, when someone wants to install m2e-code-quality, they will need to add manually all the update sites before installing m2e-code-quality... That is done automatically today.

    Also: What are the reasons, why you need to use eclipse 2024-03? Would an up to date version of eclipse fix your problems?

    As always: Pull requests are welcome.

  2. mhoffrog commented on May 11, 2026

    @mhoffrog
    Author

    @adangel Many thanks for your reply and explanation.

    The setups I am talking about are our company internal Oomph setups maintaining our customer solutions - see below.

    I also see, that for the checkstyle repository, metadata for many different versions are downloaded from the update site. But I didn't see that for the other update sites (pmd, spotbugs, findbugs). So maybe, this is really a checkstyle issue? Do you have the same experience?

    Yes, the Checkstyle composite repo reference is looking to be the main issue.

    Nevertheless builtin hard coded p2 repository references within a particular components P2 repo is not a good idea. For a couple of reasons we have to provide company internal Oomph setups for former Eclipse versions in a stable way, since we have commitments to our customers to maintain our solutions for long term periods. The problem with the "auto" references to other composite repos is that from one day to another those references let the P2 dependency resolver find and install dependency versions that did not have been resolved so far.
    It is understood that it simplifies the setup for m2e-code-quality on the one hand side but it introduces the non deterministic and non reproducible setups on the other hand side.

    As always: Pull requests are welcome.

    As soon as I find some time, I will try to come up with a PR to propose a probable improvement.

    Just guessing - what would be your thoughts about providing an alternative update site URL in parallel - e.g. https://m2e-code-quality.github.io/m2e-code-quality/raw without those references and with an appropriate doc about the differences and consequences for setup definitions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions