MANIFEST.MF

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Overview


If you modify the MANIFEST.MF file, make sure to include a newline character at the end of the file.

MANIFEST.MF and WildFly

WildFly module dependencies can be added in the JAR's MANIFEST.MF file as follows:

Manifest-Version: 1.0
Dependencies: org.jboss.logmanager
Class-Path: OrderManagerEJB.jar

The Dependencies: syntax is as follows:

Dependencies: <dependency-name> [optional] [export][, <dependency-name> [optional] [export][, ...]]  

The <dependency-name> is the name of the module to add to the class path of the deployment. To specify that the dependency is optional, add the "optional" flag. To specify that the dependency is to be re-exported, add the "export" flag.

For more details on WildFly modules see:

WildFly Modules "Dependencies:"
WildFly Modules "Class-Path:"

The configuration can be generated with Maven, for more details see:

https://docs.jboss.org/author/display/AS71/Developer+Guide#DeveloperGuide-MANIFEST.MFfile