pom.xml 20.5 KB
Newer Older
wu-sheng's avatar
wu-sheng 已提交
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!--
wu-sheng's avatar
wu-sheng 已提交
3 4 5 6 7 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
9 10 11 12 13 14 15 16 17 18 19
  ~
  ~     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">
P
pengys5 已提交
21
    <modelVersion>4.0.0</modelVersion>
wu-sheng's avatar
wu-sheng 已提交
22

23
    <groupId>org.apache.skywalking</groupId>
P
pengys5 已提交
24
    <artifactId>apm</artifactId>
25
    <version>6.0.0-GA-SNAPSHOT</version>
wu-sheng's avatar
wu-sheng 已提交
26

27 28 29
    <parent>
        <groupId>org.apache</groupId>
        <artifactId>apache</artifactId>
wu-sheng's avatar
wu-sheng 已提交
30
        <version>21</version>
31 32
    </parent>

P
pengys5 已提交
33 34 35 36
    <developers>
        <developer>
            <name>Wu Sheng</name>
            <email>wu.sheng@foxmail.com</email>
wu-sheng's avatar
wu-sheng 已提交
37 38 39 40 41
            <url>https://github.com/wu-sheng</url>
            <roles>
                <role>Founder</role>
                <role>PMC member</role>
            </roles>
42 43 44
        </developer>
        <developer>
            <name>Peng Yongsheng</name>
彭勇升 pengys 已提交
45
            <email>8082209@qq.com</email>
46
            <url>https://github.com/peng-yongsheng</url>
wu-sheng's avatar
wu-sheng 已提交
47 48 49
            <roles>
                <role>PMC member</role>
            </roles>
50 51
        </developer>
        <developer>
wu-sheng's avatar
wu-sheng 已提交
52 53 54 55 56
            <name>Zhang Xin</name>
            <url>https://github.com/ascrutae</url>
            <roles>
                <role>PMC member</role>
            </roles>
57
        </developer>
P
pengys5 已提交
58
    </developers>
wu-sheng's avatar
wu-sheng 已提交
59

P
pengys5 已提交
60
    <modules>
61
        <module>oap-server</module>
H
hanahmily 已提交
62 63 64 65
        <module>apm-commons</module>
        <module>apm-sniffer</module>
        <module>apm-application-toolkit</module>
        <module>apm-protocol</module>
H
hanahmily 已提交
66
        <module>apm-webapp</module>
wu-sheng's avatar
wu-sheng 已提交
67
        <module>apm-dist</module>
彭勇升 pengys 已提交
68
        <module>apm-checkstyle</module>
P
pengys5 已提交
69 70
    </modules>
    <packaging>pom</packaging>
wu-sheng's avatar
wu-sheng 已提交
71

P
pengys5 已提交
72
    <name>apm</name>
wu-sheng's avatar
wu-sheng 已提交
73
    <url>https://github.com/apache/incubator-skywalking</url>
wu-sheng's avatar
wu-sheng 已提交
74

彭勇升 pengys 已提交
75 76 77 78 79 80 81
    <scm>
        <url>https://github.com/apache/incubator-skywalking</url>
        <connection>scm:git:https://github.com/apache/incubator-skywalking.git</connection>
        <developerConnection>scm:git:https://github.com/apache/incubator-skywalking.git</developerConnection>
        <tag>HEAD</tag>
    </scm>

P
pengys5 已提交
82 83
    <issueManagement>
        <system>GitHub</system>
wu-sheng's avatar
wu-sheng 已提交
84
        <url>https://github.com/apache/incubator-skywalking/issues</url>
P
pengys5 已提交
85
    </issueManagement>
wu-sheng's avatar
wu-sheng 已提交
86

彭勇升 pengys 已提交
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
    <licenses>
        <license>
            <name>The Apache Software License, Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
        </license>
    </licenses>

    <mailingLists>
        <mailingList>
            <name>SkyWalking Developer List</name>
            <post>dev@skywalking.incubator.apache.org</post>
            <subscribe>dev-subscribe@skywalking.incubator.apache.org</subscribe>
            <unsubscribe>dev-unsubscribe@skywalking.incubator.apache.org</unsubscribe>
        </mailingList>
        <mailingList>
            <name>SkyWalking Commits</name>
            <post>commits@skywalking.incubator.apache.org</post>
            <subscribe>commits-subscribe@skywalking.incubator.apache.org</subscribe>
            <unsubscribe>commits-unsubscribe@skywalking.incubator.apache.org</unsubscribe>
        </mailingList>
    </mailingLists>

P
pengys5 已提交
109 110 111 112 113
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <compiler.version>1.8</compiler.version>
        <scala.compiler.version>2.11.7</scala.compiler.version>
        <powermock.version>1.6.4</powermock.version>
彭勇升 pengys 已提交
114
        <checkstyle.version>6.18</checkstyle.version>
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
        <junit.version>4.12</junit.version>
        <mockito-all.version>1.10.19</mockito-all.version>

        <!-- Plugin versions -->
        <docker.plugin.version>0.4.13</docker.plugin.version>
        <takari-maven-plugin.version>0.6.1</takari-maven-plugin.version>
        <exec-maven-plugin.version>1.6.0</exec-maven-plugin.version>
        <maven-antrun-plugin.version>1.8</maven-antrun-plugin.version>
        <maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
        <maven-assembly-plugin.version>3.1.0</maven-assembly-plugin.version>
        <maven-failsafe-plugin.version>2.22.0</maven-failsafe-plugin.version>
        <maven-surefire-plugin.version>2.22.0</maven-surefire-plugin.version>
        <maven-jar-plugin.version>3.1.0</maven-jar-plugin.version>
        <maven-shade-plugin.version>3.1.1</maven-shade-plugin.version>
        <maven-enforcer-plugin.version>3.0.0-M2</maven-enforcer-plugin.version>
        <apache-rat-plugin.version>0.12</apache-rat-plugin.version>
        <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
        <maven-resource-plugin.version>3.1.0</maven-resource-plugin.version>
        <maven-source-plugin.version>3.0.1</maven-source-plugin.version>
        <versions-maven-plugin.version>2.5</versions-maven-plugin.version>
        <coveralls-maven-plugin.version>4.3.0</coveralls-maven-plugin.version>
        <jacoco-maven-plugin.version>0.8.1</jacoco-maven-plugin.version>
        <maven-checkstyle-plugin.version>3.0.0</maven-checkstyle-plugin.version>
P
pengys5 已提交
138
    </properties>
wu-sheng's avatar
wu-sheng 已提交
139

140
    <dependencies>
141
        <dependency>
142 143
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
144
            <version>${junit.version}</version>
145 146 147 148
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
A
ascrutae 已提交
149
            <artifactId>mockito-all</artifactId>
150
            <version>${mockito-all.version}</version>
151 152
            <scope>test</scope>
        </dependency>
A
ascrutae 已提交
153 154 155 156 157 158 159 160 161 162
        <dependency>
            <groupId>org.powermock</groupId>
            <artifactId>powermock-module-junit4</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.powermock</groupId>
            <artifactId>powermock-api-mockito</artifactId>
            <scope>test</scope>
        </dependency>
163
    </dependencies>
wu-sheng's avatar
wu-sheng 已提交
164

165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>4.12</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-all</artifactId>
                <version>1.10.19</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.powermock</groupId>
                <artifactId>powermock-module-junit4</artifactId>
                <version>${powermock.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.powermock</groupId>
                <artifactId>powermock-api-mockito</artifactId>
                <version>${powermock.version}</version>
                <scope>test</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

194
    <build>
195 196 197 198 199 200
        <pluginManagement>
            <plugins>
                <!-- mvn -N io.takari:maven:wrapper -Dmaven=3.5.4 -->
                <plugin>
                    <groupId>io.takari</groupId>
                    <artifactId>maven</artifactId>
201
                    <version>${takari-maven-plugin.version}</version>
202 203 204 205
                </plugin>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>exec-maven-plugin</artifactId>
206
                    <version>${exec-maven-plugin.version}</version>
207 208 209
                </plugin>
                <plugin>
                    <artifactId>maven-antrun-plugin</artifactId>
210
                    <version>${maven-antrun-plugin.version}</version>
211 212 213
                </plugin>
                <plugin>
                    <artifactId>maven-deploy-plugin</artifactId>
214
                    <version>${maven-deploy-plugin.version}</version>
215 216 217
                </plugin>
                <plugin>
                    <artifactId>maven-assembly-plugin</artifactId>
218
                    <version>${maven-assembly-plugin.version}</version>
219 220 221
                </plugin>
                <plugin>
                    <artifactId>maven-failsafe-plugin</artifactId>
222
                    <version>${maven-failsafe-plugin.version}</version>
223 224 225
                </plugin>
                <plugin>
                    <artifactId>maven-surefire-plugin</artifactId>
226
                    <version>${maven-surefire-plugin.version}</version>
227 228 229
                </plugin>
                <plugin>
                    <artifactId>maven-jar-plugin</artifactId>
230
                    <version>${maven-jar-plugin.version}</version>
231 232 233
                </plugin>
                <plugin>
                    <artifactId>maven-shade-plugin</artifactId>
234
                    <version>${maven-shade-plugin.version}</version>
235 236 237
                </plugin>
            </plugins>
        </pluginManagement>
238
        <plugins>
239 240
            <plugin>
                <artifactId>maven-enforcer-plugin</artifactId>
241
                <version>${maven-enforcer-plugin.version}</version>
242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258
                <executions>
                    <execution>
                        <id>enforce-java</id>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
                        <configuration>
                            <rules>
                                <requireJavaVersion>
                                    <!-- Build has not yet been updated for Java 9+ -->
                                    <version>[1.8,9)</version>
                                </requireJavaVersion>
                            </rules>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
259
            <plugin>
260 261
                <groupId>org.apache.rat</groupId>
                <artifactId>apache-rat-plugin</artifactId>
262
                <version>${apache-rat-plugin.version}</version>
263 264 265 266 267
                <configuration>
                    <excludes>
                        <exclude>**/target/**</exclude>
                        <exclude>**/DISCLAIMER</exclude>
                        <exclude>**/licenses/**</exclude>
wu-sheng's avatar
wu-sheng 已提交
268
                        <exclude>**/ui-licenses/**</exclude>
269 270 271 272 273 274 275 276 277 278
                        <exclude>**/codeStyle.xml</exclude>

                        <!-- IDE files -->
                        <exclude>**/*.iml</exclude>
                        <exclude>**/.idea/**</exclude>
                        <exclude>**/*.classpath</exclude>
                        <exclude>**/.project</exclude>
                        <exclude>**/.settings/**</exclude>
                        <exclude>**/dependency-reduced-pom.xml</exclude>

wu-sheng's avatar
wu-sheng 已提交
279 280 281 282 283
                        <!-- UI IDE configs -->
                        <exclude>**/skywalking-ui/.editorconfig</exclude>
                        <!-- UI Compiler configs -->
                        <exclude>**/skywalking-ui/.webpackrc.js</exclude>
                        <exclude>**/skywalking-ui/.roadhogrc.mock.js</exclude>
284 285
                        <!-- UI Test configs -->
                        <exclude>**/skywalking-ui/jest.config.js</exclude>
wu-sheng's avatar
wu-sheng 已提交
286
                        <!-- UI style check files -->
287
                        <exclude>**/skywalking-ui/.eslintrc.js</exclude>
wu-sheng's avatar
wu-sheng 已提交
288
                        <exclude>**/skywalking-ui/.stylelintrc</exclude>
289 290
                        <exclude>**/skywalking-ui/.prettierignore</exclude>
                        <exclude>**/skywalking-ui/.prettierrc</exclude>
291 292
                        <!-- UI icon files -->
                        <exclude>**/skywalking-ui/public/font/iconfont/**</exclude>
wu-sheng's avatar
wu-sheng 已提交
293

294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310
                        <!-- git files -->
                        <exclude>**/.gitignore</exclude>
                        <exclude>**/.gitmodules</exclude>
                        <exclude>**/.git/**</exclude>

                        <!-- CI files -->
                        <exclude>**/.travis.yml</exclude>

                        <!-- GitHub files -->
                        <exclude>**/.github/**</exclude>

                        <!-- document files -->
                        <exclude>**/*.md</exclude>
                        <excldue>**/*.MD</excldue>
                        <exclude>**/*.txt</exclude>
                        <exclude>**/docs/**</exclude>

wu-sheng's avatar
wu-sheng 已提交
311 312
                        <!-- Test cases data in JSON format -->
                        <exclude>**/src/test/resources/json/*.json</exclude>
313 314 315 316 317 318

                        <!-- front end libary and generated files -->
                        <exclude>**/skywalking-ui/node_modules/**</exclude>
                        <exclude>**/skywalking-ui/node/**</exclude>
                        <exclude>**/skywalking-ui/dist/**</exclude>

wu-sheng's avatar
wu-sheng 已提交
319
                        <!-- web UI dependencies descriptions -->
320 321
                        <exclude>skywalking-ui/package.json</exclude>
                        <exclude>skywalking-ui/package-lock.json</exclude>
wu-sheng's avatar
wu-sheng 已提交
322

wu-sheng's avatar
Fix CI.  
wu-sheng 已提交
323 324
                        <!-- Proto files of Istio and gogoproto projects -->
                        <exclude>**/src/main/proto/gogoproto/gogo.proto</exclude>
325 326
                        <!-- Maven Wrapper generated files -->
                        <exclude>.mvn/wrapper/maven-wrapper.properties</exclude>
327 328
                    </excludes>
                </configuration>
329
                <executions>
彭勇升 pengys 已提交
330
                    <execution>
331
                        <phase>verify</phase>
彭勇升 pengys 已提交
332
                        <goals>
333
                            <goal>check</goal>
彭勇升 pengys 已提交
334 335
                        </goals>
                    </execution>
336 337
                </executions>
            </plugin>
338 339
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
340
                <version>${maven-compiler-plugin.version}</version>
341
                <configuration>
A
ascrutae 已提交
342 343
                    <source>${compiler.version}</source>
                    <target>${compiler.version}</target>
344 345 346 347 348
                    <encoding>${project.build.sourceEncoding}</encoding>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-resources-plugin</artifactId>
349
                <version>${maven-resource-plugin.version}</version>
350 351 352 353
                <configuration>
                    <encoding>${project.build.sourceEncoding}</encoding>
                </configuration>
            </plugin>
A
ascrutae 已提交
354 355 356 357 358 359 360 361
            <plugin>
                <groupId>com.spotify</groupId>
                <artifactId>docker-maven-plugin</artifactId>
                <version>${docker.plugin.version}</version>
                <configuration>
                    <skipDocker>true</skipDocker>
                </configuration>
            </plugin>
A
ascrutae 已提交
362 363 364
            <plugin>
                <!-- 源码插件 -->
                <artifactId>maven-source-plugin</artifactId>
365
                <version>${maven-source-plugin.version}</version>
A
ascrutae 已提交
366 367 368 369
                <!-- 发布时自动将源码同时发布的配置 -->
                <executions>
                    <execution>
                        <id>attach-sources</id>
370
                        <phase>none</phase>
A
ascrutae 已提交
371 372 373 374 375 376
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
A
ascrutae 已提交
377 378 379
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>versions-maven-plugin</artifactId>
380
                <version>${versions-maven-plugin.version}</version>
A
ascrutae 已提交
381
            </plugin>
wu-sheng's avatar
wu-sheng 已提交
382 383 384
            <plugin>
                <groupId>org.eluder.coveralls</groupId>
                <artifactId>coveralls-maven-plugin</artifactId>
385
                <version>${coveralls-maven-plugin.version}</version>
wu-sheng's avatar
wu-sheng 已提交
386
                <configuration>
Z
zhangxin 已提交
387 388 389
                    <sourceDirectories>
                        <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
                    </sourceDirectories>
wu-sheng's avatar
wu-sheng 已提交
390 391 392 393
                </configuration>
            </plugin>
            <!-- 覆盖率 -->
            <plugin>
394 395
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
396
                <version>${jacoco-maven-plugin.version}</version>
L
lican 已提交
397 398 399 400 401
                <configuration>
                    <excludes>
                        <exclude>*MethodAccess</exclude>
                    </excludes>
                </configuration>
402 403 404 405 406 407 408 409
                <executions>
                    <execution>
                        <id>prepare-agent</id>
                        <goals>
                            <goal>prepare-agent</goal>
                        </goals>
                    </execution>
                </executions>
wu-sheng's avatar
wu-sheng 已提交
410
            </plugin>
411 412
            <plugin>
                <artifactId>maven-checkstyle-plugin</artifactId>
413
                <version>${maven-checkstyle-plugin.version}</version>
彭勇升 pengys 已提交
414 415 416 417
                <dependencies>
                    <dependency>
                        <groupId>org.apache.skywalking</groupId>
                        <artifactId>apm-checkstyle</artifactId>
418
                        <version>5.0.0-beta</version>
彭勇升 pengys 已提交
419
                    </dependency>
420 421 422 423 424
                    <dependency>
                        <groupId>com.puppycrawl.tools</groupId>
                        <artifactId>checkstyle</artifactId>
                        <version>8.11</version>
                    </dependency>
彭勇升 pengys 已提交
425
                </dependencies>
426 427 428 429 430
                <executions>
                    <execution>
                        <id>validate</id>
                        <phase>validate</phase>
                        <configuration>
彭勇升 pengys 已提交
431 432
                            <configLocation>skywalking/checkStyle.xml</configLocation>
                            <headerLocation>skywalking/CHECKSTYLE_HEAD</headerLocation>
433 434
                            <encoding>UTF-8</encoding>
                            <consoleOutput>true</consoleOutput>
P
peng-yongsheng 已提交
435
                            <includeTestSourceDirectory>true</includeTestSourceDirectory>
436
                            <failsOnError>true</failsOnError>
437 438 439
                            <excludes>org.apache.skywalking.apm/network/**/*.java,
                                org.apache.skywalking.apm/collector/remote/grpc/**/*.java,
                                org.apache.skywalking.apm/agent/core/context/ids/base64/*.java
wu-sheng's avatar
wu-sheng 已提交
440
                            </excludes>
441 442 443 444 445 446 447
                        </configuration>
                        <goals>
                            <goal>check</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
448 449
        </plugins>
    </build>
450 451

    <profiles>
452
        <profile>
453
            <id>auto-submodule</id>
454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>exec-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>git submodule update</id>
                                <phase>initialize</phase>
                                <inherited>false</inherited>
                                <configuration>
                                    <executable>git</executable>
                                    <arguments>
                                        <argument>submodule</argument>
                                        <argument>update</argument>
                                        <argument>--init</argument>
                                        <argument>--recursive</argument>
                                    </arguments>
                                </configuration>
                                <goals>
                                    <goal>exec</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
485
    </profiles>
彭勇升 pengys 已提交
486

A
ascrutae 已提交
487
</project>