dev@glassfish.java.net

Setting Bundle-Vendor in v3 modules

From: Vivek Pandey <Vivek.Pandey_at_Sun.COM>
Date: Mon, 25 Aug 2008 16:41:27 -0700

Ludo brought to my notice and he says it is P1 and needs immidiate fix ;-)

The rails-connector (gf-jruby-connector.jar), jar does not have
Bundle-Vendor: Sun Microsystems, Inc. The rails connector jar is created
with 'hk2-jar' packaging and the hk2-maven-plugin entry in maven is:

         <plugin>
                <groupId>com.sun.enterprise</groupId>
                <artifactId>hk2-maven-plugin</artifactId>
                <version>${hk2.version}</version>
                <extensions>true</extensions>
                <configuration>
                    <generateOSGiHeaders>true</generateOSGiHeaders>
                </configuration>
            </plugin>


Looks like I am doing everything correctly, looks like
<generateOSGiHeaders> is not generating Bundle-Vendor entry. What am I
supposed to do for it to appear in the generated MANIFEST.MF?

The existing bundle entry is:

-----
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: vivek
Build-Jdk: 1.5.0_14
Extension-Name: gf-jruby-connector
Implementation-Title: gf-jruby-connector
Implementation-Version: 0.6.19-SNAPSHOT
Export-Package: org.glassfish.scripting.rails.sniffer
Bundle-Version: 0.6.19.SNAPSHOT
HK2-Bundle-Name: org.glassfish.scripting:gf-jruby-connector
Bundle-ManifestVersion: 2
HK2-Import-Bundles: com.sun.enterprise:hk2, org.glassfish.common:glass
 fish-api
Require-Bundle: com.sun.enterprise.hk2;bundle-version=0.3.15;resolutio
 n:=mandatory;visibility:=private,org.glassfish.common.glassfish-api;b
 undle-version=10.0.410;resolution:=mandatory;visibility:=private
Bundle-Name: Glassfish enablement of Ruby on Rails
Bundle-SymbolicName: org.glassfish.scripting.gf-jruby-connector
-----------

-vivek.