title: How to debug an OSGi Bundle inside eclipse using maven structured project
body: <p>I have a maven project which library should also be an OSGi bundle with an
  declarative service. I added the OSGI-INF folder with the service.xml inside
  src/java/resources which will be added to the jar. But: When I start the project as equinox project, where I want to check if the service is loaded, I get the error that the OSGI-INF/service.xml can't be found. I guess eclipse won't add the resources folder to the classpath when starting.</p>
  
  <p>BTW: The MANIFEST-MF is in the root folder and the pom.xml contains the following text:</p>
  
  <pre><code>&lt;plugin&gt;
    &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
    &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
       &lt;configuration&gt;
        &lt;archive&gt;
          &lt;manifestFile&gt;META-INF/MANIFEST.MF&lt;/manifestFile&gt;
        &lt;/archive&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>Has anbody a good idea how to tell eclipse where to find the metadata files? I'm using m2eclipse if this is relevant.</p>
  
  <p>Thanks in advance
  Hannes</p>