Maven Essentials

Get started with the essentials of Apache Maven and get your build automation system up and running quickly
Preview in Mapt
Code Files

Maven Essentials

Prabath Siriwardena

Get started with the essentials of Apache Maven and get your build automation system up and running quickly
Mapt Subscription
FREE
$29.99/m after trial
eBook
$14.00
RRP $19.99
Save 29%
Print + eBook
$24.99
RRP $24.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$14.00
$24.99
$29.99p/m after trial
RRP $19.99
RRP $24.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Maven Essentials Book Cover
Maven Essentials
$ 19.99
$ 14.00
Maven Crash Course [Video] Book Cover
Maven Crash Course [Video]
$ 79.99
$ 68.00
Buy 2 for $31.50
Save $68.48
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781783986767
Paperback184 pages

Book Description

Maven is the #1 build tool used by developers and it has been around for more than a decade. Maven stands out among other build tools due to its extremely extensible architecture, which is built on of the concept of convention over configuration. It’s widely used by many open source Java projects under Apache Software Foundation, Sourceforge, Google Code, and more.

Maven Essentials is a fast-paced guide to show you the key concepts in Maven and build automation. We get started by introducing you to Maven and exploring its core concepts and architecture. Next, you will learn about and write a Project Object Model (POM) while creating your own Maven project. You will also find out how to create custom archetypes and plugins to establish the most common goals in build automation. After this, you’ll get to know how to design the build to prevent any maintenance nightmares, with proper dependency management. We then explore Maven build lifecycles and Maven assemblies. Finally, you will discover how to apply the best practices when designing a build system to improve developer productivity.

Table of Contents

Chapter 1: Apache Maven Quick Start
Installing Apache Maven
Configuring the heap size
Hello Maven!
Convention over configuration
Maven repositories
IDE integration
Troubleshooting
Summary
Chapter 2: Understanding the Project Object Model (POM)
Project Object Model (POM)
POM hierarchy
Super POM
POM extending and overriding
Maven coordinates
The parent POM
Managing POM dependencies
Summary
Chapter 3: Maven Archetypes
Archetype quickstart
Batch mode
Archetype catalogues
The archetype plugin goals
Java EE web applications with the archetype plugin
Android mobile applications with the archetype plugin
EJB archives with the archetype plugin
JIRA plugins with the archetype plugin
Spring MVC applications with the archetype plugin
Summary
Chapter 4: Maven Plugins
Common Maven plugins
Plugin discovery and execution
Summary
Chapter 5: Build Lifecycles
Standard lifecycles in Maven
Lifecycle bindings
Lifecycle extensions
Summary
Chapter 6: Maven Assemblies
The assembly plugin
The assembly descriptor
Artifact/resource filtering
Assembly help
A runnable standalone Maven project
Summary
Chapter 7: Best Practices
Dependency management
Defining a parent module
POM properties
Avoiding repetitive groupIds and versions, and inheriting from the parent POM
Following naming conventions
Think twice before you write your own plugin. You may not need it!
The Maven release plugin
The Maven enforcer plugin
Avoiding the use of unversioned plugins
Descriptive parent POM files
Documentation is your friend
Avoid overriding the default directory structure
Using SNAPSHOT versioning during the development
Get rid of unused dependencies
Avoiding keeping credentials in application POM files
Avoiding using deprecated references
Avoiding repetition – use archetypes
Avoiding using maven.test.skip
Summary

What You Will Learn

  • Comprehend the key concepts in Apache Maven
  • Build your own custom plugins and get to know how Maven extension points are used
  • Troubleshoot build issues with greater confidence
  • Optimize Maven’s configuration settings
  • Write custom lifecycles and extensions
  • Get hands-on and create a Maven assembly
  • Explore the best practices to design a build system that improves developer productivity

Authors

Table of Contents

Chapter 1: Apache Maven Quick Start
Installing Apache Maven
Configuring the heap size
Hello Maven!
Convention over configuration
Maven repositories
IDE integration
Troubleshooting
Summary
Chapter 2: Understanding the Project Object Model (POM)
Project Object Model (POM)
POM hierarchy
Super POM
POM extending and overriding
Maven coordinates
The parent POM
Managing POM dependencies
Summary
Chapter 3: Maven Archetypes
Archetype quickstart
Batch mode
Archetype catalogues
The archetype plugin goals
Java EE web applications with the archetype plugin
Android mobile applications with the archetype plugin
EJB archives with the archetype plugin
JIRA plugins with the archetype plugin
Spring MVC applications with the archetype plugin
Summary
Chapter 4: Maven Plugins
Common Maven plugins
Plugin discovery and execution
Summary
Chapter 5: Build Lifecycles
Standard lifecycles in Maven
Lifecycle bindings
Lifecycle extensions
Summary
Chapter 6: Maven Assemblies
The assembly plugin
The assembly descriptor
Artifact/resource filtering
Assembly help
A runnable standalone Maven project
Summary
Chapter 7: Best Practices
Dependency management
Defining a parent module
POM properties
Avoiding repetitive groupIds and versions, and inheriting from the parent POM
Following naming conventions
Think twice before you write your own plugin. You may not need it!
The Maven release plugin
The Maven enforcer plugin
Avoiding the use of unversioned plugins
Descriptive parent POM files
Documentation is your friend
Avoid overriding the default directory structure
Using SNAPSHOT versioning during the development
Get rid of unused dependencies
Avoiding keeping credentials in application POM files
Avoiding using deprecated references
Avoiding repetition – use archetypes
Avoiding using maven.test.skip
Summary

Book Details

ISBN 139781783986767
Paperback184 pages
Read More

Read More Reviews

Recommended for You

Mastering Concurrency Programming with Java 8 Book Cover
Mastering Concurrency Programming with Java 8
$ 43.99
$ 30.80
Learning Java Functional Programming Book Cover
Learning Java Functional Programming
$ 43.99
$ 30.80
Learning Docker Book Cover
Learning Docker
$ 39.99
$ 8.00
Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
AngularJS Web Application Development Blueprints Book Cover
AngularJS Web Application Development Blueprints
$ 29.99
$ 21.00
AngularJS Web Application Development Cookbook Book Cover
AngularJS Web Application Development Cookbook
$ 29.99
$ 6.00