| <?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/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.apache.shardingsphere</groupId> |
| <artifactId>shardingsphere-integration-agent-test-plugins</artifactId> |
| <version>5.1.2-SNAPSHOT</version> |
| </parent> |
| <artifactId>shardingsphere-integration-agent-test-opentelemetry</artifactId> |
| <name>${project.artifactId}</name> |
| |
| <properties> |
| <maven.deploy.skip>true</maven.deploy.skip> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.shardingsphere</groupId> |
| <artifactId>shardingsphere-integration-agent-test-common</artifactId> |
| <version>${project.version}</version> |
| <type>test-jar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.shardingsphere</groupId> |
| <artifactId>shardingsphere-jdbc-core</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.shardingsphere</groupId> |
| <artifactId>shardingsphere-proxy-bootstrap</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.code.gson</groupId> |
| <artifactId>gson</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>mysql</groupId> |
| <artifactId>mysql-connector-java</artifactId> |
| <scope>runtime</scope> |
| </dependency> |
| <dependency> |
| <groupId>com.zaxxer</groupId> |
| <artifactId>HikariCP</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>integration-tests</id> |
| <goals> |
| <goal>integration-test</goal> |
| <goal>verify</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <artifactId>maven-resources-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>copy-resources</id> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <phase>validate</phase> |
| <configuration> |
| <outputDirectory>target/test-classes</outputDirectory> |
| <resources> |
| <resource> |
| <directory>src/test/resources</directory> |
| <filtering>true</filtering> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>it.env.opentelemetry</id> |
| <properties> |
| <it.env>opentelemetry</it.env> |
| </properties> |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <configuration> |
| <appendAssemblyId>false</appendAssemblyId> |
| <descriptors> |
| <descriptor>src/test/assembly/shardingsphere-proxy-agent-opentelemetry-assembly.xml</descriptor> |
| </descriptors> |
| </configuration> |
| <executions> |
| <execution> |
| <id>assembly</id> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <phase>package</phase> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>com.spotify</groupId> |
| <artifactId>dockerfile-maven-plugin</artifactId> |
| <configuration> |
| <repository>apache/shardingsphere-proxy-agent-tracing-opentelemetry-test</repository> |
| <tag>${project.version}</tag> |
| <tag>latest</tag> |
| <buildArgs> |
| <APP_NAME>${project.build.finalName}</APP_NAME> |
| </buildArgs> |
| </configuration> |
| <executions> |
| <execution> |
| <id>shardingsphere-proxy-bin</id> |
| <goals> |
| <goal>build</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>com.dkanejs.maven.plugins</groupId> |
| <artifactId>docker-compose-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>agent-opentelemetry-up</id> |
| <goals> |
| <goal>up</goal> |
| </goals> |
| <phase>pre-integration-test</phase> |
| <configuration> |
| <composeFile>${project.basedir}/src/test/resources/docker/docker-compose.yml</composeFile> |
| <detachedMode>true</detachedMode> |
| </configuration> |
| </execution> |
| <execution> |
| <id>agent-opentelemetry-down</id> |
| <goals> |
| <goal>down</goal> |
| </goals> |
| <phase>post-integration-test</phase> |
| <configuration> |
| <composeFile>${project.basedir}/src/test/resources/docker/docker-compose.yml</composeFile> |
| <removeVolumes>true</removeVolumes> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |