Manifest Sections

The <manifestSections> element provides a way to add custom manifest sections. It contains a list of <manifestSection> elements.

Note: As with all the examples here, this configuration can be used in all plugins that use Maven Archiver, not just maven-jar-plugin as in this example.

Given this configuration:

                  <id>nice foo</id>
                  <id>nice bar</id>

The following content will end up in the manifest:

Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: ${}
Build-Jdk: ${java.version}

Name: foo
id: nice foo

Name: bar
id: nice bar