Class PackageJarMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.fusesource.hawtjni.maven.PackageJarMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
@Mojo(name="package-jar",
defaultPhase=PREPARE_PACKAGE)
public class PackageJarMojo
extends org.apache.maven.plugin.AbstractMojo
This goal allows allows you to package the JNI library created by build goal
in a JAR which the HawtJNI runtime can unpack when the library needs to be
loaded.
This platform specific jar is attached with a classifier which matches the
current platform.
- Author:
- Hiram Chirino
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.maven.project.MavenProjectThe maven project.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()getNativeCodeValue(org.fusesource.hawtjni.runtime.Library library) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
project
@Parameter(defaultValue="${project}", readonly=true) protected org.apache.maven.project.MavenProject projectThe maven project.
-
-
Constructor Details
-
PackageJarMojo
public PackageJarMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getNativeCodeValue
-
getOsgiOSName
-
getOsgiProcessor
-