[SMX4-1801] Embed dependencies to avoid classloader issues

git-svn-id: https://svn.apache.org/repos/asf/servicemix/smx4/bundles/trunk/elasticsearch-1.0.0@1615518 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/pom.xml b/pom.xml
index da007bc..b0e388f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -46,16 +46,11 @@
             *;resolution:=optional,
         </servicemix.osgi.import.pkg>
         <servicemix.osgi.private.pkg>
-            org.apache.lucene*;-split-package:=merge-last
+            org.apache.lucene*;-split-package:=merge-last,
+            org.tartarus.snowball*,
+            org.apache.regexp,
+            META-INF.*
         </servicemix.osgi.private.pkg>
-        <servicemix.osgi.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
-        </servicemix.osgi.provide.capability>
-        <servicemix.osgi.require.capability>
-            osgi.extender; filter:="(osgi.extender=osgi.serviceloader.registrar)"
-        </servicemix.osgi.require.capability>
     </properties>
 
     <repositories>
@@ -77,44 +72,6 @@
             <groupId>${pkgGroupId}</groupId>
             <artifactId>${pkgArtifactId}</artifactId>
             <version>${pkgVersion}</version>
-            <exclusions>
-                <exclusion>
-                    <groupId>org.apache.lucene</groupId>
-                    <artifactId>lucene-memory</artifactId>
-                </exclusion>
-                <exclusion>
-                    <groupId>org.apache.lucene</groupId>
-                    <artifactId>lucene-highlighter</artifactId>
-                </exclusion>
-                <exclusion>
-                    <groupId>org.apache.lucene</groupId>
-                    <artifactId>lucene-queryparser</artifactId>
-                </exclusion>
-                <exclusion>
-                    <groupId>org.apache.lucene</groupId>
-                    <artifactId>lucene-sandbox</artifactId>
-                </exclusion>
-                <exclusion>
-                    <groupId>org.apache.lucene</groupId>
-                    <artifactId>lucene-suggest</artifactId>
-                </exclusion>
-                <exclusion>
-                    <groupId>org.apache.lucene</groupId>
-                    <artifactId>lucene-misc</artifactId>
-                </exclusion>
-                <exclusion>
-                    <groupId>org.apache.lucene</groupId>
-                    <artifactId>lucene-join</artifactId>
-                </exclusion>
-                <exclusion>
-                    <groupId>org.apache.lucene</groupId>
-                    <artifactId>lucene-grouping</artifactId>
-                </exclusion>
-                <exclusion>
-                    <groupId>org.apache.lucene</groupId>
-                    <artifactId>lucene-spatial</artifactId>
-                </exclusion>
-            </exclusions>
         </dependency>
 
         <!-- sources -->
@@ -123,44 +80,6 @@
             <artifactId>${pkgArtifactId}</artifactId>
             <version>${pkgVersion}</version>
             <classifier>sources</classifier>
-            <exclusions>
-                <exclusion>
-                    <groupId>org.apache.lucene</groupId>
-                    <artifactId>lucene-memory</artifactId>
-                </exclusion>
-                <exclusion>
-                    <groupId>org.apache.lucene</groupId>
-                    <artifactId>lucene-highlighter</artifactId>
-                </exclusion>
-                <exclusion>
-                    <groupId>org.apache.lucene</groupId>
-                    <artifactId>lucene-queryparser</artifactId>
-                </exclusion>
-                <exclusion>
-                    <groupId>org.apache.lucene</groupId>
-                    <artifactId>lucene-sandbox</artifactId>
-                </exclusion>
-                <exclusion>
-                    <groupId>org.apache.lucene</groupId>
-                    <artifactId>lucene-suggest</artifactId>
-                </exclusion>
-                <exclusion>
-                    <groupId>org.apache.lucene</groupId>
-                    <artifactId>lucene-misc</artifactId>
-                </exclusion>
-                <exclusion>
-                    <groupId>org.apache.lucene</groupId>
-                    <artifactId>lucene-join</artifactId>
-                </exclusion>
-                <exclusion>
-                    <groupId>org.apache.lucene</groupId>
-                    <artifactId>lucene-grouping</artifactId>
-                </exclusion>
-                <exclusion>
-                    <groupId>org.apache.lucene</groupId>
-                    <artifactId>lucene-spatial</artifactId>
-                </exclusion>
-            </exclusions>
         </dependency>
     </dependencies>