pom.xml 30.4 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>
K
kezhenxu94 已提交
25
    <version>8.3.0-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
        <relativePath />
32 33
    </parent>

P
pengys5 已提交
34
    <modules>
H
hanahmily 已提交
35 36
        <module>apm-commons</module>
        <module>apm-protocol</module>
P
pengys5 已提交
37 38
    </modules>
    <packaging>pom</packaging>
wu-sheng's avatar
wu-sheng 已提交
39

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

彭勇升 pengys 已提交
43
    <scm>
44 45 46
        <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 已提交
47 48 49
        <tag>HEAD</tag>
    </scm>

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

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

77 78 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
    <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>
113
                <module>apm-dist-es7</module>
114 115
            </modules>
        </profile>
wu-sheng's avatar
wu-sheng 已提交
116 117 118 119 120 121 122 123 124 125 126
        <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>
127
                <module>apm-dist-es7</module>
wu-sheng's avatar
wu-sheng 已提交
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
            </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
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <compiler.version>1.8</compiler.version>
185
        <powermock.version>2.0.7</powermock.version>
彭勇升 pengys 已提交
186
        <checkstyle.version>6.18</checkstyle.version>
187
        <junit.version>4.12</junit.version>
188
        <mockito-core.version>3.5.13</mockito-core.version>
189
        <lombok.version>1.18.10</lombok.version>
190

191
        <!-- core lib dependency -->
192 193 194
        <bytebuddy.version>1.10.16</bytebuddy.version>
        <grpc.version>1.32.1</grpc.version>
        <gson.version>2.8.6</gson.version>
195 196
        <os-maven-plugin.version>1.6.2</os-maven-plugin.version>
        <protobuf-maven-plugin.version>0.6.1</protobuf-maven-plugin.version>
197 198
        <com.google.protobuf.protoc.version>3.12.0</com.google.protobuf.protoc.version>
        <protoc-gen-grpc-java.plugin.version>1.32.1</protoc-gen-grpc-java.plugin.version>
199
        <netty-tcnative-boringssl-static.version>2.0.26.Final</netty-tcnative-boringssl-static.version>
200 201 202 203
        <javax.annotation-api.version>1.3.2</javax.annotation-api.version>
        <objenesis.version>3.1</objenesis.version>
        <!-- necessary for Java 9+ -->
        <org.apache.tomcat.annotations-api.version>6.0.53</org.apache.tomcat.annotations-api.version>
204

205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222
        <!-- 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>
223
        <maven-checkstyle-plugin.version>3.1.0</maven-checkstyle-plugin.version>
224
        <jmh.version>1.21</jmh.version>
K
kezhenxu94 已提交
225
        <gmaven-plugin.version>1.5</gmaven-plugin.version>
226
        <cobertura-maven-plugin.version>2.7</cobertura-maven-plugin.version>
227
        <checkstyle.fails.on.error>true</checkstyle.fails.on.error>
P
pengys5 已提交
228
    </properties>
wu-sheng's avatar
wu-sheng 已提交
229

230
    <dependencies>
231
        <dependency>
232 233 234 235 236
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
237 238
            <groupId>org.powermock</groupId>
            <artifactId>powermock-module-junit4</artifactId>
239 240
            <scope>test</scope>
        </dependency>
A
ascrutae 已提交
241 242
        <dependency>
            <groupId>org.powermock</groupId>
243
            <artifactId>powermock-api-mockito2</artifactId>
A
ascrutae 已提交
244 245 246
            <scope>test</scope>
        </dependency>
        <dependency>
247 248 249 250 251 252 253
            <groupId>net.bytebuddy</groupId>
            <artifactId>byte-buddy-agent</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.objenesis</groupId>
            <artifactId>objenesis</artifactId>
A
ascrutae 已提交
254 255
            <scope>test</scope>
        </dependency>
256 257 258 259 260 261 262

        <dependency>
            <groupId>org.openjdk.jmh</groupId>
            <artifactId>jmh-core</artifactId>
            <version>${jmh.version}</version>
            <scope>test</scope>
        </dependency>
263

264 265 266 267 268
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <version>${lombok.version}</version>
            <scope>provided</scope>
269 270 271 272 273 274
        </dependency>
        <dependency>
            <groupId>javax.annotation</groupId>
            <artifactId>javax.annotation-api</artifactId>
            <version>${javax.annotation-api.version}</version>
            <scope>provided</scope>
275
        </dependency>
276
    </dependencies>
wu-sheng's avatar
wu-sheng 已提交
277

278 279 280 281 282
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
283
                <version>${junit.version}</version>
284 285 286 287
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.mockito</groupId>
288 289
                <artifactId>mockito-core</artifactId>
                <version>${mockito-core.version}</version>
290 291 292 293 294 295 296 297 298 299
                <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>
300
                <artifactId>powermock-api-mockito2</artifactId>
301
                <version>${powermock.version}</version>
302 303 304 305 306 307 308 309 310 311 312 313
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>net.bytebuddy</groupId>
                <artifactId>byte-buddy-agent</artifactId>
                <version>${bytebuddy.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.objenesis</groupId>
                <artifactId>objenesis</artifactId>
                <version>${objenesis.version}</version>
314 315
                <scope>test</scope>
            </dependency>
316 317 318 319 320 321
            <dependency>
                <groupId>org.openjdk.jmh</groupId>
                <artifactId>jmh-generator-annprocess</artifactId>
                <version>${jmh.version}</version>
                <scope>test</scope>
            </dependency>
322 323 324
        </dependencies>
    </dependencyManagement>

325
    <build>
326 327 328 329 330 331
        <pluginManagement>
            <plugins>
                <!-- mvn -N io.takari:maven:wrapper -Dmaven=3.5.4 -->
                <plugin>
                    <groupId>io.takari</groupId>
                    <artifactId>maven</artifactId>
332
                    <version>${takari-maven-plugin.version}</version>
333 334 335
                </plugin>
                <plugin>
                    <artifactId>maven-antrun-plugin</artifactId>
336
                    <version>${maven-antrun-plugin.version}</version>
337 338 339
                </plugin>
                <plugin>
                    <artifactId>maven-deploy-plugin</artifactId>
340
                    <version>${maven-deploy-plugin.version}</version>
341 342 343
                </plugin>
                <plugin>
                    <artifactId>maven-assembly-plugin</artifactId>
344
                    <version>${maven-assembly-plugin.version}</version>
345 346 347
                </plugin>
                <plugin>
                    <artifactId>maven-failsafe-plugin</artifactId>
348
                    <version>${maven-failsafe-plugin.version}</version>
349 350 351
                </plugin>
                <plugin>
                    <artifactId>maven-jar-plugin</artifactId>
352
                    <version>${maven-jar-plugin.version}</version>
353 354 355
                </plugin>
                <plugin>
                    <artifactId>maven-shade-plugin</artifactId>
356
                    <version>${maven-shade-plugin.version}</version>
357
                </plugin>
358 359 360 361 362 363 364 365 366 367
                <!--
                    maven-surefire-plugin will exclude integration tests (ITs)
                    and leave them for maven-failsafe-plugin to run, which is bound to the `verify` goal.
                    If you want to run the ITs please activate the CI-with-IT profile
                    as well as the the profiles of the modules whose ITs you want to run.
                    e.g. you want to run the ITs in oap-server, run `./mvnw -Pbackend,CI-with-IT clean verify`
                 -->
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
368
                    <version>${maven-surefire-plugin.version}</version>
369 370 371 372 373 374 375 376 377 378
                    <configuration>
                        <excludes>
                            <exclude>IT*.class</exclude>
                        </excludes>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>io.fabric8</groupId>
                    <artifactId>docker-maven-plugin</artifactId>
                    <version>${maven-docker-plugin.version}</version>
379 380 381
                    <configuration>
                        <containerNamePattern>%a-%t-%i</containerNamePattern>
                    </configuration>
382
                </plugin>
383 384
            </plugins>
        </pluginManagement>
385
        <plugins>
386 387 388 389 390 391 392 393 394 395 396 397 398
            <plugin>
                <groupId>kr.motd.maven</groupId>
                <artifactId>os-maven-plugin</artifactId>
                <version>${os-maven-plugin.version}</version>
                <executions>
                    <execution>
                        <phase>initialize</phase>
                        <goals>
                            <goal>detect</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
399 400
            <plugin>
                <artifactId>maven-enforcer-plugin</artifactId>
401
                <version>${maven-enforcer-plugin.version}</version>
402 403 404 405 406 407
                <executions>
                    <execution>
                        <id>enforce-java</id>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
408
                        <phase>validate</phase>
409 410 411 412
                        <configuration>
                            <rules>
                                <requireJavaVersion>
                                    <!-- Build has not yet been updated for Java 9+ -->
K
kezhenxu94 已提交
413
                                    <version>1.8</version>
414
                                </requireJavaVersion>
415 416 417
                                <requireMavenVersion>
                                    <version>3.6</version>
                                </requireMavenVersion>
418 419 420 421 422
                            </rules>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
423
            <plugin>
424 425
                <groupId>org.apache.rat</groupId>
                <artifactId>apache-rat-plugin</artifactId>
426
                <version>${apache-rat-plugin.version}</version>
427
                <configuration>
428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443
                    <excludeSubProjects>false</excludeSubProjects>
                    <addDefaultLicenseMatchers>false</addDefaultLicenseMatchers>
                    <licenses>
                        <license implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense">
                            <licenseFamilyCategory>AL20</licenseFamilyCategory>
                            <licenseFamilyName>Apache License, 2.0</licenseFamilyName>
                            <patterns>
                                <pattern>Licensed to the Apache Software Foundation (ASF)</pattern>
                            </patterns>
                        </license>
                    </licenses>
                    <licenseFamilies>
                        <licenseFamily implementation="org.apache.rat.license.SimpleLicenseFamily">
                            <familyName>Apache License, 2.0</familyName>
                        </licenseFamily>
                    </licenseFamilies>
444 445 446
                    <excludes>
                        <exclude>**/target/**</exclude>
                        <exclude>**/licenses/**</exclude>
wu-sheng's avatar
wu-sheng 已提交
447
                        <exclude>**/ui-licenses/**</exclude>
448 449 450 451 452 453 454 455 456
                        <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>
457 458
                        <exclude>**/.vscode/**</exclude>
                        <exclude>**/.factorypath</exclude>
459

G
Gao Hongtao 已提交
460 461 462
                        <!-- Docker compose envrioment variables file -->
                        <excludes>**/.env/**</excludes>

wu-sheng's avatar
wu-sheng 已提交
463 464
                        <!-- UI IDE configs -->
                        <exclude>**/skywalking-ui/.editorconfig</exclude>
465 466
                        <!-- UI ignore -->
                        <exclude>**/skywalking-ui/.browserslistrc</exclude>
467 468
                        <!-- UI prettier config -->
                        <exclude>**/skywalking-ui/.prettierrc</exclude>
wu-sheng's avatar
wu-sheng 已提交
469

470 471 472 473 474 475
                        <!-- git files -->
                        <exclude>**/.gitignore</exclude>
                        <exclude>**/.gitmodules</exclude>
                        <exclude>**/.git/**</exclude>

                        <!-- CI files -->
476
                        <exclude>**/.muse/**</exclude>
477 478 479 480 481 482 483 484 485 486 487
                        <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 已提交
488 489
                        <!-- Test cases data in JSON format -->
                        <exclude>**/src/test/resources/json/*.json</exclude>
490 491 492 493 494 495

                        <!-- 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 已提交
496
                        <!-- web UI dependencies descriptions -->
497 498
                        <exclude>skywalking-ui/package.json</exclude>
                        <exclude>skywalking-ui/package-lock.json</exclude>
wu-sheng's avatar
wu-sheng 已提交
499

wu-sheng's avatar
wu-sheng 已提交
500
                        <!-- Proto files of Istio, envoy, prometheus and gogoproto projects -->
501
                        <exclude>**/src/main/proto/envoy/**</exclude>
wu-sheng's avatar
wu-sheng 已提交
502 503 504 505
                        <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>
506
                        <exclude>**/src/main/proto/mixer/**</exclude>
wu-sheng's avatar
wu-sheng 已提交
507
                        <exclude>**/src/main/proto/policy/**</exclude>
508
                        <exclude>**/src/main/proto/prometheus/client_model/metrics.proto</exclude>
wu-sheng's avatar
wu-sheng 已提交
509
                        <exclude>**/src/main/proto/protoc-gen-swagger/**</exclude>
510
                        <exclude>**/src/main/proto/validate/validate.proto</exclude>
G
Gao Hongtao 已提交
511
                        <exclude>**/src/main/proto/opencensus/**</exclude>
wu-sheng's avatar
wu-sheng 已提交
512

wu-sheng's avatar
wu-sheng 已提交
513 514 515
                        <!-- generated file from oal grammar and rt template -->
                        <exclude>**/src/main/antlr4/org/apache/skywalking/oal/rt/grammar/OALLexer.tokens</exclude>
                        <exclude>**/src/main/resources/code-templates/*/*.ftl</exclude>
wu-sheng's avatar
wu-sheng 已提交
516

517
                        <!-- Maven Wrapper generated files -->
518
                        <exclude>.mvn/wrapper/**</exclude>
519
                        <exclude>tools/dependencies/known-oap-backend-dependencies.txt</exclude>
520
                        <exclude>apm-checkstyle/CHECKSTYLE_HEAD</exclude>
521

522 523
                        <!-- generated file from test agent plugin scenarios -->
                        <exclude>**/test/plugin/workspace/**</exclude>
524
                        <exclude>**/test/jacoco/**</exclude>
525

526 527 528 529
                        <!-- TSL relevant files for e2e test -->
                        <exclude>**/*.crt</exclude>
                        <exclude>**/*.pem</exclude>

530
                        <exclude>.m2/**</exclude>
531 532
                    </excludes>
                </configuration>
533
                <executions>
彭勇升 pengys 已提交
534
                    <execution>
535
                        <phase>verify</phase>
彭勇升 pengys 已提交
536
                        <goals>
537
                            <goal>check</goal>
彭勇升 pengys 已提交
538 539
                        </goals>
                    </execution>
540 541
                </executions>
            </plugin>
542 543
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
544
                <version>${maven-compiler-plugin.version}</version>
545
                <configuration>
A
ascrutae 已提交
546 547
                    <source>${compiler.version}</source>
                    <target>${compiler.version}</target>
548 549 550 551 552
                    <encoding>${project.build.sourceEncoding}</encoding>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-resources-plugin</artifactId>
553
                <version>${maven-resource-plugin.version}</version>
554 555 556 557
                <configuration>
                    <encoding>${project.build.sourceEncoding}</encoding>
                </configuration>
            </plugin>
A
ascrutae 已提交
558 559 560 561 562 563 564 565
            <plugin>
                <groupId>com.spotify</groupId>
                <artifactId>docker-maven-plugin</artifactId>
                <version>${docker.plugin.version}</version>
                <configuration>
                    <skipDocker>true</skipDocker>
                </configuration>
            </plugin>
A
ascrutae 已提交
566 567
            <plugin>
                <artifactId>maven-source-plugin</artifactId>
568
                <version>${maven-source-plugin.version}</version>
A
ascrutae 已提交
569 570 571
                <executions>
                    <execution>
                        <id>attach-sources</id>
572
                        <phase>none</phase>
A
ascrutae 已提交
573 574 575 576 577 578
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
wu-sheng's avatar
wu-sheng 已提交
579 580 581
            <plugin>
                <groupId>org.eluder.coveralls</groupId>
                <artifactId>coveralls-maven-plugin</artifactId>
582
                <version>${coveralls-maven-plugin.version}</version>
wu-sheng's avatar
wu-sheng 已提交
583
                <configuration>
584
                    <repoToken>${COVERALLS_REPO_TOKEN}</repoToken>
Z
zhangxin 已提交
585 586 587
                    <sourceDirectories>
                        <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
                    </sourceDirectories>
wu-sheng's avatar
wu-sheng 已提交
588 589
                </configuration>
            </plugin>
590 591
            <plugin>
                <artifactId>maven-checkstyle-plugin</artifactId>
592
                <version>${maven-checkstyle-plugin.version}</version>
593
                <configuration>
594 595
                    <configLocation>${maven.multiModuleProjectDirectory}/apm-checkstyle/checkStyle.xml</configLocation>
                    <headerLocation>${maven.multiModuleProjectDirectory}/apm-checkstyle/CHECKSTYLE_HEAD</headerLocation>
596 597 598
                    <encoding>UTF-8</encoding>
                    <consoleOutput>true</consoleOutput>
                    <includeTestSourceDirectory>true</includeTestSourceDirectory>
599
                    <failOnViolation>${checkstyle.fails.on.error}</failOnViolation>
600 601 602 603
                    <sourceDirectories>
                        <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
                        <sourceDirectory>${project.build.testSourceDirectory}</sourceDirectory>
                    </sourceDirectories>
604 605 606 607 608 609 610 611
                    <resourceIncludes>
                        **/*.properties,
                        **/*.sh,
                        **/*.bat,
                        **/*.yml,
                        **/*.yaml,
                        **/*.xml
                    </resourceIncludes>
Z
zhang-wei 已提交
612 613 614 615
                    <resourceExcludes>
                        **/.asf.yaml,
                        **/.github/**
                    </resourceExcludes>
616
                    <excludes>
617
                        **/target/generated-test-sources/**,
618 619 620 621 622
                        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,
wu-sheng's avatar
wu-sheng 已提交
623
                        org/apache/skywalking/oal/rt/grammar/*.java,
624
                        org/apache/skywalking/oap/server/exporter/grpc/*.java,
625 626 627
                        org/apache/skywalking/oap/server/configuration/service/*.java,
                        **/generated/*_jmhType*.java,
                        **/generated/*_jmhTest.java
628
                    </excludes>
629
                    <propertyExpansion>
630
                        import.control=${maven.multiModuleProjectDirectory}/apm-checkstyle/importControl.xml
631
                    </propertyExpansion>
632
                </configuration>
633 634 635
                <executions>
                    <execution>
                        <id>validate</id>
636
                        <phase>process-sources</phase>
637 638 639 640 641 642
                        <goals>
                            <goal>check</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
643 644 645 646 647
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>cobertura-maven-plugin</artifactId>
                <version>${cobertura-maven-plugin.version}</version>
                <configuration>
648
                    <check />
649 650 651
                    <aggregate>true</aggregate>
                    <encoding>${project.build.sourceEncoding}</encoding>
                    <quiet>true</quiet>
652
                    <formats>
653 654
                        <format>html</format>
                        <format>xml</format>
655
                    </formats>
656 657 658 659 660
                    <instrumentation>
                        <ignoreTrivial>true</ignoreTrivial>
                        <ignoreMethodAnnotations>
                            <ignoreMethodAnnotation>lombok.Generated</ignoreMethodAnnotation>
                        </ignoreMethodAnnotations>
661 662 663
                        <includes>
                            <include>org/apache/skywalking/**/*.class</include>
                        </includes>
664 665 666
                        <excludes>
                            <exclude>org/apache/skywalking/**/*Test.class</exclude>
                            <exclude>org/apache/skywalking/**/Test*.class</exclude>
667 668 669 670 671 672 673
                            <exclude>org/apache/skywalking/apm/network/register/v2/**/*.class</exclude>
                            <exclude>org/apache/skywalking/apm/network/common/**/*.class</exclude>
                            <exclude>org/apache/skywalking/apm/network/servicemesh/**/*.class</exclude>
                            <exclude>org/apache/skywalking/apm/network/language/**/*.class</exclude>
                            <exclude>org/apache/skywalking/oap/server/core/remote/grpc/proto/*.class</exclude>
                            <exclude>org/apache/skywalking/oal/rt/grammar/*.class</exclude>
                            <exclude>org/apache/skywalking/oap/server/exporter/grpc/*.class</exclude>
674 675 676
                            <exclude>org/apache/skywalking/apm/toolkit/**/*Activation.class</exclude>
                            <exclude>org/apache/skywalking/apm/plugin/**/*Instrumentation.class</exclude>
                            <exclude>org/apache/skywalking/apm/plugin/**/*Instrumentation$*.class</exclude>
677 678 679 680
                        </excludes>
                    </instrumentation>
                </configuration>
            </plugin>
681 682
        </plugins>
    </build>
A
ascrutae 已提交
683
</project>