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 dynamic access metadata used by the native image Build Report. The generated dynamic-access-metadata.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. §FS-maven-goal-surface.3, §FS-maven-native-image-builds.5.

  • 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