HI Julien
I have gone through the readme file and removed all the package from eclipse and tried to do as per the instructions. I first ran the mvn compile in command prompt in the parent pom level but landed in below errors. its not clearing the core part.Please find the below errors.
Reactor Summary for SonarLint for Eclipse 5.6.0-SNAPSHOT:
[INFO]
[INFO] SonarLint for Eclipse … SUCCESS [ 4.418 s]
[INFO] SonarLint for Eclipse Core … FAILURE [ 13.685 s]
[INFO] SonarLint for Eclipse UI … SKIPPED
[INFO] SonarLint for Eclipse CDT … SKIPPED
[INFO] SonarLint for Eclipse JDT … SKIPPED
[INFO] SonarLint for Eclipse m2e integration … SKIPPED
[INFO] SonarLint for Eclipse (feature) … SKIPPED
[INFO] SonarLint for Eclipse (update-site) … SKIPPED
[INFO] target-platform for Eclipse 4.17 (2020-09) … SKIPPED
[INFO] SonarLint for Eclipse Core Tests … SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 46.603 s
[INFO] Finished at: 2021-02-21T11:43:56+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:2.0.0:compile (default-compile) on project org.sonarlint.eclipse.core: Compilation failure: Compilation failure:
[ERROR] C:\Users\SU20074103\Documents\sonar_package\sonarlint-eclipse-5.6.0.25634 _rawone\sonarlint-eclipse-5.6.0.25634\org.sonarlint.eclipse.core\src\org\sonarlint\eclipse\core\internal\notifications\NotificationsManager.java:[37]
[ERROR] import org.sonarsource.sonarlint.core.client.api.notifications.ServerNotificationListener;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The import org.sonarsource.sonarlint.core.client.api.notifications.ServerNotificationListener cannot be resolved
[ERROR] C:\Users\SU20074103\Documents\sonar_package\sonarlint-eclipse-5.6.0.25634 _rawone\sonarlint-eclipse-5.6.0.25634\org.sonarlint.eclipse.core\src\org\sonarlint\eclipse\core\internal\notifications\NotificationsManager.java:[38]
[ERROR] import org.sonarsource.sonarlint.core.notifications.ServerNotifications;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The import org.sonarsource.sonarlint.core.notifications.ServerNotifications cannot be resolved
[ERROR] C:\Users\SU20074103\Documents\sonar_package\sonarlint-eclipse-5.6.0.25634 _rawone\sonarlint-eclipse-5.6.0.25634\org.sonarlint.eclipse.core\src\org\sonarlint\eclipse\core\internal\notifications\NotificationsManager.java:[46]
[ERROR] private final Map<String, ServerNotificationListener> listeners = new HashMap<>();
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] ServerNotificationListener cannot be resolved to a type
[ERROR] C:\Users\SU20074103\Documents\sonar_package\sonarlint-eclipse-5.6.0.25634 _rawone\sonarlint-eclipse-5.6.0.25634\org.sonarlint.eclipse.core\src\org\sonarlint\eclipse\core\internal\notifications\NotificationsManager.java:[61]
[ERROR] public synchronized void subscribe(ISonarLintProject project, ServerNotificationListener listener) {
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] ServerNotificationListener cannot be resolved to a type
[ERROR] C:\Users\SU20074103\Documents\sonar_package\sonarlint-eclipse-5.6.0.25634 _rawone\sonarlint-eclipse-5.6.0.25634\org.sonarlint.eclipse.core\src\org\sonarlint\eclipse\core\internal\notifications\NotificationsManager.java:[76]
[ERROR] listeners.put(b.projectKey(), listener);
[ERROR] ^^^^^^^^^
[ERROR] ServerNotificationListener cannot be resolved to a type
[ERROR] C:\Users\SU20074103\Documents\sonar_package\sonarlint-eclipse-5.6.0.25634 _rawone\sonarlint-eclipse-5.6.0.25634\org.sonarlint.eclipse.core\src\org\sonarlint\eclipse\core\internal\notifications\NotificationsManager.java:[127]
[ERROR] subscriber.unsubscribe(listeners.remove(projectKey));
[ERROR] ^^^^^^^^^
[ERROR] ServerNotificationListener cannot be resolved to a type
[ERROR] C:\Users\SU20074103\Documents\sonar_package\sonarlint-eclipse-5.6.0.25634 _rawone\sonarlint-eclipse-5.6.0.25634\org.sonarlint.eclipse.core\src\org\sonarlint\eclipse\core\internal\notifications\NotificationsManager.java:[133]
[ERROR] public boolean subscribe(ISonarLintProject project, SonarLintProjectConfiguration config, ServerNotificationListener listener) {
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] ServerNotificationListener cannot be resolved to a type
[ERROR] C:\Users\SU20074103\Documents\sonar_package\sonarlint-eclipse-5.6.0.25634 _rawone\sonarlint-eclipse-5.6.0.25634\org.sonarlint.eclipse.core\src\org\sonarlint\eclipse\core\internal\notifications\NotificationsManager.java:[151]
[ERROR] ServerNotifications.get().register(configuration);
[ERROR] ^^^^^^^^^^^^^^^^^^^
[ERROR] ServerNotifications cannot be resolved
[ERROR] C:\Users\SU20074103\Documents\sonar_package\sonarlint-eclipse-5.6.0.25634 _rawone\sonarlint-eclipse-5.6.0.25634\org.sonarlint.eclipse.core\src\org\sonarlint\eclipse\core\internal\notifications\NotificationsManager.java:[156]
[ERROR] public void unsubscribe(ServerNotificationListener listener) {
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] ServerNotificationListener cannot be resolved to a type
[ERROR] C:\Users\SU20074103\Documents\sonar_package\sonarlint-eclipse-5.6.0.25634 _rawone\sonarlint-eclipse-5.6.0.25634\org.sonarlint.eclipse.core\src\org\sonarlint\eclipse\core\internal\notifications\NotificationsManager.java:[157]
[ERROR] ServerNotifications.get().remove(listener);
[ERROR] ^^^^^^^^^^^^^^^^^^^
[ERROR] ServerNotifications cannot be resolved
[ERROR] C:\Users\SU20074103\Documents\sonar_package\sonarlint-eclipse-5.6.0.25634 _rawone\sonarlint-eclipse-5.6.0.25634\org.sonarlint.eclipse.core\src\org\sonarlint\eclipse\core\internal\telemetry\SonarLintTelemetry.java:[42]
[ERROR] import org.sonarsource.sonarlint.core.telemetry.TelemetryClientAttributesProvider;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The import org.sonarsource.sonarlint.core.telemetry.TelemetryClientAttributesProvider cannot be resolved
[ERROR] C:\Users\SU20074103\Documents\sonar_package\sonarlint-eclipse-5.6.0.25634 _rawone\sonarlint-eclipse-5.6.0.25634\org.sonarlint.eclipse.core\src\org\sonarlint\eclipse\core\internal\telemetry\SonarLintTelemetry.java:[43]
[ERROR] import org.sonarsource.sonarlint.core.telemetry.TelemetryHttpClient;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The import org.sonarsource.sonarlint.core.telemetry.TelemetryHttpClient cannot be resolved
[ERROR] C:\Users\SU20074103\Documents\sonar_package\sonarlint-eclipse-5.6.0.25634 _rawone\sonarlint-eclipse-5.6.0.25634\org.sonarlint.eclipse.core\src\org\sonarlint\eclipse\core\internal\telemetry\SonarLintTelemetry.java:[91]
[ERROR] TelemetryHttpClient client = new TelemetryHttpClient(clientConfig, PRODUCT, SonarLintUtils.getPluginVersion(), ideVersionForTelemetry());
[ERROR] ^^^^^^^^^^^^^^^^^^^
[ERROR] TelemetryHttpClient cannot be resolved to a type
[ERROR] C:\Users\SU20074103\Documents\sonar_package\sonarlint-eclipse-5.6.0.25634 _rawone\sonarlint-eclipse-5.6.0.25634\org.sonarlint.eclipse.core\src\org\sonarlint\eclipse\core\internal\telemetry\SonarLintTelemetry.java:[91]
[ERROR] TelemetryHttpClient client = new TelemetryHttpClient(clientConfig, PRODUCT, SonarLintUtils.getPluginVersion(), ideVersionForTelemetry());
[ERROR] ^^^^^^^^^^^^^^^^^^^
[ERROR] TelemetryHttpClient cannot be resolved to a type
[ERROR] C:\Users\SU20074103\Documents\sonar_package\sonarlint-eclipse-5.6.0.25634 _rawone\sonarlint-eclipse-5.6.0.25634\org.sonarlint.eclipse.core\src\org\sonarlint\eclipse\core\internal\telemetry\SonarLintTelemetry.java:[119]
[ERROR] public TelemetryManager newTelemetryManager(Path path, TelemetryHttpClient client) {
[ERROR] ^^^^^^^^^^^^^^^^^^^
[ERROR] TelemetryHttpClient cannot be resolved to a type
[ERROR] C:\Users\SU20074103\Documents\sonar_package\sonarlint-eclipse-5.6.0.25634 _rawone\sonarlint-eclipse-5.6.0.25634\org.sonarlint.eclipse.core\src\org\sonarlint\eclipse\core\internal\telemetry\SonarLintTelemetry.java:[120]
[ERROR] return new TelemetryManager(path, client, new TelemetryClientAttributesProvider() {
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] TelemetryClientAttributesProvider cannot be resolved to a type
[ERROR] C:\Users\SU20074103\Documents\sonar_package\sonarlint-eclipse-5.6.0.25634 _rawone\sonarlint-eclipse-5.6.0.25634\org.sonarlint.eclipse.core\src\org\sonarlint\eclipse\core\internal\telemetry\SonarLintTelemetry.java:[123]
[ERROR] public boolean usesConnectedMode() {
[ERROR] ^^^^^^^^^^^^^^^^^^^
[ERROR] The method usesConnectedMode() of type new TelemetryClientAttributesProvider(){} must override or implement a supertype method
[ERROR] C:\Users\SU20074103\Documents\sonar_package\sonarlint-eclipse-5.6.0.25634 _rawone\sonarlint-eclipse-5.6.0.25634\org.sonarlint.eclipse.core\src\org\sonarlint\eclipse\core\internal\telemetry\SonarLintTelemetry.java:[128]
[ERROR] public boolean useSonarCloud() {
[ERROR] ^^^^^^^^^^^^^^^
[ERROR] The method useSonarCloud() of type new TelemetryClientAttributesProvider(){} must override or implement a supertype method
[ERROR] C:\Users\SU20074103\Documents\sonar_package\sonarlint-eclipse-5.6.0.25634 _rawone\sonarlint-eclipse-5.6.0.25634\org.sonarlint.eclipse.core\src\org\sonarlint\eclipse\core\internal\telemetry\SonarLintTelemetry.java:[133]
[ERROR] public Optional nodeVersion() {
[ERROR] ^^^^^^^^^^^^^
[ERROR] The method nodeVersion() of type new TelemetryClientAttributesProvider(){} must override or implement a supertype method
[ERROR] C:\Users\SU20074103\Documents\sonar_package\sonarlint-eclipse-5.6.0.25634 _rawone\sonarlint-eclipse-5.6.0.25634\org.sonarlint.eclipse.core\src\org\sonarlint\eclipse\core\internal\telemetry\SonarLintTelemetry.java:[138]
[ERROR] public boolean devNotificationsDisabled() {
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The method devNotificationsDisabled() of type new TelemetryClientAttributesProvider(){} must override or implement a supertype method
[ERROR] C:\Users\SU20074103\Documents\sonar_package\sonarlint-eclipse-5.6.0.25634 _rawone\sonarlint-eclipse-5.6.0.25634\org.sonarlint.eclipse.core\src\org\sonarlint\eclipse\core\internal\telemetry\SonarLintTelemetry.java:[193]
[ERROR] telemetry.devNotificationsReceived(eventType);
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The method devNotificationsReceived(String) is undefined for the type TelemetryManager
[ERROR] C:\Users\SU20074103\Documents\sonar_package\sonarlint-eclipse-5.6.0.25634 _rawone\sonarlint-eclipse-5.6.0.25634\org.sonarlint.eclipse.core\src\org\sonarlint\eclipse\core\internal\telemetry\SonarLintTelemetry.java:[199]
[ERROR] telemetry.devNotificationsClicked(eventType);
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The method devNotificationsClicked(String) is undefined for the type TelemetryManager
[ERROR] C:\Users\SU20074103\Documents\sonar_package\sonarlint-eclipse-5.6.0.25634 _rawone\sonarlint-eclipse-5.6.0.25634\org.sonarlint.eclipse.core\src\org\sonarlint\eclipse\core\internal\engine\connected\ConnectedEngineFacade.java:[82]
[ERROR] import org.sonarsource.sonarlint.core.notifications.ServerNotifications;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The import org.sonarsource.sonarlint.core.notifications.ServerNotifications cannot be resolved
[ERROR] C:\Users\SU20074103\Documents\sonar_package\sonarlint-eclipse-5.6.0.25634 _rawone\sonarlint-eclipse-5.6.0.25634\org.sonarlint.eclipse.core\src\org\sonarlint\eclipse\core\internal\engine\connected\ConnectedEngineFacade.java:[537]
[ERROR] return ServerNotifications.get().isSupported(builder.build());
[ERROR] ^^^^^^^^^^^^^^^^^^^
[ERROR] ServerNotifications cannot be resolved
[ERROR] C:\Users\SU20074103\Documents\sonar_package\sonarlint-eclipse-5.6.0.25634 _rawone\sonarlint-eclipse-5.6.0.25634\org.sonarlint.eclipse.core\src\org\sonarlint\eclipse\core\internal\engine\connected\ConnectedEngineFacade.java:[545]
[ERROR] return ServerNotifications.get().isSupported(getConfig());
[ERROR] ^^^^^^^^^^^^^^^^^^^
[ERROR] ServerNotifications cannot be resolved
[ERROR] C:\Users\SU20074103\Documents\sonar_package\sonarlint-eclipse-5.6.0.25634 _rawone\sonarlint-eclipse-5.6.0.25634\org.sonarlint.eclipse.core\src\org\sonarlint\eclipse\core\internal\notifications\ListenerFactory.java:[23]
[ERROR] import org.sonarsource.sonarlint.core.client.api.notifications.ServerNotificationListener;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The import org.sonarsource.sonarlint.core.client.api.notifications.ServerNotificationListener cannot be resolved
[ERROR] C:\Users\SU20074103\Documents\sonar_package\sonarlint-eclipse-5.6.0.25634 _rawone\sonarlint-eclipse-5.6.0.25634\org.sonarlint.eclipse.core\src\org\sonarlint\eclipse\core\internal\notifications\ListenerFactory.java:[27]
[ERROR] ServerNotificationListener create(IConnectedEngineFacade s);
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] ServerNotificationListener cannot be resolved to a type
[ERROR] 27 problems (27 errors)
[ERROR] → [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :org.sonarlint.eclipse.core
I think its cause of the below two jars.
org.sonarlint.eclipse.core,
org.sonarsource.sonarlint.core.sonarlint-client-api
the mentioned version 4.15 is not available. Please check once and help me to resolve the issue. we are into huge trouble cause this has been a week am after this error only. our deliverables are getting impacted. Please help me to resolve this.
Thanks
Susil