Class WriteArgsFileMojo

All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="write-args-file", requiresDependencyResolution=RUNTIME, requiresDependencyCollection=RUNTIME) public class WriteArgsFileMojo extends NativeCompileNoForkMojo
Writes the native-image arguments for this project to an args file that can be reused outside Maven. §FS-maven-goal-surface.3, §FS-maven-native-image-builds.7, §FS-maven-resources-and-metadata.2. The path to the args file is stored in the project properties under the key graalvm.native-image.args-file.
Since:
0.9.21
  • Field Details

  • Constructor Details

    • WriteArgsFileMojo

      public WriteArgsFileMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Specified by:
      execute in interface org.apache.maven.plugin.Mojo
      Overrides:
      execute in class NativeCompileNoForkMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException