Apache Maven Dependency Management

With this guide, you can easily manage your Java or Java EE dependencies. It takes you from basic to advanced dependency management techniques in easy, logical steps. Swap your homebrew processes for automated solutions.

Apache Maven Dependency Management

Starting
Jonathan LALOU

With this guide, you can easily manage your Java or Java EE dependencies. It takes you from basic to advanced dependency management techniques in easy, logical steps. Swap your homebrew processes for automated solutions.
$10.00
$34.99
RRP $20.99
RRP $34.99
eBook
Print + eBook
$29.99 p/month

Find out more

Get Unlimited Access to every Packt eBook and Video course

Enjoy full and instant access to over 3500+ 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.

+ Collection
Free Sample

Book Details

ISBN 139781783283019
Paperback158 pages

Book Description

Managing dependencies in a multi-module project is difficult. In a multi-module project, libraries need to share transitive relations with each other. Maven eliminates this need by reading the project files of dependencies to figure out their inter-relations and other related information. Gaining an understanding of project dependencies will allow you to fully utilize Maven and use it to your advantage.

Aiming to give you a clear understanding of Maven’s functionality, this book focuses on specific case studies that shed light on highly useful Maven features which are often disregarded. The content of this book will help you to replace homebrew processes with more automated solutions.

This practical guide focuses on the variety of problems and issues which occur during the conception and development phase, with the aim of making dependency management as effortless and painless as possible. Throughout the course of this book, you will learn how to migrate from non-Maven projects to Maven, learn Maven best practices, and how to simplify the management of multiple projects. The book emphasizes the importance of projects as well as identifying and fixing potential conflicts before they become issues. The later sections of the book introduce you to the methods that you can use to increase your team’s productivity. This book is the perfect guide to help make you into a proud software craftsman.

Table of Contents

Chapter 1: Basic Dependency Management
Nomenclature
Long and short designations
Visualizing dependencies
Transitive dependencies
Parents/modules
Version ranges
Summary
Chapter 2: Dependency Mechanism and Scopes
Scopes
Chapter 3: Dependency Designation (advanced)
The type tag
Creating a new packaging/type
The Classifier
The dependency plugin
Dynamic POMs and dependencies
Summary
Chapter 4: Migration of Dependencies to Apache Maven
Case study
Setting the folders
Introducing Maven with standard libraries
Non-Maven standard libraries
Summary
Chapter 5: Tools within Your IDE
Case study
IntelliJ IDEA
Eclipse
NetBeans
Summary
Chapter 6: Release and Distribute
Best practices before release
Fixing conflicts with tier-parties
Releasing the source code
Delivering artifacts and distributions
Distribution management
Summary

What You Will Learn

  • Learn how to use profiles, POM, parent POM, and modules
  • Increase build-speed and decrease archive size
  • Set, rationalize, and exclude transitive dependencies
  • Optimize your POM and its dependencies
  • Migrate projects to Maven including projects with exotic dependencies

Authors

Table of Contents

Chapter 1: Basic Dependency Management
Nomenclature
Long and short designations
Visualizing dependencies
Transitive dependencies
Parents/modules
Version ranges
Summary
Chapter 2: Dependency Mechanism and Scopes
Scopes
Chapter 3: Dependency Designation (advanced)
The type tag
Creating a new packaging/type
The Classifier
The dependency plugin
Dynamic POMs and dependencies
Summary
Chapter 4: Migration of Dependencies to Apache Maven
Case study
Setting the folders
Introducing Maven with standard libraries
Non-Maven standard libraries
Summary
Chapter 5: Tools within Your IDE
Case study
IntelliJ IDEA
Eclipse
NetBeans
Summary
Chapter 6: Release and Distribute
Best practices before release
Fixing conflicts with tier-parties
Releasing the source code
Delivering artifacts and distributions
Distribution management
Summary

Book Details

ISBN 139781783283019
Paperback158 pages
Read More

Read More Reviews