------ Manifest Entries ------ Dennis Lundberg ------ 2008-01-01 ------ ~~ Licensed to the Apache Software Foundation (ASF) under one ~~ or more contributor license agreements. See the NOTICE file ~~ distributed with this work for additional information ~~ regarding copyright ownership. The ASF licenses this file ~~ to you under the Apache License, Version 2.0 (the ~~ "License"); you may not use this file except in compliance ~~ with the License. You may obtain a copy of the License at ~~ ~~ http://www.apache.org/licenses/LICENSE-2.0 ~~ ~~ Unless required by applicable law or agreed to in writing, ~~ software distributed under the License is distributed on an ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~~ KIND, either express or implied. See the License for the ~~ specific language governing permissions and limitations ~~ under the License. Manifest Entries If you find that the other configuration options for Maven Archiver are not enough for manipulating the manifest, you can add your own entries to it. This is done with the <<<\>>> configuration element. In this example we'll add some entries to the manifest by specifying what we'd like in the <<<\>>>/<<<\>>> element of maven-jar-plugin. <> 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. +-----+ http://some.url.org/ ... org.apache.maven.plugins maven-jar-plugin ... development ${project.url} ... ... +-----+ As you see above you can use literal values or you can have values from the POM interpolated into literals or simply use straight POM expressions. So this is what your resultant manifest will look like inside the generated jar: +-----+ Manifest-Version: 1.0 Archiver-Version: Plexus Archiver Created-By: Apache Maven ${maven.version} Built-By: ${user.name} Build-Jdk: ${java.version} mode: development url: http://some.url.org/ +-----+ <> If your pom.xml does not have the <<<\>>> element, referenced through interpolation, then the entry <<>> will <> be in the manifest.