| <?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> |
| <artifactId>components</artifactId> |
| <groupId>org.apache.camel</groupId> |
| <version>3.0.0-M2</version> |
| </parent> |
| |
| <artifactId>camel-opentracing</artifactId> |
| <packaging>jar</packaging> |
| <name>Camel :: OpenTracing</name> |
| <description>Distributed tracing using OpenTracing</description> |
| |
| <properties> |
| <firstVersion>2.19.0</firstVersion> |
| <label>monitoring,microservice</label> |
| <title>OpenTracing</title> |
| |
| |
| <opentracing-agent.lib>${project.build.directory}/lib</opentracing-agent.lib> |
| </properties> |
| |
| <dependencies> |
| |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-support</artifactId> |
| </dependency> |
| |
| <!-- OpenTracing --> |
| <dependency> |
| <groupId>io.opentracing</groupId> |
| <artifactId>opentracing-api</artifactId> |
| <version>${opentracing-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>io.opentracing</groupId> |
| <artifactId>opentracing-noop</artifactId> |
| <version>${opentracing-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>io.opentracing.contrib</groupId> |
| <artifactId>opentracing-tracerresolver</artifactId> |
| <version>${opentracing-tracerresolver-version}</version> |
| </dependency> |
| |
| <!-- test dependencies --> |
| <dependency> |
| <groupId>io.opentracing.contrib</groupId> |
| <artifactId>opentracing-agent</artifactId> |
| <scope>test</scope> |
| <version>${opentracing-java-agent-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>io.opentracing</groupId> |
| <artifactId>opentracing-mock</artifactId> |
| <version>${opentracing-version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>io.opentracing</groupId> |
| <artifactId>opentracing-util</artifactId> |
| <version>${opentracing-version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-test-spring</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-api</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-core</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-slf4j-impl</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-core</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <excludes> |
| <exclude>**/agent/*Test.java</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>get-agent</id> |
| <phase>pre-integration-test</phase> |
| <goals> |
| <goal>copy</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>io.opentracing.contrib</groupId> |
| <artifactId>opentracing-agent</artifactId> |
| <overWrite>true</overWrite> |
| <outputDirectory>${opentracing-agent.lib}</outputDirectory> |
| <destFileName>opentracing-agent.jar</destFileName> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| <configuration> |
| <argLine> |
| -javaagent:${opentracing-agent.lib}/opentracing-agent.jar |
| -Dorg.jboss.byteman.verbose ${camel.surefire.fork.vmargs} |
| </argLine> |
| </configuration> |
| <executions> |
| <execution> |
| <id>run-integration-tests</id> |
| <goals> |
| <goal>integration-test</goal> |
| </goals> |
| <configuration> |
| <includes> |
| <include>**/agent/*Test.java</include> |
| </includes> |
| </configuration> |
| </execution> |
| <execution> |
| <id>final-verify</id> |
| <goals> |
| <goal>verify</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |