Skip to content

Instantly share code, notes, and snippets.

@cmoulliard
Created December 23, 2013 13:47
Show Gist options
  • Select an option

  • Save cmoulliard/8097375 to your computer and use it in GitHub Desktop.

Select an option

Save cmoulliard/8097375 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.servicemix.bundles</groupId>
<artifactId>bundles-pom</artifactId>
<version>10</version>
<relativePath>../bundles-pom/pom.xml</relativePath>
</parent>
<groupId>org.apache.servicemix.bundles</groupId>
<artifactId>org.apache.servicemix.bundles.elasticsearch</artifactId>
<version>0.90.5_2-SNAPSHOT</version>
<packaging>bundle</packaging>
<name>Apache ServiceMix :: Bundles :: ${pkgArtifactId}</name>
<description>This OSGi bundle wraps ${pkgArtifactId} ${pkgVersion} jar file.</description>
<properties>
<pkgGroupId>org.elasticsearch</pkgGroupId>
<pkgArtifactId>elasticsearch</pkgArtifactId>
<pkgVersion>0.90.5</pkgVersion>
<servicemix.osgi.export.pkg>
org.elasticsearch*;-noimport:=true;version=0.20.5;-split-package:=merge-last
</servicemix.osgi.export.pkg>
<servicemix.osgi.import.pkg>
<!-- REMOVED OTHERWISE TAR NOT CREATED & BND COMPLAINS
com.spatial4j.core*;resolution:=optional,
com.sun.jna;resolution:=optional,
com.vividsolutions.jts*;resolution:=optional,
javax.annotation,
javax.management*,
javax.net.ssl,
javax.xml*,
org.w3c.dom,
jsr166y;resolution:=optional,
org.apache.log4j*;resolution:=optional,
org.apache.regexp,
org.elasticsearch.common.joda.convert;resolution:=optional,
org.hyperic.sigar;resolution:=optional,
org.slf4j;resolution:=optional,
org.xerial.snappy;resolution:=optional,
org.xml.sax*,
sun.misc;resolution:=optional
-->
org.elasticsearch.index.codec,
*;resolution:=optional
</servicemix.osgi.import.pkg>
<!-- -split-package:=(merge-first|merge-last|error|first)-->
<servicemix.osgi.private.pkg>
org.apache.lucene*;-split-package:=merge-last,
org.tartarus.snowball.*;-split-package:=merge-first,
META-INF.services
</servicemix.osgi.private.pkg>
<!--<servicemix.provide.capability>
osgi.serviceloader; filter:="(osgi.serviceloader=org.apache.lucene.codecs.Codec)",
osgi.serviceloader; filter:="(osgi.serviceloader=org.apache.lucene.codecs.PostingsFormat)",
osgi.serviceloader; filter:="(osgi.serviceloader=org.apache.lucene.codecs.DocValuesFormat)"
osgi.serviceloader; osgi.serviceloader=org.apache.lucene.codecs.Codec,
osgi.serviceloader; osgi.serviceloader=org.apache.lucene.codecs.PostingsFormat,
osgi.serviceloader; osgi.serviceloader=org.apache.lucene.codecs.DocValuesFormat
</servicemix.provide.capability>
<servicemix.require.capability>
osgi.extender; filter:="(osgi.extender=osgi.serviceloader.registrar)"
</servicemix.require.capability>-->
</properties>
<repositories>
<repository>
<id>oss.sonatype.releases</id>
<name>OSS Sonatype Releases</name>
<url>https://oss.sonatype.org/content/repositories/releases</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>${pkgGroupId}</groupId>
<artifactId>${pkgArtifactId}</artifactId>
<version>${pkgVersion}</version>
</dependency>
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-core</artifactId>
<version>4.4.0</version>
</dependency>
<!-- sources -->
<dependency>
<groupId>${pkgGroupId}</groupId>
<artifactId>${pkgArtifactId}</artifactId>
<version>${pkgVersion}</version>
<classifier>sources</classifier>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.7</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Bundle-Description>${project.description}</Bundle-Description>
<Export-Package>${servicemix.osgi.export}</Export-Package>
<Import-Package>${servicemix.osgi.import.pkg}</Import-Package>
<Private-Package>${servicemix.osgi.private.pkg}</Private-Package>
<!--<DynamicImport-Package>${servicemix.osgi.dynamicimport.pkg}</DynamicImport-Package>
<Embed-Dependency>${servicemix.osgi.embed.dependency}</Embed-Dependency>
<Provide-Capability>${servicemix.provide.capability}</Provide-Capability>
<Require-Capability>${servicemix.require.capability}</Require-Capability> -->
<Provide-Capability>
osgi.serviceloader; osgi.serviceloader=org.apache.lucene.codecs.Codec,
osgi.serviceloader; osgi.serviceloader=org.apache.lucene.codecs.PostingsFormat,
osgi.serviceloader; osgi.serviceloader=org.apache.lucene.codecs.DocValuesFormat
</Provide-Capability>
<Require-Capability>
osgi.extender; filter:="(osgi.extender=osgi.serviceloader.registrar)"
</Require-Capability>
<_failok>false</_failok>
<_versionpolicy>[$(version;==;$(@)),$(version;+;$(@)))</_versionpolicy>
<_removeheaders>Ignore-Package,Include-Resource,Private-Package,Embed-Dependency</_removeheaders>
<!-- <_failok>${servicemix.osgi.failok}</_failok>
<_versionpolicy>[$(version;==;$(@)),$(version;+;$(@)))</_versionpolicy>
<_removeheaders>Ignore-Package,Include-Resource,Private-Package,Embed-Dependency
</_removeheaders>-->
</instructions>
<unpackBundle>true</unpackBundle>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<includes>
<include>${pkgGroupId}:${pkgArtifactId}</include>
</includes>
</artifactSet>
<filters>
<filter>
<artifact>${pkgGroupId}:${pkgArtifactId}</artifact>
<includes>
<include>config/**</include>
</includes>
</filter>
</filters>
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
<createDependencyReducedPom>true</createDependencyReducedPom>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment