| <?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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <parent> | |
| <groupId>org.apache.camel.springboot.example</groupId> | |
| <artifactId>camel-example-spring-boot-opentelemetry</artifactId> | |
| <version>4.22.0-SNAPSHOT</version> | |
| </parent> | |
| <artifactId>camel-example-spring-boot-opentelemetry-hotelbooking</artifactId> | |
| <name>Camel SB Examples :: OpenTelemetry :: HotelBooking</name> | |
| <description>An example showing how to use Camel with OpenTelemetry</description> | |
| <properties> | |
| <opentelemetry-agent.version>1.25.1</opentelemetry-agent.version> | |
| </properties> | |
| <!-- import Spring-Boot and Camel BOM --> | |
| <dependencyManagement> | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.apache.camel.springboot</groupId> | |
| <artifactId>camel-spring-boot-bom</artifactId> | |
| <version>${project.version}</version> | |
| <type>pom</type> | |
| <scope>import</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.springframework.boot</groupId> | |
| <artifactId>spring-boot-dependencies</artifactId> | |
| <version>${spring-boot-version}</version> | |
| <type>pom</type> | |
| <scope>import</scope> | |
| </dependency> | |
| </dependencies> | |
| </dependencyManagement> | |
| <dependencies> | |
| <!-- Spring Boot dependancies --> | |
| <dependency> | |
| <groupId>org.springframework.boot</groupId> | |
| <artifactId>spring-boot-starter-webmvc</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.springframework.boot</groupId> | |
| <artifactId>spring-boot-starter-actuator</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>io.micrometer</groupId> | |
| <artifactId>micrometer-registry-prometheus</artifactId> | |
| </dependency> | |
| <!-- Apache Camel dependancides--> | |
| <dependency> | |
| <groupId>org.apache.camel.springboot</groupId> | |
| <artifactId>camel-spring-boot-starter</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.camel.springboot</groupId> | |
| <artifactId>camel-rest-starter</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.camel.springboot</groupId> | |
| <artifactId>camel-servlet-starter</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.camel.springboot</groupId> | |
| <artifactId>camel-jackson3-starter</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.camel.springboot</groupId> | |
| <artifactId>camel-micrometer-starter</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.camel.springboot</groupId> | |
| <artifactId>camel-seda-starter</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.camel.springboot</groupId> | |
| <artifactId>camel-http-starter</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.camel.springboot</groupId> | |
| <artifactId>camel-kafka-starter</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.camel.springboot</groupId> | |
| <artifactId>camel-bean-starter</artifactId> | |
| </dependency> | |
| <!-- OpenTelemetry --> | |
| <dependency> | |
| <groupId>org.apache.camel.springboot</groupId> | |
| <artifactId>camel-opentelemetry2-starter</artifactId> | |
| </dependency> | |
| <!-- Testing --> | |
| <dependency> | |
| <groupId>org.springframework.boot</groupId> | |
| <artifactId>spring-boot-starter-test</artifactId> | |
| <scope>test</scope> | |
| </dependency> | |
| </dependencies> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-dependency-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <id>copy-javaagent</id> | |
| <phase>process-resources</phase> | |
| <goals> | |
| <goal>copy</goal> | |
| </goals> | |
| <configuration> | |
| <artifactItems> | |
| <artifactItem> | |
| <groupId>io.opentelemetry.javaagent</groupId> | |
| <artifactId>opentelemetry-javaagent</artifactId> | |
| <version>${opentelemetry-agent.version}</version> | |
| <overWrite>true</overWrite> | |
| <outputDirectory>${project.build.directory}/javaagents</outputDirectory> | |
| <destFileName>javaagent.jar</destFileName> | |
| </artifactItem> | |
| </artifactItems> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.springframework.boot</groupId> | |
| <artifactId>spring-boot-maven-plugin</artifactId> | |
| <configuration> | |
| <agents> | |
| <agent>${project.build.directory}/javaagents/javaagent.jar</agent> | |
| </agents> | |
| </configuration> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </project> |