Fork me on GitHub

Usage

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

  • Android Maven Plugin to be added to the plugin section

  • extensions set to true for the plugin

  • usage of a supported packaging: apk, aar or apklib

A small example would be:

<project>
  <groupId>com.simpligility.android</groupId>
  <artifactId>helloflashlight</artifactId>
  <version>1.0.0</version>
  <packaging>apk</packaging>
  <build>
    <plugins>
      <plugin>
        <groupId>com.simpligility.maven.plugins</groupId>
        <artifactId>android-maven-plugin</artifactId>
        <version>4.3.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.