You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicemix.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2016/01/27 08:34:39 UTC

[jira] [Updated] (SM-2802) Elasticsearch bundle should embed joda-time packages

     [ https://issues.apache.org/jira/browse/SM-2802?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré updated SM-2802:
-------------------------------------
    Summary: Elasticsearch bundle should embed joda-time packages  (was: Elasticsearch bundle should embed elasticsearch)

> Elasticsearch bundle should embed joda-time packages
> ----------------------------------------------------
>
>                 Key: SM-2802
>                 URL: https://issues.apache.org/jira/browse/SM-2802
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: bundles
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>             Fix For: bundles-2016.01
>
>
> In order to avoid classloader issue, elasticsearch 2.x bundle should embed joda time packages.
> {code}
> <plugin>
> 	<groupId>org.apache.felix</groupId>
> 	<artifactId>maven-bundle-plugin</artifactId>
> 	<configuration>
> 		<instructions>
> 			<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
> 			<Export-Package>org.elasticsearch.*;version=${pkgVersion};-split-package:=merge-first</Export-Package>
> 			<Import-Package>	<!-- Only the below have been investigated from functionality used by Pulse 
> 					prototype, i.e. don't expect all of ES to work! -->
> 				com.google.common.*,
> 				com.twitter.jsr166e,
> 				com.tdunning.math.stats,
> 				org.jboss.netty.*,
> 				com.carrotsearch.hppc.*,
> 				com.fasterxml.jackson.core.*,
> 				com.fasterxml.jackson.dataformat.smile.*,
> 				*;resolution:=optional
> 			</Import-Package>
> 			<Private-Package>
> 				org.joda.time.*;-split-package:=merge-first,
> 				org.apache.lucene.*;-split-package:=merge-first,
> 				META-INF.services;-split-package:=merge-first, <!-- This might be OK 
> 				to be just 'first' as I'm assembling all the META-INF/servcies from lucene 
> 				myself in src/main/resources -->
> 				config
> 			</Private-Package>
> 		</instructions>
> 	</configuration>
> </plugin>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)