| <?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> |
| |
| <groupId>org.apache.skywalking.plugin</groupId> |
| <artifactId>validator</artifactId> |
| <version>0.0.1</version> |
| <packaging>jar</packaging> |
| |
| <name>skywalking-validator-tools</name> |
| <url>http://maven.apache.org</url> |
| |
| <properties> |
| <java.version>1.8</java.version> |
| |
| <junit.version>4.11</junit.version> |
| <gson.version>2.8.5</gson.version> |
| <slf4j.version>1.7.25</slf4j.version> |
| <log4j.version>2.9.0</log4j.version> |
| <guava.version>28.1-jre</guava.version> |
| <snakeyaml.version>1.18</snakeyaml.version> |
| <gson.version>2.8.6</gson.version> |
| <lombok.version>1.18.10</lombok.version> |
| |
| <maven.compiler.source>${java.version}</maven.compiler.source> |
| <maven.compiler.target>${java.version}</maven.compiler.target> |
| |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| |
| <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version> |
| <docker-maven-plugin.version>0.4.13</docker-maven-plugin.version> |
| |
| <maven-failsafe-plugin.version>3.0.0-M4</maven-failsafe-plugin.version> |
| <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version> |
| <docker-maven-plugin.version>0.30.0</docker-maven-plugin.version> |
| <surefire.version>3.0.0-M4</surefire.version> |
| |
| <skipSurefire>false</skipSurefire> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>${junit.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| <version>${guava.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.yaml</groupId> |
| <artifactId>snakeyaml</artifactId> |
| <version>${snakeyaml.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.code.gson</groupId> |
| <artifactId>gson</artifactId> |
| <version>${gson.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.projectlombok</groupId> |
| <artifactId>lombok</artifactId> |
| <version>${lombok.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.freemarker</groupId> |
| <artifactId>freemarker</artifactId> |
| <version>2.3.23</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| <version>${slf4j.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>log4j-over-slf4j</artifactId> |
| <version>${slf4j.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-core</artifactId> |
| <version>${log4j.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-slf4j-impl</artifactId> |
| <version>${log4j.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-core</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <finalName>skywalking-validator-tools</finalName> |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| <version>${maven-failsafe-plugin.version}</version> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.maven.surefire</groupId> |
| <artifactId>surefire-junit4</artifactId> |
| <version>${maven-failsafe-plugin.version}</version> |
| </dependency> |
| </dependencies> |
| <executions> |
| <execution> |
| <id>integration-test</id> |
| <goals> |
| <goal>integration-test</goal> |
| <goal>verify</goal> |
| </goals> |
| <configuration> |
| <excludes> |
| <exclude>none</exclude> |
| </excludes> |
| <includes> |
| <include>**/*IT.java</include> |
| </includes> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>io.fabric8</groupId> |
| <artifactId>docker-maven-plugin</artifactId> |
| <version>${docker-maven-plugin.version}</version> |
| <configuration> |
| <sourceMode>all</sourceMode> |
| <showLogs>true</showLogs> |
| <logDate>default</logDate> |
| <imagePullPolicy>IfNotPresent</imagePullPolicy> |
| </configuration> |
| <executions> |
| <execution> |
| <id>start</id> |
| <phase>pre-integration-test</phase> |
| <goals> |
| <goal>start</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>stop</id> |
| <phase>post-integration-test</phase> |
| <goals> |
| <goal>stop</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>${maven-compiler-plugin.version}</version> |
| <configuration> |
| <source>${java.version}</source> |
| <target>${java.version}</target> |
| <encoding>${project.build.sourceEncoding}</encoding> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>io.fabric8</groupId> |
| <artifactId>docker-maven-plugin</artifactId> |
| <configuration> |
| <containerNamePattern>%a-%t-%i</containerNamePattern> |
| <images> |
| <image> |
| <name>openresty/openresty</name> |
| <alias>openresty-with-skywalking</alias> |
| <run> |
| <ports> |
| <port>+nginx.host:nginx.port:8080</port> |
| </ports> |
| <volumes> |
| <bind> |
| <volume>${project.build.testOutputDirectory}/logs:/var/log/nginx</volume> |
| <volume>${project.basedir}/docker/conf.d:/var/nginx/conf.d</volume> |
| <volume> |
| ${project.basedir}/../../../lib/skywalking:/skywalking-nginx-lua/lib/skywalking |
| </volume> |
| </bind> |
| </volumes> |
| <wait> |
| <http> |
| <url> |
| http://${docker.host.address}:${nginx.port} |
| </url> |
| </http> |
| <time>30000</time> |
| </wait> |
| <cmd>/usr/bin/openresty -c /var/nginx/conf.d/nginx.conf</cmd> |
| </run> |
| </image> |
| </images> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>${surefire.version}</version> |
| <configuration> |
| <skip>${skipSurefire}</skip> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| <version>${maven-failsafe-plugin.version}</version> |
| <configuration> |
| <systemPropertyVariables> |
| <ping.url> |
| http://${nginx.host}:${nginx.port}/ingress |
| </ping.url> |
| </systemPropertyVariables> |
| </configuration> |
| <executions> |
| <execution> |
| <goals> |
| <goal>verify</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |