hi Freeman,

Thanks for your quick responses. I have uncommented the section of pom.xml
generated by my eclipse and did little modifications as following - 

    <!-- alternative maven-bundle-plugin configuration -->
    <!-- see http://felix.apache.org/site/maven-bundle-plugin-bnd.html for
more info -->

   
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <version>1.4.0</version>
                <extensions>true</extensions>
                <configuration>
                    <obrRepository>NONE</obrRepository>
                    <manifestLocation>META-INF</manifestLocation>
                    <instructions>
                        <Export-Package>
                           
!com.ttylll.pso.jdbc_ttylll.internal,com.ttylll.pso.ttylll*
                        </Export-Package>

                        <Import-Package>org.postgresql,*</Import-Package>
<!--this is what i have modified-->

                       
<Include-Resource>src/main/resources</Include-Resource>
                    </instructions>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <executions>
                    <execution>
                        <id>bundle-manifest</id>
                        <phase>package</phase>
                        <goals>
                            <goal>bundle</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>

when i did osgi/header it has given me following 

Manifest-Version = 1.0
Bnd-LastModified = 1267787625938
Tool = Bnd-0.0.238
Bundle-Name = JDBCttylll
Built-By = root
Import-Package = com.ttylll.pso.jdbc_ttylll,org.postgresql
Bundle-SymbolicName = com.ttylll.pso.jdbc-ttylll
Export-Package = com.ttylll.pso.jdbc_ttylll
Bundle-Version = 0.0.1.SNAPSHOT
Build-Jdk = 1.6.0_15
Created-By = Apache Maven Bundle Plugin
Bundle-ManifestVersion = 2

It works as a charm.... I can't explain how happy i am, :jumping:

Many thanks for bearing me ...
-- 
View this message in context: 
http://old.nabble.com/JDBC-tp27789540p27792978.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to