Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.0.2:copy (copy) on project sonarlint-core: Unable to find/resolve artifact.

593 views
Skip to first unread message

rajsinghma...@gmail.com

unread,
Mar 29, 2018, 12:45:15 PM3/29/18
to SonarLint
Hello


PROBLEM BACKGROUND:

I am trying one POC and I need to integrate new grammar for some languages(for which grammar jars are already created by me) with sonar-lint plugin for eclipse.

I downloaded the sonar-lint eclipse project and while analysing the code I found that changes are required in sonarlint-core project.

Hence, I decided to import the project in eclipse but could not import it without zero issues.



PROBLEM:

When I do mvn clean verify I get the error.

It seems that sonar-cfamily-plugin is not present in maven repository.I have checked this at maven repository.


ERROR LOGS IN CONSOLE:


Could not find artifact com.sonarsource.cpp:sonar-cfamily-plugin:jar:5.0.0.9359 in central (https://repo.maven.apache.org/maven2)


[INFO] --- maven-dependency-plugin:3.0.2:copy (copy) @ sonarlint-core ---


[INFO] Configured Artifact: org.sonarsource.java:sonar-java-plugin:5.0.1.12818:jar


[INFO] Configured Artifact: org.sonarsource.sonarqube:sonar-xoo-plugin:7.0-RC1:jar


[INFO] Configured Artifact: org.sonarsource.javascript:sonar-javascript-plugin:4.0.0.5862:jar


[INFO] Configured Artifact: org.sonarsource.php:sonar-php-plugin:2.12.0.2871:jar


[INFO] Configured Artifact: org.sonarsource.python:sonar-python-plugin:1.8.0.1496:jar


[INFO] Configured Artifact: com.sonarsource.cpp:sonar-cfamily-plugin:5.0.0.9359:jar


[INFO] Downloading: https://repo.maven.apache.org/maven2/com/sonarsource/cpp/sonar-cfamily-plugin/5.0.0.9359/sonar-cfamily-plugin-5.0.0.9359.pom


[WARNING] The POM for com.sonarsource.cpp:sonar-cfamily-plugin:jar:5.0.0.9359 is missing, no dependency information available


[INFO] Downloading: https://repo.maven.apache.org/maven2/com/sonarsource/cpp/sonar-cfamily-plugin/5.0.0.9359/sonar-cfamily-plugin-5.0.0.9359.jar


[INFO] ------------------------------------------------------------------------


[INFO] Reactor Summary:


[INFO]


[INFO] SonarLint Core ..................................... SUCCESS [ 2.340 s]


[INFO] SonarLint Core - Client API ........................ SUCCESS [ 7.855 s]


[INFO] SonarLint Core - Implementation .................... FAILURE [ 4.193 s]


[INFO] SonarLint Daemon Protocol .......................... SKIPPED


[INFO] SonarLint Daemon ................................... SKIPPED


[INFO] SonarLint Language Server .......................... SKIPPED


[INFO] SonarLint Core - Rule Extractor Utility ............ SKIPPED


[INFO] ------------------------------------------------------------------------


[INFO] BUILD FAILURE


[INFO] ------------------------------------------------------------------------


[INFO] Total time: 15.999 s


[INFO] Finished at: 2018-03-29T17:19:46+05:30


[INFO] Final Memory: 38M/191M


[INFO] ------------------------------------------------------------------------


[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.0.2:copy (copy) on project sonarlint-core: Unable to find/resolve artifact. Could not find artifact com.sonarsource.cpp:sonar-cfamily-plugin:jar:5.0.0.9359 in central (https://repo.maven.apache.org/maven2) -> [Help 1]

Julien HENRY

unread,
Mar 30, 2018, 3:20:27 AM3/30/18
to rajsinghma...@gmail.com, SonarLint
Hi,

We have some tests to check that SonarLint works fine with our commercial C++ analyzer. Since this is a commercial plugin, it is not publicly available on our Maven repository.

I will create a ticket to improve that (like moving those tests to integration tests). In the meantime, for your POC, simply remove the commercial dependencies and build with skip tests (-DskipTests)

++

Julien Henry | SonarSource

Developer

https://sonarsource.com


--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/1f40b939-b05a-4b6c-8794-269874f7e551%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages