Search code examples
dockersonarqubesonarqube-ops

docker sonarqube checkdependency plugin


I am trying to install the checkdepency plugin using docker Sonarqube, and PostgreSQL. I am able to get the docker SonarQube with PostgreSQL up and running, but when I try to add the check-dependency-plugin, it fails to restart the container. Is there any way to install the plugin? I am using SonarQube version 5.4 and the official PostgreSQL image from dockerhub. When I try to deploy the plugin, I am getting the error below.

2016.04.27 13:13:07 INFO  web[o.e.plugins] [sonar-1461762758226] loaded [], sites []
2016.04.27 13:13:15 INFO  web[o.s.s.p.DefaultServerFileSystem] SonarQube home: /opt/sonarqube
2016.04.27 13:13:16 ERROR web[o.a.c.c.C.[.[.[/]] Exception sending context initialized event to listener instance of class org.sonar.server.platform.PlatformServletContextListener
java.lang.IllegalStateException: Unable to read plugin manifest from jar : /opt/sonarqube/extensions/plugins/sonar-dependency-check-1.0.3.jar
        at org.sonar.updatecenter.common.PluginManifest.<init>(PluginManifest.java:113) ~[sonar-update-center-common-1.13.jar:na]
        at org.sonar.core.platform.PluginInfo.create(PluginInfo.java:366) ~[sonar-core-5.4.jar:na]
        at org.sonar.server.plugins.ServerPluginRepository.loadPreInstalledPlugins(ServerPluginRepository.java:126) ~[sonar-server-5.4.jar:na]
        at org.sonar.server.plugins.ServerPluginRepository.start(ServerPluginRepository.java:103) ~[sonar-server-5.4.jar:na]

Please help me resolve the issue.


Solution

  • Your copy of JAR file is corrupted. The release downloaded at https://github.com/stevespringett/dependency-check-sonar-plugin/releases/tag/sonar-dependency-check-1.0.3 correctly supports recent versions of SonarQube.