简体   繁体   中英

Specifying version of Sonar plugin

I have a Maven multi-module project and as part of my build I execute

mvn sonar:sonar

I get some unexpected behaviour with a particular maven plugin that there is no need to go into here and after a lot of debugging and trial-and-error, I decided to tweak the particular plugin in question to add some debugging. The plugin in question is the sonar javascript plugin ( https://github.com/SonarSource/sonar-javascript ).

I cloned the git repo, incremented the version to 2.16 (latest available is 2.15), modified a logging statement, executed mvn install. Then I went back to my project hoping that when I executed mvn sonar:sonar it would simply pick up the latest version of this plugin available on my local repo. It didn't. I tried adding this to my pom:

      <plugin>
        <groupId>org.sonarsource.javascript</groupId>
        <artifactId>javascript</artifactId>
        <version>2.16</version>
      </plugin>

Still nothing. The logging statement is unchanged.

So how can I get the sonar execution to pick up my locally installed version of the plugin?

Just install the plugin on your SonarQube server.

Changing the plugin source means that you'll be on your own from their on though. If you've got legitimate issues/feedback with the JavaScript Plugin, then reach out to their maintainers on the SonarQube Google group . Constructive feedback will be heard, you'll get a chance to contribute directly to the sonar-javascript project, and the community we'll be able to benefit from your improvement(s) (rather than you flying solo with custom changes).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM