Creating a new packaging/type

Generally speaking, default packages and types fit your needs. Sometimes, you must have a specific packaging; the cases vary from when only the output artifact extension is original, to when a complete new format (including extension, archive compression, and added descriptors) must be created.

Case study

You need to define a specific packaging format, let's say "Hello World ARchive" with hwar as extension. Basically, the hwar format is only a ZIP compression with a different name, for instance to discriminate the hwar files from other archives and make them follow a particular workflow.

Our study case will rely on a parent POM of identifiers: com.packt.dependencyManagement.chapter4:specificArchiveExample:pom:1.0.

The ...

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.