Chapter 3. Dependency Designation (advanced)

In this chapter, we will see the last tags that define an artifact: type/packaging and classifier. Then, we will study some plugins that will help us identify and fix conflicts between dependencies of a project or a group of projects. In the end, we will present the dynamic POMs that allow developers to increase the flexibility and strictness of their POMs.

The type tag

The type tag in dependencies allows distinguishing the type of archive, that is, most often the file extension. In contrast with groupId and artifactId, which do not differ from an artifact self-declaration to a dependency reference, the type of archive will resort to two different tags: packaging for self-declaration and type for dependency ...

Get Apache Maven Dependency Management now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.