Fork me on GitHub

Plugin Details

This report describes goals, parameters details, requirements and sample usage of this plugin.

Goals

Goals available for this plugin:

Goal Description
native:compile Compile source files into native object files
native:compile-message Compile Windows message files
native:help Display help information on native-maven-plugin.
Call mvn native:help -Ddetail=true -Dgoal=<goal-name> to display parameter details.
native:inczip Prepare include file bundle to be attached to maven for deployment purpose
native:initialize Initialize build lifecycle
native:javah Generate JNI include files based on a set of class names
native:link Link all previously built object and dependent library files into final build artifact
native:manifest Embeds a Visual Studio manifest file into a generated executable
native:ranlib ranlib a Unix linker output file
native:resource-compile Compile Windows resource files
native:unzipinc Unpack any .inczip dependencies to be included as system include path

System Requirements

The following specifies the minimum requirements to run this Maven plugin:

Maven 3.5.4
JDK 1.8

System Requirements History

The following specifies the minimum requirements to run this Maven plugin for historical versions:

Plugin Version Maven JDK
from 1.0-M1 to 1.0.0 3.5.4 8
1.0-alpha-11 3.0.5 7
1.0-alpha-9 - 7
from 1.0-alpha-3 to 1.0-alpha-8 - 1.4
from 1.0-alpha-1 to 1.0-alpha-2 - -

Usage

You should specify the version in your project's plugin configuration:

<project>
  ...
  <build>
    <!-- To define the plugin version in your parent POM -->
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>native-maven-plugin</artifactId>
          <version>1.0.0</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>native-maven-plugin</artifactId>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

For more information, see "Guide to Configuring Plug-ins"