Skip to content

Custom Rules built with ZPA 4.0.0 fail to load in ZPA-CLI 3.0.0 #63

@FBRACHT-ABD

Description

@FBRACHT-ABD

When building custom PL/SQL rules against ZPA 4.0.0 and trying to run them with ZPA-CLI 3.0.0, the CLI fails to start with a NoClassDefFoundError:

Exception in thread "main" java.lang.NoClassDefFoundError: org/sonar/plugins/plsqlopen/api/checks/PlSqlCheck
	at com.company.plsql.PlSqlCustomRulesDefinition.checkClasses(PlSqlCustomRulesDefinition.java:19)
	at br.com.felipezorzo.zpa.cli.Main.run(Main.kt:121)
	at br.com.felipezorzo.zpa.cli.MainKt.main(Main.kt:204)
Caused by: java.lang.ClassNotFoundException: org.sonar.plugins.plsqlopen.api.checks.PlSqlCheck

The same CLI and project setup works fine without custom rules.
The issue only appears when adding a plugin built with ZPA 4.0.0 to zpa-cli-3.0.0/plugins.
When downgrading to ZPA-CLI 2.2.0 and ZPA 3.0.0 it works fine too.

Is there a possibility that there is a isssue with the dependencies?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions