Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Android Application Development with Maven

You're reading from   Android Application Development with Maven Learn how to use and configure Maven to support all phases of the development of an Android application

Arrow left icon
Product type Paperback
Published in Mar 2015
Publisher
ISBN-13 9781783986101
Length 192 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

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 computation we discussed in Chapter 3, Unit Testing. Profiles are also used to make pom.xml files more readable. Instead of having all build steps inside the <build> tag, we can modularize them in concrete profiles that are activated...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image