| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| 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. |
| |
| --> |
| <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/maven-v4_0_0.xsd"> |
| |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.camel.example</groupId> |
| <artifactId>karaf-examples</artifactId> |
| <version>3.20.0</version> |
| </parent> |
| |
| <artifactId>camel-example-fhir-osgi</artifactId> |
| <name>Camel :: Example :: FHIR :: OSGi</name> |
| <description>An example running Camel FHIR using OSGi Blueprint</description> |
| <packaging>jar</packaging> |
| |
| <properties> |
| <category>Health Care</category> |
| </properties> |
| |
| <dependencyManagement> |
| <dependencies> |
| <!-- Add Camel BOM --> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-bom</artifactId> |
| <version>${camel.version}</version> |
| <type>pom</type> |
| <scope>import</scope> |
| </dependency> |
| <!-- Add Camel Karaf BOM --> |
| <dependency> |
| <groupId>org.apache.camel.karaf</groupId> |
| <artifactId>camel-karaf-bom</artifactId> |
| <version>${camel.version}</version> |
| <type>pom</type> |
| <scope>import</scope> |
| </dependency> |
| </dependencies> |
| </dependencyManagement> |
| |
| <dependencies> |
| |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-fhir</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-hl7</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.camel.karaf</groupId> |
| <artifactId>camel-blueprint</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>ca.uhn.hapi</groupId> |
| <artifactId>hapi-structures-v24</artifactId> |
| <version>${hapi-version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>javax.inject</groupId> |
| <artifactId>javax.inject</artifactId> |
| <version>1</version> |
| </dependency> |
| |
| |
| <!-- OSGi API --> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>osgi.core</artifactId> |
| <scope>provided</scope> |
| <version>${osgi-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>osgi.cmpn</artifactId> |
| <scope>provided</scope> |
| <version>${osgi-version}</version> |
| </dependency> |
| |
| <!-- logging --> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-api</artifactId> |
| <scope>runtime</scope> |
| <version>${log4j2-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-core</artifactId> |
| <scope>runtime</scope> |
| <version>${log4j2-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-slf4j-impl</artifactId> |
| <scope>runtime</scope> |
| <version>${log4j2-version}</version> |
| </dependency> |
| |
| <!-- test --> |
| |
| <!-- PAX Exam --> |
| <dependency> |
| <groupId>org.ops4j.pax.exam</groupId> |
| <artifactId>pax-exam</artifactId> |
| <scope>test</scope> |
| <version>${pax-exam-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.ops4j.pax.exam</groupId> |
| <artifactId>pax-exam-spi</artifactId> |
| <version>${pax-exam-version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.ops4j.pax.exam</groupId> |
| <artifactId>pax-exam-junit4</artifactId> |
| <scope>test</scope> |
| <version>${pax-exam-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.ops4j.pax.exam</groupId> |
| <artifactId>pax-exam-container-karaf</artifactId> |
| <version>${pax-exam-version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.ops4j.pax.url</groupId> |
| <artifactId>pax-url-aether</artifactId> |
| <version>${pax-url-aether}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.ops4j.pax.tinybundles</groupId> |
| <artifactId>tinybundles</artifactId> |
| <version>${tinybundles-version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <!-- Karaf & Command Shell --> |
| <dependency> |
| <groupId>org.apache.karaf</groupId> |
| <artifactId>apache-karaf</artifactId> |
| <version>${karaf4-version}</version> |
| <type>zip</type> |
| <scope>test</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>org.apache.karaf.features</groupId> |
| <artifactId>framework</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <!-- Karaf Features --> |
| <dependency> |
| <groupId>org.apache.camel.karaf</groupId> |
| <artifactId>apache-camel</artifactId> |
| <version>${camel.version}</version> |
| <classifier>features</classifier> |
| <type>xml</type> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <!-- Easier to get the local artifact from the integration tests --> |
| <finalName>${project.artifactId}</finalName> |
| |
| <plugins> |
| |
| <!-- to run the example using mvn camel-karaf:run --> |
| <plugin> |
| <groupId>org.apache.camel.karaf</groupId> |
| <artifactId>camel-karaf-maven-plugin</artifactId> |
| <version>${camel.version}</version> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.servicemix.tooling</groupId> |
| <artifactId>depends-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>generate-depends-file</id> |
| <goals> |
| <goal>generate-depends-file</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-bundle-plugin</artifactId> |
| <configuration> |
| <instructions> |
| <Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName> |
| <Export-Package>org.apache.camel.example.fhir.osgi*</Export-Package> |
| <Import-Package>*</Import-Package> |
| </instructions> |
| </configuration> |
| </plugin> |
| |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>it-fhir</id> |
| <build> |
| <plugins> |
| <!-- Execute in the integration-test phase so that the packaged JAR can be used --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>integration-test</phase> |
| <goals> |
| <goal>test</goal> |
| </goals> |
| <configuration> |
| <includes> |
| <include>**/*IT.java</include> |
| </includes> |
| <forkedProcessTimeoutInSeconds>300</forkedProcessTimeoutInSeconds> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| </project> |