On 5/14/2010 8:22 AM, Gurkan Erdogdu wrote:
Hello;

I have generated OSGI Manifest via maven-bundle-plugin  in "trunk/pom.xml". Is 
it correct?

Hard to say without seeing what errors you're getting when you attempt to use this. I've seen some problems in the past with using "package.*" for wildcards...most examples I see use "package*", but without seeing the specific errors you're getting, it's hard for me to tell if that's the problem. I just checked out the openwebbeans trunk, but I'm having problems building it because of unresolvable dependencies.

Rick



         <plugin>
         <groupId>org.apache.felix</groupId>
         <artifactId>maven-bundle-plugin</artifactId>
         <executions>
           <execution>
             <id>bundle-manifest</id>
             <phase>process-classes</phase>
             <goals>
               <goal>manifest</goal>
             </goals>
           </execution>
         </executions>
         <configuration>
           <supportedProjectTypes>
             <supportedProjectType>jar</supportedProjectType>
             <supportedProjectType>bundle</supportedProjectType>
             <supportedProjectType>war</supportedProjectType>
           </supportedProjectTypes>
           <instructions>
             <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
             <Bundle-Version>${pom.version}</Bundle-Version>
             
<Export-Package>!org.apache.webbeans.internal.*,org.apache.webbeans.*;version="${pom.version}"</Export-Package>
             <Private-Package>org.apache.webbeans.internal.*</Private-Package>
           </instructions>
         </configuration>
       </plugin>

Thanks;

--Gurkan




________________________________
From: Shawn Jiang<[email protected]>
To: [email protected]
Sent: Fri, May 14, 2010 4:49:36 AM
Subject: Re: OWB as OSGI Bundles

And soon I found the OWB bundle plugin were removed so that I did not try
the owb bundles further.

On Fri, May 14, 2010 at 9:37 AM, Shawn Jiang<[email protected]>  wrote:

I tried to wrapped the OWB jars into bundles in geronimo and they worked
fine.   See
https://svn.apache.org/repos/asf/geronimo/server/trunk/plugins/openwebbeans/geronimo-openwebbeans/pom.xml


After changing the OWB  bundles directly.   I also met some class resolving
problems that I can't remember exactly.



On Thu, May 13, 2010 at 10:22 PM, Gurkan Erdogdu<[email protected]>wrote:

Hello;

Ago, I tried to build osgified version of OWB jars with adding
META-INF/MANIFEST.MF with adding bundle plugin to trunk/pom.xml. But I am
not sure that is correct or not.

Is anybody experienced with OSGI look at this whether it is OK or not?

I would like to integrate OWB with Geronimo, but I failed with OSGI
dependencies.

Thanks;

--Gurkan



--
Shawn




Reply via email to