Class NativeBuildDynamicAccessMetadataMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.graalvm.buildtools.maven.AbstractNativeMojo
org.graalvm.buildtools.maven.NativeBuildDynamicAccessMetadataMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="generateDynamicAccessMetadata", defaultPhase=GENERATE_RESOURCES, requiresDependencyResolution=RUNTIME, requiresDependencyCollection=RUNTIME) public class NativeBuildDynamicAccessMetadataMojo extends AbstractNativeMojo
Generates a dynamic-access-metadata.json file used by the dynamic access tab of the native image Build Report. This json file contains the mapping of all classpath entries that exist in the "library-and-framework-list.json" to their transitive dependencies.

If "library-and-framework-list.json" doesn't exist in the used release of the GraalVM Reachability Metadata repository, this task does nothing.

The format of the generated JSON file conforms the following schema.

  • Constructor Details

    • NativeBuildDynamicAccessMetadataMojo

      public NativeBuildDynamicAccessMetadataMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException