Installation of 10.8.0 via Tycho failing because of missing sonarlint-java-client-osgi version

We are building our own Eclipse distribution with Tycho.

Our target platform contains:

    <location includeMode="planner" includeAllPlatforms="false" includeSource="true" includeConfigurePhase="false" type="InstallableUnit">
      <unit id="org.sonarlint.eclipse.feature.feature.group" version="10.5.0.82112"/>
      <repository location="https://eclipse-uc.sonarlint.org/10.5.0.82112"/>
    </location>

Minimal reproducer on GitHub:

Now when trying to update to 10.8.0.82289 (target platform file content):

    <location includeMode="planner" includeAllPlatforms="false" includeSource="true" includeConfigurePhase="false" type="InstallableUnit">
      <unit id="org.sonarlint.eclipse.feature.feature.group" version="10.8.0.82289"/>
      <repository location="https://eclipse-uc.sonarlint.org/10.8.0.82289"/>
    </location>

The build is failing with:

[INFO] --------------------< org.acme.eide:org.acme.eide >---------------------
[INFO] Building org.acme.eide 1.0.0-SNAPSHOT
[INFO] -------------------------[ eclipse-repository ]-------------------------
Downloading from central: https://repo.maven.apache.org/maven2/com/google/code/gson/gson/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/com/google/code/gson/gson/maven-metadata.xml (1.4 kB at 69 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/sonarsource/sonarlint/core/sonarlint-java-client-osgi/10.7.1.79146/sonarlint-java-client-osgi-10.7.1.79146.pom
[WARNING] The POM for org.sonarsource.sonarlint.core:sonarlint-java-client-osgi:jar:10.7.1.79146 is missing, no dependency information available
Downloading from central: https://repo.maven.apache.org/maven2/org/sonarsource/sonarlint/core/sonarlint-java-client-osgi/10.7.1.79146/sonarlint-java-client-osgi-10.7.1.79146.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  23.210 s
[INFO] Finished at: 2024-10-10T15:18:01+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project org.acme.eide: Could not resolve dependencies for project org.acme.eide:org.acme.eide:eclipse-repository:1.0.0-SNAPSHOT: Could not find artifact org.sonarsource.sonarlint.core:sonarlint-java-client-osgi:jar:10.7.1.79146 in central (https://repo.maven.apache.org/maven2) -> [Help 1]

Isn’t the version of org.sonarsource.sonarlint.core:sonarlint-java-client-osgi missing on maven central?

I see the bundle org.sonarsource.sonarlint.core.sonarlint-java-client-osgi present with that version on the https://eclipse-uc.sonarlint.org/10.8.0.82289 P2 update site:

But I have no idea how to instruct Tycho to consume this instead of trying to get in from Maven central.

I have pushed my reproducer on a branch sonarlint-update:

Running mvn verify with java 21 in the eide/ folder is enough to see the error.

Hi @jmini,

thanks for reaching out. There is currently an issue and the latest released version of SonarLint Core and all its modules were not synced to Maven Central, we are currently working on it.

Currently, SonarLint for Eclipse can not be used as a dependency for 10.8, but using it as an actual plug-in should be fine. We will provide an update once this is fixed or an updated version of SonarLint Core is uploaded to Maven Central!

cc @Kirill_Knize

Best,
Tobias

1 Like

Thank you for the feedback.

We wait until the promotion of releases is fixed on Maven Central.

Hi @jmini,

I was absent for quite some time now. Please have a look if it works now as I’ve seen that the artifact is at least listed at Maven Central. If this is not the case, we have to await the release of the next version but I due to my being off I cannot yet tell you when the next release is coming.

Best,
Tobias

@jmini just fyi the version of SLCORE you use for SLE 10.8 was not uploaded to Maven Central, I was mistaken, but the one for the next release of SLE is. I will ping you once the new version of SLE is released.

Thank you very much for this feedback. We will wait until the next SonarLint version for Eclipse is available.

Hey @jmini,

just to let you know to be not confused, SonarLint for Eclipse 10.9 was released but still contains the old SonarLint CORE dependency that is not on Maven Central.
The next release is scheduled for the end of November / early December to contain a new SonarLint CORE artifact that is then definitely uploaded to Maven Central!

Best,
Tobias

Indeed 10.9.1.82333 is broken as well. Failing in maven tycho with:

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project X: Could not resolve dependencies for project X: Could not find artifact org.sonarsource.sonarlint.core:sonarlint-java-client-osgi:jar:10.7.2.79501

Hey @jmini,

yeah this was just a patch and also patched the version of SLCORE OSGi artifact so it was affected from the same issue that didn’t let the old version to be uploaded to Maven Central.

In the meantime it is fixed and will come with the next release for sure :smile:

Best,
Tobias

1 Like

Hey @jmini,

we just released SonarQube of Eclipse 10.10 :partying_face:
The used SLCORE OSGi version is also uploaded to Maven Central.

Best,
Tobias

The build looks better. Thank you.
We are performing some tests before doing the rollout of version 10.10.x for our team.

1 Like