title: <Export-Package> for all resources using maven-bundle-plugin
body: <p>As a temporary measure to be able to transition quickly to OSGi I need to create a single jar with all my libraries in it. What i did was put all the jar libraries in src/main/resources so they end up in the root of the created jar. The problem i am having is telling the maven-bundle-plugin to export ALL the packages in the jars. So basically, i want to expose all my libraries to other OSGi bundles</p>
  
  <p>This is the first thing I tried in my POM</p>
  
  <pre><code>&lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
              &lt;artifactId&gt;maven-bundle-plugin&lt;/artifactId&gt;
              &lt;extensions&gt;true&lt;/extensions&gt;
              &lt;configuration&gt;
                  &lt;instructions&gt;
                      &lt;Export-Package&gt;*&lt;/Export-Package&gt;
                      &lt;Bundle-Name&gt;${project.artifactId}&lt;/Bundle-Name&gt;
                      &lt;Bundle-Version&gt;${project.version}&lt;/Bundle-Version&gt;
                  &lt;/instructions&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;`
  </code></pre>
  
  <p>I tried to export everything there was. But it seems that the only thing that gets exported like this are the two osgi dependencies, not the jars in the resources</p>
  
  <p>I have over a hundred libraries so i am trying to find an automated way to populate the <code>&lt;Export-Package&gt;</code> directive instead of adding each librarie's package by hand. Somehow eclipse does it in the plugin development environment, but i need to do this using maven. Is this possible with the bundle plugin at all? Extra points if the jars get added to the <code>&lt;Bundle-ClassPath&gt;</code> </p>