pom.xml 19.9 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>8.8.1</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>
47
        <tag>v8.8.1</tag>
彭勇升 pengys 已提交
48 49
    </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
    <profiles>
        <profile>
            <id>backend</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <modules>
                <module>oap-server</module>
85
                <module>oap-server-bom</module>
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
            </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 已提交
106 107 108 109 110 111 112
        <profile>
            <id>all</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <modules>
                <module>oap-server</module>
wu-sheng's avatar
wu-sheng 已提交
113
                <module>oap-server-bom</module>
wu-sheng's avatar
wu-sheng 已提交
114 115 116 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
                <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 已提交
146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167
        <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>
168 169
    </profiles>

P
pengys5 已提交
170 171 172
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <compiler.version>1.8</compiler.version>
173
        <powermock.version>2.0.7</powermock.version>
彭勇升 pengys 已提交
174
        <checkstyle.version>6.18</checkstyle.version>
175
        <junit.version>4.12</junit.version>
176
        <mockito-core.version>3.5.13</mockito-core.version>
177
        <lombok.version>1.18.20</lombok.version>
178

179
        <!-- core lib dependency -->
180 181
        <grpc.version>1.32.1</grpc.version>
        <gson.version>2.8.6</gson.version>
182 183
        <os-maven-plugin.version>1.6.2</os-maven-plugin.version>
        <protobuf-maven-plugin.version>0.6.1</protobuf-maven-plugin.version>
184 185
        <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>
186
        <netty-tcnative-boringssl-static.version>2.0.43.Final</netty-tcnative-boringssl-static.version>
187 188 189 190
        <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>
191

192 193 194 195
        <!-- 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>
196
        <maven-dependency-plugin.version>2.10</maven-dependency-plugin.version>
197 198 199
        <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>
200
        <build-helper-maven-plugin.version>3.2.0</build-helper-maven-plugin.version>
201 202 203 204 205 206 207
        <maven-surefire-plugin.version>2.22.0</maven-surefire-plugin.version>
        <maven-jar-plugin.version>3.1.0</maven-jar-plugin.version>
        <maven-enforcer-plugin.version>3.0.0-M2</maven-enforcer-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>
208
        <maven-checkstyle-plugin.version>3.1.0</maven-checkstyle-plugin.version>
209
        <jmh.version>1.21</jmh.version>
K
kezhenxu94 已提交
210
        <gmaven-plugin.version>1.5</gmaven-plugin.version>
211
        <checkstyle.fails.on.error>true</checkstyle.fails.on.error>
212
        <assertj-core.version>3.20.2</assertj-core.version>
213

P
pengys5 已提交
214
    </properties>
wu-sheng's avatar
wu-sheng 已提交
215

216
    <dependencies>
217
        <dependency>
218 219 220 221 222
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
223 224
            <groupId>org.powermock</groupId>
            <artifactId>powermock-module-junit4</artifactId>
225 226
            <scope>test</scope>
        </dependency>
A
ascrutae 已提交
227 228
        <dependency>
            <groupId>org.powermock</groupId>
229
            <artifactId>powermock-api-mockito2</artifactId>
A
ascrutae 已提交
230 231
            <scope>test</scope>
        </dependency>
232 233 234
        <dependency>
            <groupId>org.objenesis</groupId>
            <artifactId>objenesis</artifactId>
A
ascrutae 已提交
235 236
            <scope>test</scope>
        </dependency>
237 238 239 240
        <dependency>
            <groupId>org.assertj</groupId>
            <artifactId>assertj-core</artifactId>
        </dependency>
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>
248

249 250 251 252 253
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <version>${lombok.version}</version>
            <scope>provided</scope>
254 255 256 257 258 259
        </dependency>
        <dependency>
            <groupId>javax.annotation</groupId>
            <artifactId>javax.annotation-api</artifactId>
            <version>${javax.annotation-api.version}</version>
            <scope>provided</scope>
260
        </dependency>
261
    </dependencies>
wu-sheng's avatar
wu-sheng 已提交
262

263 264 265 266 267
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
268
                <version>${junit.version}</version>
269 270 271 272
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.mockito</groupId>
273 274
                <artifactId>mockito-core</artifactId>
                <version>${mockito-core.version}</version>
275 276 277 278 279 280 281 282 283 284
                <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>
285
                <artifactId>powermock-api-mockito2</artifactId>
286
                <version>${powermock.version}</version>
287 288 289 290 291 292
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.objenesis</groupId>
                <artifactId>objenesis</artifactId>
                <version>${objenesis.version}</version>
293 294
                <scope>test</scope>
            </dependency>
295 296 297 298 299 300
            <dependency>
                <groupId>org.assertj</groupId>
                <artifactId>assertj-core</artifactId>
                <version>${assertj-core.version}</version>
                <scope>test</scope>
            </dependency>
301 302 303 304 305 306
            <dependency>
                <groupId>org.openjdk.jmh</groupId>
                <artifactId>jmh-generator-annprocess</artifactId>
                <version>${jmh.version}</version>
                <scope>test</scope>
            </dependency>
307 308 309
        </dependencies>
    </dependencyManagement>

310
    <build>
311 312 313 314 315 316
        <pluginManagement>
            <plugins>
                <!-- mvn -N io.takari:maven:wrapper -Dmaven=3.5.4 -->
                <plugin>
                    <groupId>io.takari</groupId>
                    <artifactId>maven</artifactId>
317
                    <version>${takari-maven-plugin.version}</version>
318 319 320
                </plugin>
                <plugin>
                    <artifactId>maven-deploy-plugin</artifactId>
321
                    <version>${maven-deploy-plugin.version}</version>
322 323 324
                </plugin>
                <plugin>
                    <artifactId>maven-assembly-plugin</artifactId>
325
                    <version>${maven-assembly-plugin.version}</version>
326 327 328
                </plugin>
                <plugin>
                    <artifactId>maven-failsafe-plugin</artifactId>
329
                    <version>${maven-failsafe-plugin.version}</version>
330 331 332
                </plugin>
                <plugin>
                    <artifactId>maven-jar-plugin</artifactId>
333
                    <version>${maven-jar-plugin.version}</version>
334 335 336
                    <configuration>
                        <forceCreation>true</forceCreation>
                    </configuration>
337
                </plugin>
338 339 340 341 342 343 344 345 346 347
                <!--
                    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>
348
                    <version>${maven-surefire-plugin.version}</version>
349 350 351 352 353 354
                    <configuration>
                        <excludes>
                            <exclude>IT*.class</exclude>
                        </excludes>
                    </configuration>
                </plugin>
355 356
            </plugins>
        </pluginManagement>
357
        <plugins>
358 359 360 361 362 363 364 365 366 367 368 369 370
            <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>
371 372
            <plugin>
                <artifactId>maven-enforcer-plugin</artifactId>
373
                <version>${maven-enforcer-plugin.version}</version>
374 375 376 377 378 379
                <executions>
                    <execution>
                        <id>enforce-java</id>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
380
                        <phase>validate</phase>
381 382 383 384
                        <configuration>
                            <rules>
                                <requireJavaVersion>
                                    <!-- Build has not yet been updated for Java 9+ -->
K
kezhenxu94 已提交
385
                                    <version>1.8</version>
386
                                </requireJavaVersion>
387 388 389
                                <requireMavenVersion>
                                    <version>3.6</version>
                                </requireMavenVersion>
390 391 392 393 394
                            </rules>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
395 396
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
397
                <version>${maven-compiler-plugin.version}</version>
398
                <configuration>
A
ascrutae 已提交
399 400
                    <source>${compiler.version}</source>
                    <target>${compiler.version}</target>
401 402 403 404 405
                    <encoding>${project.build.sourceEncoding}</encoding>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-resources-plugin</artifactId>
406
                <version>${maven-resource-plugin.version}</version>
407 408 409 410
                <configuration>
                    <encoding>${project.build.sourceEncoding}</encoding>
                </configuration>
            </plugin>
A
ascrutae 已提交
411 412 413 414 415 416 417 418
            <plugin>
                <groupId>com.spotify</groupId>
                <artifactId>docker-maven-plugin</artifactId>
                <version>${docker.plugin.version}</version>
                <configuration>
                    <skipDocker>true</skipDocker>
                </configuration>
            </plugin>
A
ascrutae 已提交
419 420
            <plugin>
                <artifactId>maven-source-plugin</artifactId>
421
                <version>${maven-source-plugin.version}</version>
A
ascrutae 已提交
422 423 424 425 426 427 428 429 430
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
431 432
            <plugin>
                <artifactId>maven-checkstyle-plugin</artifactId>
433
                <version>${maven-checkstyle-plugin.version}</version>
434
                <configuration>
435
                    <configLocation>${maven.multiModuleProjectDirectory}/apm-checkstyle/checkStyle.xml</configLocation>
436 437 438
                    <encoding>UTF-8</encoding>
                    <consoleOutput>true</consoleOutput>
                    <includeTestSourceDirectory>true</includeTestSourceDirectory>
439
                    <failOnViolation>${checkstyle.fails.on.error}</failOnViolation>
440 441 442 443
                    <sourceDirectories>
                        <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
                        <sourceDirectory>${project.build.testSourceDirectory}</sourceDirectory>
                    </sourceDirectories>
444 445 446 447 448 449 450 451
                    <resourceIncludes>
                        **/*.properties,
                        **/*.sh,
                        **/*.bat,
                        **/*.yml,
                        **/*.yaml,
                        **/*.xml
                    </resourceIncludes>
Z
zhang-wei 已提交
452 453 454 455
                    <resourceExcludes>
                        **/.asf.yaml,
                        **/.github/**
                    </resourceExcludes>
456
                    <excludes>
457
                        **/target/generated-test-sources/**,
458 459 460 461 462
                        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 已提交
463
                        org/apache/skywalking/oal/rt/grammar/*.java,
464
                        org/apache/skywalking/oap/server/exporter/grpc/*.java,
465 466 467
                        org/apache/skywalking/oap/server/configuration/service/*.java,
                        **/generated/*_jmhType*.java,
                        **/generated/*_jmhTest.java
468 469
                    </excludes>
                </configuration>
470 471 472
                <executions>
                    <execution>
                        <id>validate</id>
473
                        <phase>process-sources</phase>
474 475 476 477 478 479
                        <goals>
                            <goal>check</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
480 481
        </plugins>
    </build>
A
ascrutae 已提交
482
</project>