Book Image

Maven Build Customization

By : Lorenzo Anardu, Roberto Baldi, Umberto Antonio Cicero, Riccardo Giomi, Giacomo Veneri
Book Image

Maven Build Customization

By: Lorenzo Anardu, Roberto Baldi, Umberto Antonio Cicero, Riccardo Giomi, Giacomo Veneri

Overview of this book

<p>Maven is one of the most popular tools used to control the dependencies and to administer a Java project. Maven can be used by newbies without the need to learn complex mechanisms, but it is also a powerful tool for big projects developed by different teams and organized over different modules and repositories.</p> <p>This book will provide you with all the information you need, right from managing dependencies to improving the build process of your organization. Starting with a simple project, you will create your development environment step-by-step, automatically build your code from resources (XML, DB), and package your JAR, WAR, and EAR files for different environments. Furthermore, you will learn about the complex hereditary features of Maven.</p> <p>Finally, this book will benefit you by teaching Maven-Gradle and Maven-Eclipse integration using the m2e plugin, managing the Maven repository from Gradle, and building a working Maven environment from Gradle.</p>
Table of Contents (17 chapters)
Maven Build Customization
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Prerequisites


We assume that the following packages are installed:

  • JDK 1.6+ as required for Android development

  • Android SDK (r21.1 or later; the latest version is best supported), preferably installed with all platforms

  • Maven 3.0.5 (advised) or higher

We set the environment variable, ANDROID_HOME, to the path of our installed Android SDK. For example, if the SDK is installed at /opt/adt-bundle/sdk, this can be achieved with the given commands:

  • On a Unix/bash-based system, use the following command:

    export ANDROID_HOME=/opt/adt-bundle/sdk
    
  • On a Windows-based system, use the following command:

    set ANDROID_HOME=C:\opt\adt-bundle\sdk
    

Then, add $ANDROID_HOME/tools as well as $ANDROID_HOME/platform-tools to your $PATH (or add %ANDROID_HOME%\tools and %ANDROID_HOME%\platform-tools on Windows).