This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit ceace5b7fa81d83755479b50abc725d9cf23ad18
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Tue Mar 6 13:02:02 2018 +0100

    CAMEL-12221: Added camel-fhir karaf feature
---
 components/camel-fhir/pom.xml                      |  4 ++-
 .../karaf/features/src/main/resources/features.xml | 17 +++++++++++
 .../apache/camel/itest/karaf/CamelFhirTest.java    | 34 ++++++++++++++++++++++
 3 files changed, 54 insertions(+), 1 deletion(-)

diff --git a/components/camel-fhir/pom.xml b/components/camel-fhir/pom.xml
index 1c297d3..be12355 100644
--- a/components/camel-fhir/pom.xml
+++ b/components/camel-fhir/pom.xml
@@ -11,11 +11,13 @@
   
   <artifactId>camel-fhir</artifactId>
   <packaging>jar</packaging>
-
   <name>Camel :: Fhir</name>
   <description>Camel FHIR HL7 support</description>
 
   <properties>
+    <camel.osgi.export.pkg>
+      org.apache.camel.component.fhir.*
+    </camel.osgi.export.pkg>
     <camel.osgi.export.service>
       org.apache.camel.spi.DataFormatResolver;dataformat=fhirJson,
       org.apache.camel.spi.DataFormatResolver;dataformat=fhirXml
diff --git a/platforms/karaf/features/src/main/resources/features.xml 
b/platforms/karaf/features/src/main/resources/features.xml
index f7a6cd4..aa27d3d 100644
--- a/platforms/karaf/features/src/main/resources/features.xml
+++ b/platforms/karaf/features/src/main/resources/features.xml
@@ -674,6 +674,23 @@
     <bundle 
dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.fastjson/${fastjson-bundle-version}</bundle>
     <bundle>mvn:org.apache.camel/camel-fastjson/${project.version}</bundle>
   </feature>
+  <feature name='camel-fhir' version='${project.version}' resolver='(obr)' 
start-level='50'>
+    <feature version='${project.version}'>camel-core</feature>
+    <bundle 
dependency='true'>mvn:com.google.code.gson/gson/${gson-version}</bundle>
+    <bundle 
dependency='true'>mvn:org.apache.commons/commons-lang3/${commons-lang3-version}</bundle>
+    <bundle 
dependency='true'>mvn:commons-codec/commons-codec/${commons-codec-version}</bundle>
+    <bundle 
dependency='true'>mvn:commons-io/commons-io/${commons-io-version}</bundle>
+    <bundle 
dependency='true'>mvn:com.google.guava/guava/${google-guava-version}</bundle>
+    <bundle 
dependency='true'>mvn:org.apache.httpcomponents/httpcore-osgi/${httpcore4-version}</bundle>
+    <bundle 
dependency='true'>mvn:org.apache.httpcomponents/httpclient-osgi/${httpclient4-version}</bundle>
+    <bundle 
dependency='true'>mvn:ca.uhn.hapi/hapi-osgi-base/${hapi-version}</bundle>
+    
<bundle>wrap:mvn:ca.uhn.hapi.fhir/hapi-fhir-client/${hapi-fhir-version}</bundle>
+    
<bundle>wrap:mvn:ca.uhn.hapi.fhir/hapi-fhir-base/${hapi-fhir-version}</bundle>
+    
<bundle>wrap:mvn:ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3/${hapi-fhir-version}</bundle>
+    
<bundle>wrap:mvn:ca.uhn.hapi.fhir/hapi-fhir-utilities/${hapi-fhir-version}</bundle>
+    
<bundle>wrap:mvn:ca.uhn.hapi.fhir/hapi-fhir-structures-dstu2/${hapi-fhir-version}</bundle>
+    <bundle>mvn:org.apache.camel/camel-fhir/${project.version}</bundle>
+  </feature>
   <feature name='camel-flatpack' version='${project.version}' resolver='(obr)' 
start-level='50'>
     <feature version='${project.version}'>camel-core</feature>
     <bundle 
dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jdom/${jdom-bundle-version}</bundle>
diff --git 
a/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelFhirTest.java
 
b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelFhirTest.java
new file mode 100644
index 0000000..8638e15
--- /dev/null
+++ 
b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelFhirTest.java
@@ -0,0 +1,34 @@
+/**
+ * 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.
+ */
+package org.apache.camel.itest.karaf;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.ops4j.pax.exam.junit.PaxExam;
+
+@RunWith(PaxExam.class)
+public class CamelFhirTest extends BaseKarafTest {
+
+    public static final String COMPONENT = extractName(CamelFhirTest.class);
+
+    @Test
+    public void test() throws Exception {
+        testDataFormat(COMPONENT, "fhirJson");
+        testDataFormat(COMPONENT, "fhirXml");
+    }
+
+}

-- 
To stop receiving notification emails like this one, please contact
davscl...@apache.org.

Reply via email to