Maven Build Customization

Discover the real power of Maven 3 to manage your Java projects more effectively than ever

Maven Build Customization

This ebook is included in a Mapt subscription
Lorenzo Anardu et al.

1 customer reviews
Discover the real power of Maven 3 to manage your Java projects more effectively than ever
$10.00
$44.99
RRP $26.99
RRP $44.99
eBook
Print + eBook
Preview in Mapt

Book Details

ISBN 139781783987221
Paperback270 pages

Book Description

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.

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.

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.

Table of Contents

Chapter 1: Maven and Its Philosophy
Core concepts of Maven
Introduction to the transportation project
Summary
Chapter 2: Core Maven Concepts
Build lifecycles
Maven goals
Packaging types
Adding and configuring Maven plugins
Managing dependencies
Maven settings
Properties and resource filtering
Building EE applications
Configuring repositories
Best practices
Summary
Chapter 3: Writing Plugins
A problem to solve
Developing a new plugin
Implementing Mojo
Testing Mojo
Best practices for testing
Integration testing
maven-plugin-plugin
Custom plugin – mantis-maven-plugin
Summary
Chapter 4: Managing the Code
Maven build profiles
Maven Assembly Plugin
Maven Site Plugin
Summary
Chapter 5: Continuous Integration and Delivery with Maven
Key concepts of continuous integration and delivery
The repository management server
Integrating Ant
SCM integration
Continuous Integration and Delivery with Hudson or Jenkins
Bug fixing
A more realistic case – the transportation project
Summary
Chapter 6: Maven Android
Prerequisites
Creating your own Android application with an archetype
Creating your own Android application
Declaring dependencies
Useful instrumentations to test, sign, and zipalign
Eclipse integration
Summary

What You Will Learn

  • Discover the power of Maven with a real project and practical examples
  • Develop a simple plugin to interact with databases and change the status of your bug tracker
  • Get to grips with Maven dependencies
  • Develop and test your own custom plugin
  • Customize your package with the Maven profile
  • Use the most powerful plugins to release and test your software
  • Install Maven, Nexus, and Hudson to manage your code efficiently
  • Build your first application with Maven, Gradle, and Android

Authors

Table of Contents

Chapter 1: Maven and Its Philosophy
Core concepts of Maven
Introduction to the transportation project
Summary
Chapter 2: Core Maven Concepts
Build lifecycles
Maven goals
Packaging types
Adding and configuring Maven plugins
Managing dependencies
Maven settings
Properties and resource filtering
Building EE applications
Configuring repositories
Best practices
Summary
Chapter 3: Writing Plugins
A problem to solve
Developing a new plugin
Implementing Mojo
Testing Mojo
Best practices for testing
Integration testing
maven-plugin-plugin
Custom plugin – mantis-maven-plugin
Summary
Chapter 4: Managing the Code
Maven build profiles
Maven Assembly Plugin
Maven Site Plugin
Summary
Chapter 5: Continuous Integration and Delivery with Maven
Key concepts of continuous integration and delivery
The repository management server
Integrating Ant
SCM integration
Continuous Integration and Delivery with Hudson or Jenkins
Bug fixing
A more realistic case – the transportation project
Summary
Chapter 6: Maven Android
Prerequisites
Creating your own Android application with an archetype
Creating your own Android application
Declaring dependencies
Useful instrumentations to test, sign, and zipalign
Eclipse integration
Summary

Book Details

ISBN 139781783987221
Paperback270 pages
Read More
From 1 reviews

Read More Reviews