Book Image

Mastering Apache Maven 3

Book Image

Mastering Apache Maven 3

Overview of this book

Table of Contents (16 chapters)
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 9. Best Practices

In the book so far, we have discussed most of the key concepts related to Maven. Here in this chapter, we focus on best practices associated with all those core concepts. The following best practices are essential ingredients in creating a successful/productive build environment. The following criteria will help you evaluate the efficiency of your Maven project if you are mostly dealing with a large-scale, multi-module project:

  • The time it takes for a developer to get started with a new project and add it to the build system

  • The effort it requires to upgrade a version of a dependency across all the project modules

  • The time it takes to build the complete project with a fresh local Maven repository

  • The time it takes to do a complete offline build

  • The time it takes to update the versions of Maven artifacts produced by the project, for example, from 1.0.0-SNAPSHOT to 1.0.0

  • The effort it requires for a completely new developer to understand what your Maven build does

  • The effort...