Metadata Generation Issue with Plexus Plugin for Checker Framework Annotations

20 views
Skip to first unread message

Rohan Jha

unread,
Jul 19, 2024, 2:15:23 AM7/19/24
to mojohaus-dev
Description: I am encountering an issue with the Plexus Component Metadata plugin in my Maven project. The plugin is failing to generate metadata for correct Java syntax when using Checker Framework annotations, particularly @ArrayLen.

Problem Description: The issue arises with the @ArrayLen annotation and potentially other Checker Framework annotations. Despite using correct Java syntax, the Plexus Component Metadata plugin fails to generate the necessary metadata.

Error Messages:  Error generating metadata: : Failed to extract descriptors: syntax error @[43,40] in file:/home/rohanjha/OpenSourcProjects/checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/DefaultConfiguration.java -> [Help 1]

Referred line :

 /** Constant for optimization. */

private static final Configuration @ArrayLen(0) [] EMPTY_CONFIGURATION_ARRAY =
new Configuration[0];

Environment Details:

  • Maven version: 3.8.4
  • Plexus Component Metadata Plugin version: 2.2.0
  • Checker Framework version: 3.44.0
  • Java version: 11
  • Operating System: Ubuntu 20.04

Reply all
Reply to author
Forward
0 new messages