org.fusesource.hawtjni.maven
Class BuildMojo

java.lang.Object
  extended by AbstractMojo
      extended by org.fusesource.hawtjni.maven.BuildMojo

public class BuildMojo
extends AbstractMojo

This goal builds the JNI module which was previously generated with the generate goal. It adds the JNI module to the test resource path so that unit tests can load the freshly built JNI library.

Author:
Hiram Chirino

Field Summary
protected  ArtifactFactory artifactFactory
          Artifact factory, needed to download the package source file
protected  ArtifactResolver artifactResolver
          Artifact resolver, needed to download the package source file
protected  ArtifactRepository localRepository
          Local maven repository.
protected  MavenProject project
          The maven project.
protected  java.util.List remoteArtifactRepositories
          Remote repositories
 
Constructor Summary
BuildMojo()
           
 
Method Summary
 void downloadNativeSourcePackage(java.io.File buildDir)
           
 void execute()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

project

protected MavenProject project
The maven project.


remoteArtifactRepositories

protected java.util.List remoteArtifactRepositories
Remote repositories


localRepository

protected ArtifactRepository localRepository
Local maven repository.


artifactFactory

protected ArtifactFactory artifactFactory
Artifact factory, needed to download the package source file


artifactResolver

protected ArtifactResolver artifactResolver
Artifact resolver, needed to download the package source file

Constructor Detail

BuildMojo

public BuildMojo()
Method Detail

execute

public void execute()
             throws MojoExecutionException
Throws:
MojoExecutionException

downloadNativeSourcePackage

public void downloadNativeSourcePackage(java.io.File buildDir)
                                 throws MojoExecutionException
Throws:
MojoExecutionException


Copyright © 2009-2011 FuseSource, Corp.. All Rights Reserved.