jade-native:javah

Generate jni include files based on a set of class names @author Dan T. Tran @author Fred Simon @version $Id: NativeJavahMojo.java 2419 2006-09-28 14:29:06Z dantran $

Mojo Attributes:

  • Requires a Maven 2.0 project to execute.
  • Requires dependency resolution of artifacts in scope: compile
  • Automatically executes within the lifecycle phase: generate-sources

Required Parameters

Name Type Description
implementation String Javah Provider Default value is default.
outputDirectory File Generated native source files go here Default value is ${project.build.directory}/native/javah.

Optional Parameters

Name Type Description
projectHelper MavenProjectHelper project-helper instance, used to make addition of resources simpler
artifactResolver ArtifactResolver Used to look up Artifacts in the local or remote repository.
artifactFactory ArtifactFactory Used to look up Artifacts in the local or remote repository.
localRepository ArtifactRepository The local repository
pluginArtifacts Artifact> The plugin dependency artifacts
maven2AntManager Maven2AntManager The manager to link maven project with an Ant project.
nameProvider ProjectNameProvider No description.
classNames String> List of class names to generate native files. Default is all JNI classes available in the classpath excluding the transitive dependencies, jars with test scope and provided scope
outputFileName String if configured will be combined with outputDirectory to pass into javah's -o option
verbose boolean Enable javah verbose mode Default value is false.

Parameter Details

projectHelper project-helper instance, used to make addition of resources simpler
  • Type: org.apache.maven.project.MavenProjectHelper
  • Required: No

artifactResolver Used to look up Artifacts in the local or remote repository.
  • Type: org.apache.maven.artifact.resolver.ArtifactResolver
  • Required: No

artifactFactory Used to look up Artifacts in the local or remote repository.
  • Type: org.apache.maven.artifact.factory.ArtifactFactory
  • Required: No

localRepository The local repository
  • Type: org.apache.maven.artifact.repository.ArtifactRepository
  • Required: No
  • Expression: ${localRepository}

pluginArtifacts The plugin dependency artifacts
  • Type: java.util.List<org.apache.maven.artifact.Artifact>
  • Required: No
  • Expression: ${plugin.artifacts}

maven2AntManager The manager to link maven project with an Ant project.
  • Type: org.jfrog.jade.plugins.common.ant.Maven2AntManager
  • Required: No

nameProvider No Description.
  • Type: org.jfrog.jade.plugins.common.naming.ProjectNameProvider
  • Required: No

implementation Javah Provider
  • Type: java.lang.String
  • Required: Yes
  • Default: default

classNames List of class names to generate native files. Default is all JNI classes available in the classpath excluding the transitive dependencies, jars with test scope and provided scope
  • Type: java.util.List<java.lang.String>
  • Required: No

outputDirectory Generated native source files go here
  • Type: java.io.File
  • Required: Yes
  • Default: ${project.build.directory}/native/javah

outputFileName if configured will be combined with outputDirectory to pass into javah's -o option
  • Type: java.lang.String
  • Required: No

verbose Enable javah verbose mode
  • Type: boolean
  • Required: No
  • Default: false