Thanks Gimantha, but when this jar runs on a non-OSGi environment like an external Spark, it failed to find the packages without the above diff.
On Sun, Jun 28, 2015 at 9:13 PM, Gimantha Bandara <[email protected]> wrote: > Hi Nirmal, > > Since we have embedded the jar files, exporting the packages would have > duplicated the classes by packing the classes. '_exportcontents' exposes > the classes of the embedded jars without packing them. > > On Sun, Jun 28, 2015 at 11:16 AM, Nirmal Fernando <[email protected]> wrote: > >> Noticed $subject. Any reason for this? Following patch, did pack the >> class files. >> >> *diff --git a/lucene/4.10.3.wso2v2/pom.xml b/lucene/4.10.3.wso2v2/pom.xml* >> >> *index 5ba4669..84cf7ce 100644* >> >> *--- a/lucene/4.10.3.wso2v2/pom.xml* >> >> *+++ b/lucene/4.10.3.wso2v2/pom.xml* >> >> @@ -109,6 +109,9 @@ >> >> >> <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> >> >> <Bundle-Name>${project.artifactId}</Bundle-Name> >> >> >> <_exportcontents>org.apache.lucene.*;version="4.10.3"</_exportcontents> >> >> + <Export-Package> >> >> + org.apache.lucene.*;version="4.10.3"; >> -split-package:=merge-first, >> >> + </Export-Package> >> >> <Import-Package> >> >> !org.apache.lucene.*, >> >> org.antlr.runtime.*; version="[3.2.0,3.3.0)", >> >> -- >> >> Thanks & regards, >> Nirmal >> >> Associate Technical Lead - Data Technologies Team, WSO2 Inc. >> Mobile: +94715779733 >> Blog: http://nirmalfdo.blogspot.com/ >> >> >> > > > -- > Gimantha Bandara > Software Engineer > WSO2. Inc : http://wso2.com > Mobile : +94714961919 > -- Thanks & regards, Nirmal Associate Technical Lead - Data Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
