pom.xml 7.7 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<?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.
  ~
  -->

20
<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">
21
    <parent>
22
        <artifactId>server-library</artifactId>
23
        <groupId>org.apache.skywalking</groupId>
wu-sheng's avatar
wu-sheng 已提交
24
        <version>8.8.0-SNAPSHOT</version>
25 26 27
    </parent>
    <modelVersion>4.0.0</modelVersion>

28
    <artifactId>library-client</artifactId>
29 30
    <packaging>jar</packaging>

31 32 33 34
    <properties>
        <test.elasticsearch.version>6.3.2</test.elasticsearch.version>
    </properties>

35
    <dependencies>
36 37 38 39 40 41
        <dependency>
            <groupId>org.apache.skywalking</groupId>
            <artifactId>library-util</artifactId>
            <version>${project.version}</version>
        </dependency>

42 43 44 45
        <dependency>
            <groupId>io.grpc</groupId>
            <artifactId>grpc-core</artifactId>
        </dependency>
46 47 48 49
        <dependency>
            <groupId>io.grpc</groupId>
            <artifactId>grpc-netty</artifactId>
        </dependency>
50 51 52 53 54 55 56 57 58 59 60 61
        <dependency>
            <groupId>io.netty</groupId>
            <artifactId>netty-codec-http2</artifactId>
        </dependency>
        <dependency>
            <groupId>io.netty</groupId>
            <artifactId>netty-handler</artifactId>
        </dependency>
        <dependency>
            <groupId>io.netty</groupId>
            <artifactId>netty-handler-proxy</artifactId>
        </dependency>
62
        <dependency>
63 64
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
65 66
        </dependency>
        <dependency>
67 68
            <groupId>com.zaxxer</groupId>
            <artifactId>HikariCP</artifactId>
69 70 71 72 73 74 75
        </dependency>
        <dependency>
            <groupId>commons-dbcp</groupId>
            <artifactId>commons-dbcp</artifactId>
        </dependency>
        <dependency>
            <groupId>org.elasticsearch.client</groupId>
彭勇升 pengys 已提交
76
            <artifactId>elasticsearch-rest-high-level-client</artifactId>
77
        </dependency>
78 79 80 81
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>jcl-over-slf4j</artifactId>
        </dependency>
82
    </dependencies>
83

K
kezhenxu94 已提交
84 85 86 87 88 89 90 91
    <profiles>
        <profile>
            <id>CI-with-IT</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>io.fabric8</groupId>
                        <artifactId>docker-maven-plugin</artifactId>
92
                        <configuration>
K
kezhenxu94 已提交
93 94 95 96
                            <sourceMode>all</sourceMode>
                            <logDate>default</logDate>
                            <verbose>true</verbose>
                            <imagePullPolicy>IfNotPresent</imagePullPolicy>
97
                        </configuration>
K
kezhenxu94 已提交
98 99 100 101 102 103 104 105 106 107
                        <executions>
                            <execution>
                                <id>prepare-elasticsearch</id>
                                <phase>pre-integration-test</phase>
                                <goals>
                                    <goal>start</goal>
                                </goals>
                                <configuration>
                                    <images>
                                        <image>
108
                                            <name>elastic/elasticsearch:${test.elasticsearch.version}</name>
K
kezhenxu94 已提交
109 110 111 112 113 114 115
                                            <alias>elastic-client-integration-test</alias>
                                            <run>
                                                <ports>
                                                    <port>es-port:9200</port>
                                                </ports>
                                                <wait>
                                                    <log>started</log>
116
                                                    <time>60000</time>
K
kezhenxu94 已提交
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162
                                                </wait>
                                                <env>
                                                    <discovery.type>single-node</discovery.type>
                                                </env>
                                            </run>
                                        </image>
                                    </images>
                                </configuration>
                            </execution>
                            <execution>
                                <id>remove-it-database</id>
                                <phase>post-integration-test</phase>
                                <goals>
                                    <goal>stop</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.codehaus.gmaven</groupId>
                        <artifactId>gmaven-plugin</artifactId>
                        <version>${gmaven-plugin.version}</version>
                        <executions>
                            <execution>
                                <id>add-default-properties</id>
                                <phase>initialize</phase>
                                <goals>
                                    <goal>execute</goal>
                                </goals>
                                <configuration>
                                    <providerSelection>2.0</providerSelection>
                                    <source>
                                        project.properties.setProperty('docker.hostname', 'localhost')
                                    </source>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-failsafe-plugin</artifactId>
                        <configuration>
                            <systemPropertyVariables>
                                <elastic.search.address>
                                    ${docker.hostname}:${es-port}
                                </elastic.search.address>
163 164 165
                                <elastic.search.protocol>
                                    http
                                </elastic.search.protocol>
K
kezhenxu94 已提交
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181
                            </systemPropertyVariables>
                        </configuration>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>integration-test</goal>
                                    <goal>verify</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>