Maven: The Complete Reference - 14.7. Using external dependencies |
|
When using the Android Maven Plugin there are three types of dependencies that are treated differently.
<dependency> <groupId>com.simpligility</groupId> <artifactId>model</artifactId> <version>0.1</version> </dependency>
<dependency> <groupId>com.simpligility.android</groupId> <artifactId>intents</artifactId> <version>0.1</version> <type>apk</type> </dependency>
<dependency> <groupId>com.simpligility.android</groupId> <artifactId>tools</artifactId> <version>0.1</version> <type>apklib</type> </dependency> TipA common use case for using Android libraries is to separate out all application code that is independent of the application store in which the apk will be made available. Then you can have one apk per store that depends on the library and add any specific code for e.g. market access or release build requirements. |