Skip to content

validate-code-format fails with ClassNotFoundException: com.sun.tools.javac.tree.JCTree$JCAnyPattern #346

@centfox

Description

@centfox

What steps will reproduce the problem?
Steps to reproduce the behavior:

  1. Use the latest version 5.5 in a Java 17 project.

What is the expected output?
Should work normal.
What happens instead?
It was working normal till 5.4. But now gives error:
Failed to execute goal com.cosium.code:git-code-format-maven-plugin:5.5:validate-code-format (validate-code-format) on project order-feed-forwarder: Execution validate-code-format of goal com.cosium.code:git-code-format-maven-plugin:5.5:validate-code-format failed: A required class was missing while executing com.cosium.code:git-code-format-maven-plugin:5.5:validate-code-format: com/sun/tools/javac/tree/JCTree$JCAnyPattern
Environment:

  • OS: Window 11
  • Git version: 2.52.0.windows.1
  • git-code-format-maven-plugin version: 5.5
  • Maven version: 3.9.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions