O'Reilly logo

Android Application Development with Maven by Patroklos Papapetrou, Jonathan LALOU

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Introducing Maven profiles

So far, our Maven configuration files, pom.xml, are quite straightforward with no advanced settings. Actually, we have already used Maven profiles in Chapter 3, Unit Testing, when we wanted to compute the code coverage of our unit tests using JaCoCo. Our case was to have this coverage computation executed only when we explicitly instruct Maven to do it.

In general, build profiles are used in several cases. The most common scenario is to make builds environment agnostic so that they can be executed in any platform or operating system without changing them every time. Profiles can also be used when we want to describe a specific set of build steps that are not required to be included in our daily builds, like the code coverage ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required