Class NativeCompileNoForkMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
DeprecatedNativeBuildMojo, NativeCompileMojo, WriteArgsFileMojo

@Mojo(name="compile-no-fork", defaultPhase=PACKAGE, requiresDependencyResolution=RUNTIME, requiresDependencyCollection=RUNTIME) public class NativeCompileNoForkMojo extends AbstractNativeImageMojo
Builds a native executable in the current Maven lifecycle without forking a separate Maven build. §FS-maven-goal-surface.1, §FS-maven-goal-surface.4. It also owns main-class discovery, skipping, generated resources, dynamic access metadata, and base SBOM behavior. §FS-maven-native-image-builds.1, §FS-maven-native-image-builds.2, §FS-maven-native-image-builds.4, §FS-maven-native-image-builds.5, §FS-maven-native-image-builds.6.
  • Field Details

  • Constructor Details

    • NativeCompileNoForkMojo

      public NativeCompileNoForkMojo()
  • Method Details

    • getDependencyScopes

      protected List<String> getDependencyScopes()
      Specified by:
      getDependencyScopes in class AbstractNativeImageMojo
    • execute

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