Free Sample
+ Collection

Apache Maven 2 Effective Implementation

Brett Porter, Maria Odea Ching

Build and Manage Applications with Maven, Continuum, and Archiva
RRP $23.99
RRP $39.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781847194541
Paperback456 pages

About This Book

  • Follow a sample application which will help you to get started quickly with Apache Maven
  • Learn how to use Apache Archiva - an extensible repository manager - with Maven to take care of your build artifact repository
  • Leverage the power of Continuum - Apache's continuous integration and build server - to improve the quality and maintain the consistency of your build
  • Guidance on how to use Maven in a team environment to maximise its potential

Who This Book Is For

This book is for Java developers who want to get started with Apache Maven. If you are tasked with build automation in your company, this book will help you to quickly and easily get started with Maven in order to improve the efficiency of your builds.

Table of Contents

Chapter 1: Maven in a Nutshell
A whirlwind tour
Chapter 2: Staying in Control with Archiva
Importance of a repository manager
Installing Archiva
Separating your repositories
Hooking up Maven with Archiva
Searching for artifacts in Archiva
Deploying from Maven
Deploying via web form
Chapter 3: Building an Application Using Maven
Introducing the sample project
Setting up a multi-module build
Creating an organization POM
Configuring basic reports
Preparing for non-code modules
Adding a documentation module
Distributing the application
Chapter 4: Application Testing with Maven
Types of testing in Maven
Working with tests
Integration, functional, and other testing
Chapter 5: Reporting and Checks
Review: Example application
Constructing the developer's site
Maven reports
Setting up quality checks
Reporting and quality tools
Reporting best practices
Tying it all together
Chapter 6: Useful Maven Plugins
The Remote Resources plugin
The Build Number plugin
The Shade plugin
The Build Helper plugin
The AntRun plugin and scripting languages
The Exec plugin
Chapter 7: Maven Best Practices
Preparing the development environment
Keeping it simple
Build portability
Build reproducibility
Chapter 8: Continuum: Ensuring the Health of your Source Code
Knowing when your build breaks
Setting up Continuum
Using Continuum
Chapter 9: Continuum in Depth
Releasing projects
Build pipelining and multiple build definitions
Parallel builds
Distributed builds
Chapter 10: Archiva in a Team
Roles and permissions
Introducing repository groups
RSS feeds—discovering new artifacts in your repository
Deleting artifacts in your repository
The Archiva reports
The Archiva consumers
Chapter 11: Archetypes
What are Maven archetypes?
Generating projects
Common archetypes
Writing a new archetype
Managing catalogs
Chapter 12: Maven, Archiva, and Continuum in the Enterprise
Configuring security
Interfacing with other tools in the enterprise

What You Will Learn

  • Install Apache Maven and follow the sample application to build up your project as quickly as possible
  • Test your applications to ensure maximum stability using Maven's inbuilt tools
  • Use Maven's report and checking tools to ensure the health of your projects
  • Explore Apache Continuum which will help you to ensure the health of your source code
  • Improve your team builds with the powerful combination of Maven, Archiva and Continuum
  • Install and run the repository manager Apache Archiva

In Detail

By building up a sample application, this book guides developers painlessly through building a project with Maven. This book shows you how to combine Maven with Continuum and Archiva, which will allow you to build an efficient, secure application and make developing in a team easy.

You may already be aware of the pitfalls of 'integration hell' caused by changed code being submitted to repositories by a number of developers. When you implement Continuum in your build, you can easily perform continuous integration, avoiding timely rework and reducing cost and valuable time. You will be able to use Maven more efficiently in a team after you learn how to set up Archiva, Apache's repository manager.

It's easy to quickly get to work with Maven and get the most out of its related tools when you follow the sequential coverage of the sample application in this book. A focus on team environments ensures that you will avoid the pitfalls that are all too common when working in a team. Soon, by learning the best practices of working with Maven, you will have built an effective, secure Java application.


Read More