I am creating apklib from a sliding menu because I could not find the maven repository. The problem is that when I try to execute intellij, it imports the library, but does not add dependencies to the sliding menu library, and I need to add it manually.
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.slidingmenu</groupId> <artifactId>library</artifactId> <version>1.2</version> <type>apklib</type> <dependencies> <dependency> <groupId>com.google.android</groupId> <artifactId>android</artifactId> <version>4.1.1.4</version> </dependency> <dependency> <groupId>com.google.android.maps</groupId> <artifactId>maps</artifactId> </dependency> <dependency> <groupId>com.google.android</groupId> <artifactId>support-v13</artifactId> <version>r12</version> </dependency> <dependency> <groupId>com.github.rtyley</groupId> <artifactId>roboguice-sherlock</artifactId> <version>1.5</version> </dependency> <dependency> <groupId>org.roboguice</groupId> <artifactId>roboguice</artifactId> <version>2.0</version> </dependency> <dependency> <groupId>com.actionbarsherlock</groupId> <artifactId>actionbarsherlock</artifactId> <version>4.2.0</version> <type>apklib</type> </dependency> </dependencies> <build> <sourceDirectory>src</sourceDirectory> <plugins> <plugin> <groupId>com.jayway.maven.plugins.android.generation2</groupId> <artifactId>android-maven-plugin</artifactId> <extensions>true</extensions> <configuration> <nativeLibrariesDirectory>ignored</nativeLibrariesDirectory> </configuration> </plugin> </plugins> </build>
I create a zip according to the instructions on the maven plugin, and then I click it on ~ / .m2 with this command:
mvn org.apache.maven.plugins:maven-install-plugin:2.4:install-file -DgroupId=com.slidingmenu -DartifactId=library -Dfile=sliding-menu.apklib -Dversion=1.2 -Dpackaging=apklib
source share