Fork me on GitHub

Usage

Beyond fulfilling the required setup there is some minimal configuration of your POM needed:

  • Android NDK Maven Plugin to be added to the plugin section

  • extensions set to true for the plugin

  • usage of a supported packaging: so or a

A small example would be:

<project>
  <groupId>com.simpligility.android</groupId>
  <artifactId>native-example</artifactId>
  <version>1.0.0</version>
  <packaging>so</packaging>
  <build>
    <plugins>
      <plugin>
        <groupId>com.simpligility.maven.plugins</groupId>
        <artifactId>android-ndk-maven-plugin</artifactId>
        <version>1.0.0</version> <!-- use latest release -->
        <extensions>true</extensions>
      </plugin>
    </plugins>
  </build>
</project>

Check out examples documentation for more working setup and how to build them.