concept Apache Maven in category android

appears as: Apache Maven
50 Android Hacks

This is an excerpt from Manning's book 50 Android Hacks.

To make AOP work, we’ll need to modify the build procedure. In this case, we’ll use Apache Maven because then we only need to add some dependencies to a pom.xml, and a build plugin makes everything extremely simple.

Hack 48 Handling dependencies with Apache Maven: Android v1.6+

The Android SDK comes with a lot of classes and code that help you create your applications, but sometimes even this isn’t enough. For example, if you want to add Google Analytics or you want to add a JSON parser, you’ll have to add some kind of dependencies. The Android SDK doesn’t provide a way to handle dependencies, other than placing JAR files in the /libs folder. Fortunately, it has other building tools. Even if you don’t use third-party dependencies, you might want to separate your application in different modules and add dependencies between them in order to organize your code or create reusable components. What you can do to get around this issue is to use Apache Maven. In this hack you’ll see how to use Apache Maven to build your application and run tests.

Apache Maven is a great build tool. It’s true that it’s somewhat complicated the first time you use it, but after you understand how it works, you’ll start to create a project by generating the pom.xml file.