Class NativeJavahMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.natives.plugin.AbstractNativeMojo
org.codehaus.mojo.natives.plugin.NativeJavahMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Deprecated @Mojo(name="javah", defaultPhase=GENERATE_SOURCES, requiresDependencyResolution=COMPILE) public class NativeJavahMojo extends AbstractNativeMojo
Deprecated.
The javah tool was removed in Java 10, so this goal fails on Java 10 and later. Let the maven-compiler-plugin write the header files instead: set its headerOutputDirectory parameter (the -h option of javac, available since Java 8). This goal is removed in the next major version.
Generate JNI include files based on a set of class names.
  • Field Details

    • javahOutputDirectory

      @Parameter(defaultValue="${project.build.directory}/native/javah", required=true) protected File javahOutputDirectory
      Deprecated.
      Where to place javah generated file
      Since:
      1.0-alpha-2
  • Constructor Details

    • NativeJavahMojo

      @Inject public NativeJavahMojo(EnvFactoryManager envFactoryManager, JavahManager manager, org.apache.maven.project.MavenProjectHelper projectHelper)
      Deprecated.
  • Method Details

    • execute

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

      protected JavahConfiguration getJavahConfiguration()
      Deprecated.
      Internal only for test harness purpose
      Returns:
    • getProject

      protected org.apache.maven.project.MavenProject getProject()
      Deprecated.
      Internal for unit test only
      Overrides:
      getProject in class AbstractNativeMojo