Unable to load the mojo 'enforce' in the plugin 'org.kohsuke:access-modifier-checker:1.30' due to an API incompatibility

I tried with Java 11 as well getting below error. Please help

Compilation failure: Compilation failure:
[ERROR] java.nio.file.NoSuchFileException: /Jenkins_New/new_data/jenkins-plugin/target/classes/META-INF/annotations/org.kohsuke.accmod.Restricted
[ERROR] java.nio.file.NoSuchFileException: /Jenkins_New/new_data/jenkins-plugin/target/classes/META-INF/annotations/org.kohsuke.stapler.export.ExportedBean
[ERROR] java.nio.file.NoSuchFileException: /Jenkins_New/new_data/-jenkins-plugin/target/classes/META-INF/annotations/org.jenkinsci.Symbol
[ERROR] java.nio.file.NoSuchFileException: /Jenkins_New/new_data/-jenkins-plugin/target/classes/META-INF/annotations/hudson.Extension
[ERROR] → [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] MojoFailureException - Apache Maven - Apache Software Foundation