Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added key point of proposal

...

  • compile-time checks for plugin metadata, with enums for some annotations
  • inheritance support
  • annotations are supported in most IDEs, providing code-completion and syntactic checks

see plexus-component-annotations for an example of such a work done on Plexus.

Existing implementations

Multiple implementations of such annotations exist:

Proposal

Annotations:

  • 4 annotations: Mojo, MojoExecute, MojoParameter and MojoComponent
  • java package: org.apache.maven.tools.plugin.annotations (consistent with maven-plugin-tools-api
  • component: maven-plugin-tools-annotations in plugin-tools

Extractor: addition to maven-plugin-tools-javaWIP