How do you generate module dependencies in MANIFEST.MF for JBoss AS 7 with maven?
In JBoss AS 7, a Web application that depends on libraries contained in the AS, must declare those dependencies in META-INF/MANIFEST.MF like this:
Dependencies: <package-name>
Example:
Dependencies: org.slf4j
(This is comparable to Import-Package: for OSGi.) Further information can be found in the articles about migration from older versions, class loading and implicit module dependencies for deployments
The project is built with Maven. All dependencies included in the AS are declared with scope 'provided'.
Now the question
Is there a simple way to create this list of dependencies automatically with Maven?
Only dependencies with declared scope 'provided' should be included, because all others are already included in the WAR.