felipebz / zpa

Parser and static code analysis tool for PL/SQL and Oracle SQL.
https://zpa.felipebz.com
GNU Lesser General Public License v3.0
211 stars 77 forks source link

Custom plugin: sonarqube crashes #88

Closed jleendertse closed 5 years ago

jleendertse commented 5 years ago

I managed to create a jar file with the custom plugin.

It should be documented in the Wiki that the class PlSqlCustomRulesPluginTest should be adapted to the new repository name and repository key. Also number of check classes has to be adapted to the actual one. Also the pluginKey entry in the pom file has to be adapted.

But when the created jar file is placed in the SONARQUBE_HOME/extensions/plugins directory, and sonarqube is restarted, it crashes. The jar file has in the manifest file the plugin-base defined(plsqlopen). The jar file only contains the classes of package com.company.plsql.

Do you have any idea what is wrong?

jleendertse commented 5 years ago

Issue is solved. I forgot to include the Rule annotation in the check.

Documentation remark remains.