<div>Folks,</div><div><br></div><div>My first shot at OSGi work for slf4j-api can be taken from here (not yet ready for pulling into the main repo):</div><div><a href="http://github.com/weiglewilczek/slf4j/tree/osgi">http://github.com/weiglewilczek/slf4j/tree/osgi</a></div>
<div><br></div><div>Now the Felix Bundle plugin creates the manifest. It looks like below (not the plain manifest, but the output of analyzing with BND). As you can see all the issues I recently brought up are addressed, e.g. naming convention for Bundle-Symbolicname, execution environment bumped up to 1.4, etc. </div>
<div><br></div><div>As all the logging backends are fragments I excluded org.slf4j.impl package from imported packages. This means you can install the slf4j-api bundle in an OSGi container successfully without a backend. Not sure whether this is what we want.</div>
<div><br></div><div>Very important: The whole build still succeeds.</div><div><br></div><div>What do you think? Can we proceed this way?</div><div><br></div><div>Heiko</div><div><br></div><div><br></div><div>slf4j$ bnd print slf4j-api/target/slf4j-api-1.6.2-SNAPSHOT.jar </div>
<div>+++ Starting BND +++</div><div>[MANIFEST slf4j-api-1.6.2-SNAPSHOT.jar]</div><div>Bnd-LastModified                        1284623539661                           </div><div>Build-Jdk                               1.6.0_20                                </div>
<div>Built-By                                hseeberger                              </div><div>Bundle-Description                      The slf4j API                           </div><div>Bundle-DocURL                           <a href="http://www.qos.ch">http://www.qos.ch</a>                       </div>
<div>Bundle-License                          <a href="http://www.opensource.org/licenses/mit-license.php">http://www.opensource.org/licenses/mit-license.php</a></div><div>Bundle-ManifestVersion                  2                                       </div>
<div>Bundle-Name                             SLF4J API Module                        </div><div>Bundle-RequiredExecutionEnvironment     J2SE-1.4                                </div><div>Bundle-SymbolicName                     org.slf4j.api                           </div>
<div>Bundle-Vendor                           QOS.ch                                  </div><div>Bundle-Version                          1.6.2.SNAPSHOT                          </div><div>Created-By                              Apache Maven Bundle Plugin              </div>
<div>Export-Package                          org.slf4j.spi;uses:=&quot;org.slf4j&quot;;version=&quot;1.6.2.SNAPSHOT&quot;,org.slf4j.helpers;uses:=&quot;org.slf4j.spi,org.slf4j&quot;;version=&quot;1.6.2.SNAPSHOT&quot;,org.slf4j;uses:=&quot;org.slf4j.helpers,org.slf4j.spi&quot;;version=&quot;1.6.2.SNAPSHOT&quot;</div>
<div>Ignore-Package                          org.slf4j.impl                          </div><div>Implementation-Title                    slf4j-api                               </div><div>Import-Package                          org.slf4j;version=&quot;[1.6.2.SNAPSHOT,1.7)&quot;,org.slf4j.helpers;version=&quot;[1.6.2.SNAPSHOT,1.7)&quot;,org.slf4j.spi;version=&quot;[1.6.2.SNAPSHOT,1.7)&quot;</div>
<div>Manifest-Version                        1.0                                     </div><div>Tool                                    Bnd-0.0.357                             </div><div><br></div><div>[IMPEXP]</div><div>
Export-Package</div><div>  org.slf4j                             {version=1.6.2.SNAPSHOT}</div><div>  org.slf4j.helpers                     {version=1.6.2.SNAPSHOT}</div><div>  org.slf4j.spi                         {version=1.6.2.SNAPSHOT}</div>
<div><br></div><div>[USES]</div><div>org.slf4j                               org.slf4j.helpers</div><div>                                        org.slf4j.impl</div><div>                                        org.slf4j.spi</div>
<div>org.slf4j.helpers                       org.slf4j</div><div>                                        org.slf4j.spi</div><div>org.slf4j.spi                           org.slf4j</div><div><br></div>