Cannot build SonarLint-Core because CFamily plugin not resolved

Hello,

I’m trying to build sonarlint-core without success. There are references in the POMs to that maven module, which is not available in any maven repo I know :

<artifactItem>
	<groupId>com.sonarsource.cpp</groupId>
	<artifactId>sonar-cfamily-plugin</artifactId>
	<version>5.0.0.9359</version>
	<type>jar</type>
</artifactItem>

The error during the build :

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.0.2:copy (copy) on project sonarlint-daemon: Unable to find/resolve artifact.: 
Could not find artifact com.sonarsource.cpp:sonar-cfamily-plugin:jar:5.0.0.9359 
in repox.jfrog.io (https://repox.jfrog.io/repox) 

Is there a specific repo to configure in the maven settings ?

Thanks,

How to reproduce ?

  1. Clone the git repo of sonarlint core
  2. mvn clean install

Hi,

The CFamily plugin is a commercial plugin, it’s only available in a private repository.

You can make the build pass by removing the sonar-cfamily-plugin and sonar-license-plugin in daemon/pom.xml.

Cheers,
Janos

1 Like