Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0" encoding="UTF-8"?>

<!-- Generated by maven-plugin-tools 3.3 on 2014-10-28 -->

<plugin>
  <name>Android NDK Maven Plugin - android-ndk-maven-plugin</name>
  <description>Maven Plugin for Android Development with the NDK</description>
  <groupId>com.simpligility.maven.plugins</groupId>
  <artifactId>android-ndk-maven-plugin</artifactId>
  <version>0.1.0</version>
  <goalPrefix>android-ndk</goalPrefix>
  <mojos>
    <mojo>
      <goal>clean</goal>
      <requiresDirectInvocation>false</requiresDirectInvocation>
      <requiresProject>true</requiresProject>
      <requiresReports>false</requiresReports>
      <aggregator>false</aggregator>
      <requiresOnline>false</requiresOnline>
      <inheritedByDefault>true</inheritedByDefault>
      <phase>clean</phase>
      <implementation>com.simpligility.maven.plugins.androidndk.phase00clean.NdkCleanMojo</implementation>
      <language>java</language>
      <instantiationStrategy>per-lookup</instantiationStrategy>
      <executionStrategy>once-per-session</executionStrategy>
      <threadSafe>false</threadSafe>
      <parameters>
        <parameter>
          <name>ndkBuildLibsOutputDirectory</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description></description>
        </parameter>
        <parameter>
          <name>ndkBuildObjOutputDirectory</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description></description>
        </parameter>
        <parameter>
          <name>skipBuildLibsOutputDirectory</name>
          <type>boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>Specifies whether the deletion of the libs/ folder structure should be skipped. This is by default set to skip (true) to avoid unwanted deletions of libraries already present in this structure.</description>
        </parameter>
        <parameter>
          <name>skipBuildObjsOutputDirectory</name>
          <type>boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>Specifies whether the obj/ build folder structure should be deleted.</description>
        </parameter>
        <parameter>
          <name>skipClean</name>
          <type>boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>Forces the clean process to be skipped.</description>
        </parameter>
      </parameters>
      <configuration>
        <ndkBuildLibsOutputDirectory implementation="java.io.File" default-value="${project.basedir}/libs">${android.nativeBuildLibsOutputDirectory}</ndkBuildLibsOutputDirectory>
        <ndkBuildObjOutputDirectory implementation="java.io.File" default-value="${project.basedir}/obj">${android.nativeBuildObjOutputDirectory}</ndkBuildObjOutputDirectory>
        <skipBuildLibsOutputDirectory implementation="boolean" default-value="true">${android.nativeBuildSkipCleanLibsOutputDirectory}</skipBuildLibsOutputDirectory>
        <skipBuildObjsOutputDirectory implementation="boolean" default-value="false">${android.nativeBuildSkipCleanLibsOutputDirectory}</skipBuildObjsOutputDirectory>
        <skipClean implementation="boolean" default-value="false">${android.nativeBuildSkipClean}</skipClean>
      </configuration>
    </mojo>
    <mojo>
      <goal>help</goal>
      <description>Display help information on android-ndk-maven-plugin.
Call mvn android-ndk:help -Ddetail=true -Dgoal=&lt;goal-name&gt; to display parameter details.</description>
      <requiresDirectInvocation>false</requiresDirectInvocation>
      <requiresProject>false</requiresProject>
      <requiresReports>false</requiresReports>
      <aggregator>false</aggregator>
      <requiresOnline>false</requiresOnline>
      <inheritedByDefault>true</inheritedByDefault>
      <implementation>com.simpligility.maven.plugins.androidndk.phase00clean.HelpMojo</implementation>
      <language>java</language>
      <instantiationStrategy>per-lookup</instantiationStrategy>
      <executionStrategy>once-per-session</executionStrategy>
      <threadSafe>true</threadSafe>
      <parameters>
        <parameter>
          <name>detail</name>
          <type>boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>If true, display all settable properties for each goal.</description>
        </parameter>
        <parameter>
          <name>goal</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The name of the goal for which to show help. If unspecified, all goals will be displayed.</description>
        </parameter>
        <parameter>
          <name>indentSize</name>
          <type>int</type>
          <required>false</required>
          <editable>true</editable>
          <description>The number of spaces per indentation level, should be positive.</description>
        </parameter>
        <parameter>
          <name>lineLength</name>
          <type>int</type>
          <required>false</required>
          <editable>true</editable>
          <description>The maximum length of a display line, should be positive.</description>
        </parameter>
      </parameters>
      <configuration>
        <detail implementation="boolean" default-value="false">${detail}</detail>
        <goal implementation="java.lang.String">${goal}</goal>
        <indentSize implementation="int" default-value="2">${indentSize}</indentSize>
        <lineLength implementation="int" default-value="80">${lineLength}</lineLength>
      </configuration>
    </mojo>
    <mojo>
      <goal>ndk-build</goal>
      <requiresDirectInvocation>false</requiresDirectInvocation>
      <requiresProject>true</requiresProject>
      <requiresReports>false</requiresReports>
      <aggregator>false</aggregator>
      <requiresOnline>false</requiresOnline>
      <inheritedByDefault>true</inheritedByDefault>
      <phase>compile</phase>
      <implementation>com.simpligility.maven.plugins.androidndk.phase05compile.NdkBuildMojo</implementation>
      <language>java</language>
      <instantiationStrategy>per-lookup</instantiationStrategy>
      <executionStrategy>once-per-session</executionStrategy>
      <threadSafe>false</threadSafe>
      <parameters>
        <parameter>
          <name>additionalCommandline</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>Specifies additional command line parameters to pass to ndk-build</description>
        </parameter>
        <parameter>
          <name>additionallyBuiltModules</name>
          <type>java.util.List</type>
          <required>false</required>
          <editable>true</editable>
          <description></description>
        </parameter>
        <parameter>
          <name>applicationMakefile</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>Specifies the application makefile to use for the build (if other than the default Application.mk).</description>
        </parameter>
        <parameter>
          <name>architectures</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>Defines the architectures for the NDK build - this is a space separated list (i.e x86 armeabi)</description>
        </parameter>
        <parameter>
          <name>architectureToolchainMappings</name>
          <type>com.simpligility.maven.plugins.androidndk.configuration.ArchitectureToolchainMappings</type>
          <required>false</required>
          <editable>true</editable>
          <description>Defines the architecture to toolchain mappings for the NDK build &lt;architectureToolchainMappings&gt; &lt;x86&gt;x86-4.7&lt;/x86&gt; &lt;armeabi&gt;arm-linux-androideabi-4.7&lt;/armeabi&gt; &lt;/architectureToolchainMappings&gt;</description>
        </parameter>
        <parameter>
          <name>attachHeaderFiles</name>
          <type>java.lang.Boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>Flag indicating whether the header files used in the build should be included and attached to the build as an additional artifact.</description>
        </parameter>
        <parameter>
          <name>buildWarningsRegularExpression</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>Defines the regular expression used to detect whether error/warning output from ndk-build is a minor compile warning or is actually an error which should cause the build to fail. If the pattern matches, the output from the compiler will not be considered an error and compile will be successful.</description>
        </parameter>
        <parameter>
          <name>classifier</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>Specifies the classifier with which the artifact should be stored in the repository</description>
        </parameter>
        <parameter>
          <name>clearNativeArtifacts</name>
          <type>java.lang.Boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>Flag indicating whether the NDK output directories (libs/&lt;architecture&gt; &amp; obj/...) should be cleared after build.</description>
        </parameter>
        <parameter>
          <name>finalLibraryName</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>Specifies the final name of the library output by the build (this allows the pom to override the default artifact name). The value should not include the &apos;lib&apos; prefix or filename extension (e.g. &apos;.so&apos;).</description>
        </parameter>
        <parameter>
          <name>headerFilesDirectives</name>
          <type>java.util.List</type>
          <required>false</required>
          <editable>true</editable>
          <description>Specifies the set of header files includes/excludes which should be used for bundling the exported header files. The below shows an example of how this can be used.
&lt;headerFilesDirectives&gt;
  &lt;headerFilesDirective&gt;
    &lt;directory&gt;${basedir}/jni/include&lt;/directory&gt;
    &lt;includes&gt;
      &lt;includes&gt;**\/*.h&lt;/include&gt;
    &lt;/includes&gt;
  &lt;headerFilesDirective&gt;
&lt;/headerFilesDirectives&gt;

If no headerFilesDirectives is specified, the default includes will be defined as shown below:

&lt;headerFilesDirectives&gt;
  &lt;headerFilesDirective&gt;
    &lt;directory&gt;${basedir}/jni&lt;/directory&gt;
    &lt;includes&gt;
      &lt;includes&gt;**\/*.h&lt;/include&gt;
    &lt;/includes&gt;
    &lt;excludes&gt;
      &lt;exclude&gt;**\/*.c&lt;/exclude&gt;
    &lt;/excludes&gt;
  &lt;headerFilesDirective&gt;
  [..]
&lt;/headerFilesDirectives&gt;
</description>
        </parameter>
        <parameter>
          <name>ignoreBuildWarnings</name>
          <type>java.lang.Boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>Flag indicating whether warnings should be ignored while compiling. If true, the build will not fail if warning are found during compile.</description>
        </parameter>
        <parameter>
          <name>makefile</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>Specifies the makefile to use for the build (if other than the default Android.mk).</description>
        </parameter>
        <parameter>
          <name>maxJobs</name>
          <type>java.lang.Boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>Flag indicating whether to use the max available jobs for the host machine</description>
        </parameter>
        <parameter>
          <name>ndkBuildExecutable</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>Allows for overriding the default ndk-build executable.</description>
        </parameter>
        <parameter>
          <name>ndkToolchain</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>Specifies the NDK toolchain to use for the build. This will be using the NDK_TOOLCHAIN define on the ndk-build commandline.</description>
        </parameter>
        <parameter>
          <name>systemProperties</name>
          <type>java.util.Map</type>
          <required>false</required>
          <editable>true</editable>
          <description>Defines additional system properties which should be exported to the ndk-build script. This

&lt;systemProperties&gt;
  &lt;propertyName&gt;propertyValue&lt;/propertyName&gt;
  &lt;build-target&gt;android&lt;/build-target&gt;
  [..]
&lt;/systemProperties&gt;
*</description>
        </parameter>
        <parameter>
          <name>target</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>Target to invoke on the native makefile.
</description>
        </parameter>
        <parameter>
          <name>useHeaderArchives</name>
          <type>java.lang.Boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>Flag indicating whether the header files for native, static library dependencies should be used. If true, the header archive for each statically linked dependency will be resolved.</description>
        </parameter>
        <parameter>
          <name>useLocalSrcIncludePaths</name>
          <type>java.lang.Boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>Flag indicating whether the make files last LOCAL_SRC_INCLUDES should be used for determining what header files to include. Setting this flag to true, overrides any defined header files directives. Note: By setting this flag to true, all header files used in the project will be added to the resulting header archive. This may be undesirable in most cases and is therefore turned off by default.</description>
        </parameter>
      </parameters>
      <configuration>
        <additionalCommandline implementation="java.lang.String">${android.ndk.build.additional-command-line}</additionalCommandline>
        <architectures implementation="java.lang.String">${android.ndk.build.architectures}</architectures>
        <attachHeaderFiles implementation="java.lang.Boolean" default-value="true">${android.ndk.build.attach-header-files}</attachHeaderFiles>
        <buildWarningsRegularExpression implementation="java.lang.String" default-value=".*[warning|note]: .*">${android.ndk.build.build-warnings-regular-expression}</buildWarningsRegularExpression>
        <classifier implementation="java.lang.String">${android.ndk.classifier}</classifier>
        <clearNativeArtifacts implementation="java.lang.Boolean" default-value="false"/>
        <finalLibraryName implementation="java.lang.String">${android.ndk.build.build.final-library-name}</finalLibraryName>
        <ignoreBuildWarnings implementation="java.lang.Boolean" default-value="true">${android.ndk.build.ignore-build-warnings}</ignoreBuildWarnings>
        <maxJobs implementation="java.lang.Boolean" default-value="false">${android.ndk.build.maxJobs}</maxJobs>
        <ndkBuildExecutable implementation="java.lang.String">${android.ndk.ndk-build-executable}</ndkBuildExecutable>
        <ndkToolchain implementation="java.lang.String">${android.ndk.build.ndk-toolchain}</ndkToolchain>
        <target implementation="java.lang.String">${android.ndk.target}</target>
        <useHeaderArchives implementation="java.lang.Boolean" default-value="true">${android.ndk.build.use-header-archive}</useHeaderArchives>
        <useLocalSrcIncludePaths implementation="java.lang.Boolean" default-value="false">${android.ndk.build.use-local-src-include-paths}</useLocalSrcIncludePaths>
      </configuration>
    </mojo>
  </mojos>
</plugin>
New to GrepCode? Check out our FAQ X