title: How do you generate module dependencies in MANIFEST.MF for JBoss AS 7 with maven?
body: <p>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:</p>
  
  <pre><code>Dependencies: &lt;package-name&gt;
  </code></pre>
  
  <p>Example:</p>
  
  <pre><code>Dependencies: org.slf4j
  </code></pre>
  
  <p>(This is comparable to Import-Package: for OSGi.)
  Further information can be found in the articles about <a href="https://docs.jboss.org/author/display/AS7/How+do+I+migrate+my+application+from+AS5+or+AS6+to+AS7#HowdoImigratemyapplicationfromAS5orAS6toAS7-FilesYouMayNeedtoChange" rel="noreferrer">migration from older versions</a>, <a href="https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7" rel="noreferrer">class loading</a> and <a href="https://docs.jboss.org/author/display/AS7/Implicit+module+dependencies+for+deployments" rel="noreferrer">implicit module dependencies for deployments</a></p>
  
  <p>The project is built with Maven. All dependencies included in the AS are declared with scope 'provided'.</p>
  
  <h2>Now the question</h2>
  
  <p>Is there a simple way to create this list of dependencies automatically with Maven?</p>
  
  <p>Only dependencies with declared scope 'provided' should be included, because all others are already included in the WAR.</p>