pom.xml 21.8 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 21
<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 已提交
22
    <modelVersion>4.0.0</modelVersion>
wu-sheng's avatar
wu-sheng 已提交
23

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

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

P
pengys5 已提交
35
    <modules>
H
hanahmily 已提交
36 37
        <module>apm-commons</module>
        <module>apm-protocol</module>
彭勇升 pengys 已提交
38
        <module>apm-checkstyle</module>
P
pengys5 已提交
39 40
    </modules>
    <packaging>pom</packaging>
wu-sheng's avatar
wu-sheng 已提交
41

P
pengys5 已提交
42
    <name>apm</name>
43
    <url>https://github.com/apache/skywalking</url>
wu-sheng's avatar
wu-sheng 已提交
44

彭勇升 pengys 已提交
45
    <scm>
46 47 48
        <url>https://github.com/apache/skywalking</url>
        <connection>scm:git:https://github.com/apache/skywalking.git</connection>
        <developerConnection>scm:git:https://github.com/apache/skywalking.git</developerConnection>
彭勇升 pengys 已提交
49 50 51
        <tag>HEAD</tag>
    </scm>

P
pengys5 已提交
52 53
    <issueManagement>
        <system>GitHub</system>
54
        <url>https://github.com/apache/skywalking/issues</url>
P
pengys5 已提交
55
    </issueManagement>
wu-sheng's avatar
wu-sheng 已提交
56

彭勇升 pengys 已提交
57 58 59 60 61 62 63 64 65 66
    <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>
67 68 69
            <post>dev@skywalking.apache.org</post>
            <subscribe>dev-subscribe@skywalking.apache.org</subscribe>
            <unsubscribe>dev-unsubscribe@skywalking.apache.org</unsubscribe>
彭勇升 pengys 已提交
70 71 72
        </mailingList>
        <mailingList>
            <name>SkyWalking Commits</name>
73 74 75
            <post>commits@skywalking.apache.org</post>
            <subscribe>commits-subscribe@skywalking.apache.org</subscribe>
            <unsubscribe>commits-unsubscribe@skywalking.apache.org</unsubscribe>
彭勇升 pengys 已提交
76 77 78
        </mailingList>
    </mailingLists>

79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
    <profiles>
        <profile>
            <id>agent</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <modules>
                <module>apm-sniffer</module>
                <module>apm-application-toolkit</module>
            </modules>
        </profile>
        <profile>
            <id>backend</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <modules>
                <module>oap-server</module>
            </modules>
        </profile>
        <profile>
            <id>ui</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <modules>
                <module>apm-webapp</module>
            </modules>
        </profile>
        <profile>
            <id>dist</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <modules>
                <module>apm-dist</module>
            </modules>
        </profile>
wu-sheng's avatar
wu-sheng 已提交
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
        <profile>
            <id>all</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <modules>
                <module>apm-sniffer</module>
                <module>apm-application-toolkit</module>
                <module>oap-server</module>
                <module>apm-webapp</module>
                <module>apm-dist</module>
            </modules>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>exec-maven-plugin</artifactId>
                        <version>${exec-maven-plugin.version}</version>
                        <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>
K
kezhenxu94 已提交
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
        <profile>
            <id>CI-with-IT</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-failsafe-plugin</artifactId>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>integration-test</goal>
                                    <goal>verify</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
180 181
    </profiles>

P
pengys5 已提交
182 183 184 185
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <compiler.version>1.8</compiler.version>
        <powermock.version>1.6.4</powermock.version>
彭勇升 pengys 已提交
186
        <checkstyle.version>6.18</checkstyle.version>
187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208
        <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>
        <maven-checkstyle-plugin.version>3.0.0</maven-checkstyle-plugin.version>
209
        <jacoco-maven-plugin.version>0.8.3</jacoco-maven-plugin.version>
210
        <jmh.version>1.21</jmh.version>
K
kezhenxu94 已提交
211
        <gmaven-plugin.version>1.5</gmaven-plugin.version>
P
pengys5 已提交
212
    </properties>
wu-sheng's avatar
wu-sheng 已提交
213

214
    <dependencies>
215
        <dependency>
216 217 218 219 220 221
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
A
ascrutae 已提交
222
            <artifactId>mockito-all</artifactId>
223 224
            <scope>test</scope>
        </dependency>
A
ascrutae 已提交
225 226 227 228 229 230 231 232 233 234
        <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>
235 236 237 238 239 240 241 242 243 244 245 246 247

        <dependency>
            <groupId>org.openjdk.jmh</groupId>
            <artifactId>jmh-core</artifactId>
            <version>${jmh.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.openjdk.jmh</groupId>
            <artifactId>jmh-generator-annprocess</artifactId>
            <version>${jmh.version}</version>
            <scope>test</scope>
        </dependency>
248
    </dependencies>
wu-sheng's avatar
wu-sheng 已提交
249

250 251 252 253 254
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
255
                <version>${junit.version}</version>
256 257 258 259 260
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-all</artifactId>
261
                <version>${mockito-all.version}</version>
262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278
                <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>

279
    <build>
280 281 282 283 284 285
        <pluginManagement>
            <plugins>
                <!-- mvn -N io.takari:maven:wrapper -Dmaven=3.5.4 -->
                <plugin>
                    <groupId>io.takari</groupId>
                    <artifactId>maven</artifactId>
286
                    <version>${takari-maven-plugin.version}</version>
287 288 289
                </plugin>
                <plugin>
                    <artifactId>maven-antrun-plugin</artifactId>
290
                    <version>${maven-antrun-plugin.version}</version>
291 292 293
                </plugin>
                <plugin>
                    <artifactId>maven-deploy-plugin</artifactId>
294
                    <version>${maven-deploy-plugin.version}</version>
295 296 297
                </plugin>
                <plugin>
                    <artifactId>maven-assembly-plugin</artifactId>
298
                    <version>${maven-assembly-plugin.version}</version>
299 300 301
                </plugin>
                <plugin>
                    <artifactId>maven-failsafe-plugin</artifactId>
302
                    <version>${maven-failsafe-plugin.version}</version>
303 304 305
                </plugin>
                <plugin>
                    <artifactId>maven-surefire-plugin</artifactId>
306
                    <version>${maven-surefire-plugin.version}</version>
307 308 309
                </plugin>
                <plugin>
                    <artifactId>maven-jar-plugin</artifactId>
310
                    <version>${maven-jar-plugin.version}</version>
311 312 313
                </plugin>
                <plugin>
                    <artifactId>maven-shade-plugin</artifactId>
314
                    <version>${maven-shade-plugin.version}</version>
315 316 317
                </plugin>
            </plugins>
        </pluginManagement>
318
        <plugins>
319 320
            <plugin>
                <artifactId>maven-enforcer-plugin</artifactId>
321
                <version>${maven-enforcer-plugin.version}</version>
322 323 324 325 326 327 328 329 330 331
                <executions>
                    <execution>
                        <id>enforce-java</id>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
                        <configuration>
                            <rules>
                                <requireJavaVersion>
                                    <!-- Build has not yet been updated for Java 9+ -->
K
kezhenxu94 已提交
332
                                    <version>1.8</version>
333 334 335 336 337 338
                                </requireJavaVersion>
                            </rules>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
339
            <plugin>
340 341
                <groupId>org.apache.rat</groupId>
                <artifactId>apache-rat-plugin</artifactId>
342
                <version>${apache-rat-plugin.version}</version>
343 344 345 346
                <configuration>
                    <excludes>
                        <exclude>**/target/**</exclude>
                        <exclude>**/licenses/**</exclude>
wu-sheng's avatar
wu-sheng 已提交
347
                        <exclude>**/ui-licenses/**</exclude>
348 349 350 351 352 353 354 355 356 357
                        <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 已提交
358 359
                        <!-- UI IDE configs -->
                        <exclude>**/skywalking-ui/.editorconfig</exclude>
360 361
                        <!-- UI ignore -->
                        <exclude>**/skywalking-ui/.browserslistrc</exclude>
wu-sheng's avatar
wu-sheng 已提交
362

363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379
                        <!-- 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 已提交
380 381
                        <!-- Test cases data in JSON format -->
                        <exclude>**/src/test/resources/json/*.json</exclude>
382 383 384 385 386 387

                        <!-- 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 已提交
388
                        <!-- web UI dependencies descriptions -->
389 390
                        <exclude>skywalking-ui/package.json</exclude>
                        <exclude>skywalking-ui/package-lock.json</exclude>
wu-sheng's avatar
wu-sheng 已提交
391

wu-sheng's avatar
wu-sheng 已提交
392
                        <!-- Proto files of Istio, envoy, prometheus and gogoproto projects -->
393
                        <exclude>**/src/main/proto/envoy/**</exclude>
wu-sheng's avatar
wu-sheng 已提交
394 395 396 397 398
                        <exclude>**/src/main/proto/gogoproto/gogo.proto</exclude>
                        <exclude>**/src/main/proto/google/**</exclude>
                        <exclude>**/src/main/proto/istio/**</exclude>
                        <exclude>**/src/main/proto/jaeger/**</exclude>
                        <exclude>**/src/main/proto/policy/**</exclude>
399
                        <exclude>**/src/main/proto/prometheus/client_model/metrics.proto</exclude>
wu-sheng's avatar
wu-sheng 已提交
400
                        <exclude>**/src/main/proto/protoc-gen-swagger/**</exclude>
401
                        <exclude>**/src/main/proto/validate/validate.proto</exclude>
wu-sheng's avatar
wu-sheng 已提交
402 403 404 405

                        <!-- generated file from antlr -->
                        <exclude>**/src/main/antlr4/org/apache/skywalking/oal/tool/grammar/OALLexer.tokens</exclude>

406 407
                        <!-- Maven Wrapper generated files -->
                        <exclude>.mvn/wrapper/maven-wrapper.properties</exclude>
408 409
                    </excludes>
                </configuration>
410
                <executions>
彭勇升 pengys 已提交
411
                    <execution>
412
                        <phase>verify</phase>
彭勇升 pengys 已提交
413
                        <goals>
414
                            <goal>check</goal>
彭勇升 pengys 已提交
415 416
                        </goals>
                    </execution>
417 418
                </executions>
            </plugin>
419 420
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
421
                <version>${maven-compiler-plugin.version}</version>
422
                <configuration>
A
ascrutae 已提交
423 424
                    <source>${compiler.version}</source>
                    <target>${compiler.version}</target>
425 426 427 428 429
                    <encoding>${project.build.sourceEncoding}</encoding>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-resources-plugin</artifactId>
430
                <version>${maven-resource-plugin.version}</version>
431 432 433 434
                <configuration>
                    <encoding>${project.build.sourceEncoding}</encoding>
                </configuration>
            </plugin>
A
ascrutae 已提交
435 436 437 438 439 440 441 442
            <plugin>
                <groupId>com.spotify</groupId>
                <artifactId>docker-maven-plugin</artifactId>
                <version>${docker.plugin.version}</version>
                <configuration>
                    <skipDocker>true</skipDocker>
                </configuration>
            </plugin>
A
ascrutae 已提交
443 444 445
            <plugin>
                <!-- 源码插件 -->
                <artifactId>maven-source-plugin</artifactId>
446
                <version>${maven-source-plugin.version}</version>
A
ascrutae 已提交
447 448 449 450
                <!-- 发布时自动将源码同时发布的配置 -->
                <executions>
                    <execution>
                        <id>attach-sources</id>
451
                        <phase>none</phase>
A
ascrutae 已提交
452 453 454 455 456 457
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
wu-sheng's avatar
wu-sheng 已提交
458 459 460
            <plugin>
                <groupId>org.eluder.coveralls</groupId>
                <artifactId>coveralls-maven-plugin</artifactId>
461
                <version>${coveralls-maven-plugin.version}</version>
wu-sheng's avatar
wu-sheng 已提交
462
                <configuration>
463
                    <repoToken>xFwR2GqmxcMxV7tGEpW2NfwIrbCD4cQCS</repoToken>
Z
zhangxin 已提交
464 465 466
                    <sourceDirectories>
                        <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
                    </sourceDirectories>
wu-sheng's avatar
wu-sheng 已提交
467 468 469
                </configuration>
            </plugin>
            <plugin>
470 471
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
472
                <version>${jacoco-maven-plugin.version}</version>
473 474 475 476 477 478 479 480
                <executions>
                    <execution>
                        <id>prepare-agent</id>
                        <goals>
                            <goal>prepare-agent</goal>
                        </goals>
                    </execution>
                </executions>
wu-sheng's avatar
wu-sheng 已提交
481
            </plugin>
482 483
            <plugin>
                <artifactId>maven-checkstyle-plugin</artifactId>
484
                <version>${maven-checkstyle-plugin.version}</version>
彭勇升 pengys 已提交
485 486 487 488
                <dependencies>
                    <dependency>
                        <groupId>org.apache.skywalking</groupId>
                        <artifactId>apm-checkstyle</artifactId>
489
                        <version>6.0.0-GA</version>
彭勇升 pengys 已提交
490 491
                    </dependency>
                </dependencies>
492 493 494
                <executions>
                    <execution>
                        <id>validate</id>
495
                        <phase>process-sources</phase>
496
                        <configuration>
彭勇升 pengys 已提交
497 498
                            <configLocation>skywalking/checkStyle.xml</configLocation>
                            <headerLocation>skywalking/CHECKSTYLE_HEAD</headerLocation>
499 500
                            <encoding>UTF-8</encoding>
                            <consoleOutput>true</consoleOutput>
P
peng-yongsheng 已提交
501
                            <includeTestSourceDirectory>true</includeTestSourceDirectory>
502
                            <failsOnError>true</failsOnError>
503 504 505 506 507 508 509 510
                            <includes>org/apache/skywalking/**/*.java</includes>
                            <excludes>
                                org/apache/skywalking/apm/network/register/v2/**/*.java,
                                org/apache/skywalking/apm/network/common/**/*.java,
                                org/apache/skywalking/apm/network/servicemesh/**/*.java,
                                org/apache/skywalking/apm/network/language/**/*.java,
                                org/apache/skywalking/oap/server/core/remote/grpc/proto/*.java,
                                org/apache/skywalking/oal/tool/grammar/*.java,
511 512
                                org/apache/skywalking/oap/server/exporter/grpc/*.java,
                                org/apache/skywalking/oap/server/configuration/service/*.java
wu-sheng's avatar
wu-sheng 已提交
513
                            </excludes>
514 515 516 517 518 519 520
                        </configuration>
                        <goals>
                            <goal>check</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
521 522
        </plugins>
    </build>
A
ascrutae 已提交
523
</project>