How to include sources into OSGI bundle with Apache Felix Maven Bundle Plugin?
<p>I'm trying to build a very simple bundle, and I want to put the sources inside to be happy with debugging. Firstly, I was trying to add  <code>&lt;sources&gt;true&lt;/sources&gt;</code> to <code>&lt;instructions&gt;</code>, according to BND instructions reference <a href="http://www.aqute.biz/Bnd/Format" rel="nofollow noreferrer">here</a>. 
Later, in <a href="https://stackoverflow.com/questions/9720483/how-do-i-attach-the-sources-for-a-library-bundle-in-osgi-equinox-eclipse">this</a> discussion, I found, that it should be <code>&lt;_sources&gt;true&lt;/_sources&gt;</code>, with underscore. Ok, now it started to try to put sources into the bundle, but still I have an error: </p>

<p><em>Bundle ru.fragmental.beaver:blob.api:bundle:1.0-SNAPSHOT : Adding a sourcepath that is not a directory: D:\devel\fragmental.beaver\blob_api\target\generated-sources\annotations</em></p>

<p>Can someone clarify what is wrong with my pom.xml? And, the second question is - why underscore is needed and where can I find docs about this?
My pom.xml and project structure are as follows:</p>

<p>pom.xml (xml schema and project tags were eaten by this text editor, but are present in the original file): </p>

<p><code>&lt;groupId&gt;ru.fragmental.beaver&lt;/groupId&gt;
    &lt;artifactId&gt;blob.api&lt;/artifactId&gt;
    &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
    &lt;packaging&gt;bundle&lt;/packaging&gt;
    &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;Bundle-Name&gt;Blob API&lt;/Bundle-Name&gt;
                        &lt;Bundle-SymbolicName&gt;ru.fragmental.beaver.blob.api&lt;/Bundle-SymbolicName&gt;
                        &lt;Export-Package&gt;ru.fragmental.beaver.blob.api&lt;/Export-Package&gt;
                        &lt;_sources&gt;true&lt;/_sources&gt;
                    &lt;/instructions&gt;
                &lt;/configuration&gt;
            &lt;/plugin&gt;
        &lt;/plugins&gt;
    &lt;/build&gt;</code></p>

<p>The project structure is like this:</p>

<pre><code>blob_api
   |
   |--src
   |   |
   |   |--main
   |        |
   |        |--java
   |             |
   |             |--ru.fragmental.beaver.blob.api(as nested dirs)
   |                        |
   |                        |
   |                        |--BlobPojo.java
   |                        |--BlobStorage.java
   |
   |--pom.xml
</code></pre>

<p>The whole project is <a href="https://drive.google.com/open?id=0B0CaRXyG1f1OWmk3UUJzSUZ6eEE" rel="nofollow noreferrer">here</a></p>