• Home
  • Q&A
  • Packaging Dependent JARs into apklib with Maven

Packaging Dependent JARs into apklib with Maven

February 28, 2013
1 score
1 answers

I am developing an Android class library that compiles to an apklib using Maven. However, when I build the library project (mvn clean install), my dependent JARs (of which there are about 12) are not included in the apklib. I know that the Assembly plugin can be used to accomplish this but am not sure what the appropriate steps are to be able to package an apklib with dependent JARs.


1 score

The apklib format should NOT include the dependencies. They are just declared in its pom.

When you then use the apklib in an actual application and add a dependency to it in your pom, the Android Maven Plugin will include the apklib as well as all its dependencies into your application.

answered March 07, 2013