sonar-packaging-maven-plugin not compatible with sonar-plugin-api 5.3

1,233 views
Skip to first unread message

dbac200...@yahoo.com

unread,
Mar 14, 2016, 4:14:53 AM3/14/16
to SonarQube
Hi,

When I update my pom.xml to use

<dependency>

    <groupId>org.sonarsource.sonarqube</groupId>

    <artifactId>sonar-plugin-api</artifactId>

    <version>5.3</version>

    <scope>provided</scope>

</dependency>


It fails, with


[ERROR] Failed to execute goal org.codehaus.sonar:sonar-packaging-maven-plugin:1.13:check-dependencies (default-check-dependencies) on project sonar-plugin: org.codehaus.sonar:sonar-plugin-api should be declared in dependencies -> [Help 1]


When will the sonar-packaging-maven-plugin be updated ? 

Felipe Zorzo

unread,
Mar 14, 2016, 7:11:03 AM3/14/16
to SonarQube, dbac200...@yahoo.com
Hi.

It was updated months ago, but the groupId changed. You are using: 

<dependency>
    <groupId>org.codehaus.sonar</groupId>
    <artifactId>sonar-packaging-maven-plugin</artifactId>
    <version>1.13</version>
</dependency>

Please update to:

<dependency>
    <groupId>org.sonarsource.sonar-packaging-maven-plugin</groupId>
    <artifactId>sonar-packaging-maven-plugin</artifactId>
    <version>1.15</version>
</dependency>

dbac200...@yahoo.com

unread,
Mar 14, 2016, 7:28:43 AM3/14/16
to SonarQube, dbac200...@yahoo.com
Hi,

thanks for the hint.

When updating the sonar-packaging-maven-plugin to the new groupID and version 1.15 and using the sonar-plugin-api  5.3, I now get

[ERROR] Failed to execute goal org.sonarsource.sonar-packaging-maven-plugin:sonar-packaging-maven-plugin:1.15:check (default-check) on project sonar-plugin: Unsupported dependencies -> [Help 1]


Above that I can see


[INFO] --- sonar-packaging-maven-plugin:1.15:check (default-check) @ sonar-hipchat-plugin ---

[ERROR] This dependency must be declared with scope <provided>: commons-logging:commons-logging:jar


But I don't have commons-logging as dependency

<dependencies>

<dependency>

<groupId>org.sonarsource.sonarqube</groupId>

<artifactId>sonar-plugin-api</artifactId>

<version>5.3</version>

<scope>provided</scope>

</dependency>

<dependency>

<groupId>com.google.guava</groupId>

<artifactId>guava</artifactId>

<version>19.0</version>

</dependency>

<dependency>

<groupId>org.slf4j</groupId>

<artifactId>jcl-over-slf4j</artifactId>

<version>1.7.12</version>

</dependency>

<dependency>

<groupId>org.apache.httpcomponents</groupId>

<artifactId>httpclient</artifactId>

<version>4.5.1</version>

</dependency>

<dependency>

<groupId>com.google.code.gson</groupId>

<artifactId>gson</artifactId>

<version>2.4</version>

</dependency>

<dependency>

<groupId>org.apache.velocity</groupId>

<artifactId>velocity</artifactId>

<version>1.7</version>

</dependency>

</dependencies>

How can I define commons-logging as provided ? 

Simon Brandhof

unread,
Mar 15, 2016, 5:44:16 AM3/15/16
to dbac200...@yahoo.com, SonarQube
Hi,

commons-logging should not be packaged in the plugin as the SLF4J commons-logging bridge is used at runtime. You should define this dependency with the scope "provided".

Regards

--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/abd2816a-592d-4dff-8e10-6f67d06bfde4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Simon BRANDHOF | SonarSource
Tech Lead & Co-Founder
http://twitter.com/SimonBrandhof

sarra....@esprit.tn

unread,
Mar 21, 2018, 12:31:19 PM3/21/18
to SonarQube

 Failed to execute goal org.sonarsource.sonar-packaging-maven-plugin:sonar-packaging-maven-plugin:1.17:check (default-check) on project com.soprahr.sonarQube.test: The parameters 'pluginDescription' for goal org.sonarsource.sonar-packaging-maven-plugin:sonar-packaging-maven-plugin:1.17:check are missing or invalid -> [Help 1 ] 


i have this error please help me my pom is

  <modelVersion>4.0.0</modelVersion>
  <groupId>com.soprahr.sonarQube</groupId>
  <artifactId>com.soprahr.sonarQube.test</artifactId>
  <version>0.0.1-SNAPSHOT</version>
<packaging>sonar-plugin</packaging>

  <dependencies>
    <dependency>
      <groupId>org.sonarsource.sonarqube</groupId>
      <artifactId>sonar-plugin-api</artifactId>
      <!-- minimal version of SonarQube to support. Note that the groupId was "org.codehaus.sonar" before version 5.2 -->
      <version>7.0</version>
      <!-- mandatory scope -->
      <scope>provided</scope>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.sonarsource.sonar-packaging-maven-plugin</groupId>
        <artifactId>sonar-packaging-maven-plugin</artifactId>
        <version>1.17</version>
        <extensions>true</extensions>
        <configuration>
          <!-- the entry-point class that extends org.sonar.api.SonarPlugin -->
          <pluginClass>com.mycompany.sonar.reference.ExamplePlugin</pluginClass>
          
          <!-- advanced properties can be set here. See paragraph "Advanced Build Properties". -->
        </configuration>
      </plugin>
    </plugins>
  </build>
</project> 

G. Ann Campbell

unread,
Mar 21, 2018, 2:29:12 PM3/21/18
to SonarQube
Hi

This thread is two years old and, AFAICS unrelated to your post.

If you want to pursue this, please open a new thread and include in it what is unclear to you about the error message.


Ann

P.S. The standard courtesies (Hi, Thanks, ...) are appreciated in this group.
Reply all
Reply to author
Forward
0 new messages