Hi Eranda, We are using "org.apache.felix.maven-bundle-plugin"[1] maven plugin in "Java Library Project" to create OSGI bundle from the existing jar or java project. Using maven-bundle-plugin we can define parameter such as 'Export-Packages', 'Bundle-Activator' etc. for the OSGI bundle.
For an example, see the following plugin definition in the pom.xml of a "Java Library Project" <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <version>2.3.4</version> <extensions>true</extensions> <configuration> <instructions> <Bundle-SymbolicName>myBundle</Bundle-SymbolicName> <Bundle-Name>myBundle</Bundle-Name> <Export-Package>org.wso2.myBundle,x.y.z</Export-Package> <DynamicImport-Package>*</DynamicImport-Package> <Bundle-Activator>org.wso2.myBundle.Activator</Bundle-Activator> </instructions> </configuration> </plugin> Thanks, Viraj. [1] - http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html On Wed, Jan 7, 2015 at 5:33 PM, Eranda Sooriyabandara <era...@wso2.com> wrote: > That means we can't restrict the exports, can't use the bundle activators > or can't use the declarative service in these bundles. Isn't it? > > Thanks > Eranda > > > On Wednesday, January 7, 2015, Viraj Rajaguru <vi...@wso2.com> wrote: > >> Hi Eranda, >> >> We have "Java Library Project"[1] in devS to create a OSGI bundle from a >> existing jar file or java project in the workspace. >> >> Thanks, >> Viraj. >> >> [1] - >> https://docs.wso2.com/display/DVS371/Creating+Carbon+Projects#CreatingCarbonProjects-JavaLibraryProject >> >> On Wed, Jan 7, 2015 at 3:33 AM, Eranda Sooriyabandara <era...@wso2.com> >> wrote: >> >>> Hi Dev-Stidio team, >>> Is there a way to do the $subject? I know how to create the OSGi using >>> the eclipse but its bit different when it comes to the conventions we >>> follow when we create Carbon bundles. Carbon UI bundle project is there but >>> nothing for carbon bundles. >>> >>> thanks >>> Eranda >>> >>> -- >>> >>> *Eranda Sooriyabandara*Senior Software Engineer; >>> Integration Technologies Team; >>> WSO2 Inc.; http://wso2.com >>> Lean . Enterprise . Middleware >>> >>> E-mail: eranda AT wso2.com >>> Mobile: (812) 964-9032 >>> Linked-In: http://www.linkedin.com/in/erandasooriyabandara >>> Blog: http://emsooriyabandara.blogspot.com/ >>> >>> >>> >>> >>> >> >> >> -- >> Viraj Rajaguru >> Senior Software Engineer >> WSO2 Inc. : http://wso2.com >> >> Mobile: +94 77 3683068 >> >> >> >> > > -- > > *Eranda Sooriyabandara*Senior Software Engineer; > Integration Technologies Team; > WSO2 Inc.; http://wso2.com > Lean . Enterprise . Middleware > > E-mail: eranda AT wso2.com > Mobile: (812) 964-9032 > Linked-In: http://www.linkedin.com/in/erandasooriyabandara > Blog: http://emsooriyabandara.blogspot.com/ > > > > > > -- Viraj Rajaguru Senior Software Engineer WSO2 Inc. : http://wso2.com Mobile: +94 77 3683068
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev