pom.xml 20.0 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>
P
peng-yongsheng 已提交
26
    <version>6.0.0-alpha-SNAPSHOT</version>
wu-sheng's avatar
wu-sheng 已提交
27

28 29 30 31 32 33
    <parent>
        <groupId>org.apache</groupId>
        <artifactId>apache</artifactId>
        <version>19</version>
    </parent>

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

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

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

彭勇升 pengys 已提交
77 78 79 80 81 82 83
    <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 已提交
84 85
    <issueManagement>
        <system>GitHub</system>
wu-sheng's avatar
wu-sheng 已提交
86
        <url>https://github.com/apache/incubator-skywalking/issues</url>
P
pengys5 已提交
87
    </issueManagement>
wu-sheng's avatar
wu-sheng 已提交
88

彭勇升 pengys 已提交
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
    <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 已提交
111 112 113 114 115 116
    <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>
        <docker.plugin.version>0.4.13</docker.plugin.version>
彭勇升 pengys 已提交
117
        <checkstyle.version>6.18</checkstyle.version>
P
pengys5 已提交
118
    </properties>
wu-sheng's avatar
wu-sheng 已提交
119

120
    <dependencies>
121
        <dependency>
122 123 124 125 126 127
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
A
ascrutae 已提交
128
            <artifactId>mockito-all</artifactId>
129 130
            <scope>test</scope>
        </dependency>
A
ascrutae 已提交
131 132 133 134 135 136 137 138 139 140
        <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>
141
    </dependencies>
wu-sheng's avatar
wu-sheng 已提交
142

143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171
    <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>

172 173
    <build>
        <plugins>
174
            <plugin>
175 176 177 178 179 180 181 182
                <groupId>org.apache.rat</groupId>
                <artifactId>apache-rat-plugin</artifactId>
                <version>0.12</version>
                <configuration>
                    <excludes>
                        <exclude>**/target/**</exclude>
                        <exclude>**/DISCLAIMER</exclude>
                        <exclude>**/licenses/**</exclude>
wu-sheng's avatar
wu-sheng 已提交
183
                        <exclude>**/ui-licenses/**</exclude>
184 185 186 187 188 189 190 191 192 193
                        <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 已提交
194 195 196 197 198 199 200 201
                        <!-- UI IDE configs -->
                        <exclude>**/skywalking-ui/.editorconfig</exclude>
                        <!-- UI Compiler configs -->
                        <exclude>**/skywalking-ui/.webpackrc.js</exclude>
                        <exclude>**/skywalking-ui/.roadhogrc.mock.js</exclude>
                        <!-- UI style check files -->
                        <exclude>**/skywalking-ui/.eslintrc</exclude>
                        <exclude>**/skywalking-ui/.stylelintrc</exclude>
202 203
                        <!-- UI icon files -->
                        <exclude>**/skywalking-ui/public/font/iconfont/**</exclude>
wu-sheng's avatar
wu-sheng 已提交
204

205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221
                        <!-- 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 已提交
222 223
                        <!-- Test cases data in JSON format -->
                        <exclude>**/src/test/resources/json/*.json</exclude>
224 225 226 227 228 229

                        <!-- 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 已提交
230
                        <!-- web UI dependencies descriptions -->
231 232 233 234
                        <exclude>skywalking-ui/package.json</exclude>
                        <exclude>skywalking-ui/package-lock.json</exclude>
                    </excludes>
                </configuration>
235
                <executions>
彭勇升 pengys 已提交
236
                    <execution>
237
                        <phase>verify</phase>
彭勇升 pengys 已提交
238
                        <goals>
239
                            <goal>check</goal>
彭勇升 pengys 已提交
240 241
                        </goals>
                    </execution>
242 243
                </executions>
            </plugin>
244
            <plugin>
245
                <groupId>org.apache.maven.plugins</groupId>
246 247
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
A
ascrutae 已提交
248 249
                    <source>${compiler.version}</source>
                    <target>${compiler.version}</target>
250 251
                    <encoding>${project.build.sourceEncoding}</encoding>
                </configuration>
252
                <version>3.6.1</version>
253 254 255 256 257 258 259 260 261
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <version>2.4.3</version>
                <configuration>
                    <encoding>${project.build.sourceEncoding}</encoding>
                </configuration>
            </plugin>
A
ascrutae 已提交
262 263 264 265 266 267 268 269
            <plugin>
                <groupId>com.spotify</groupId>
                <artifactId>docker-maven-plugin</artifactId>
                <version>${docker.plugin.version}</version>
                <configuration>
                    <skipDocker>true</skipDocker>
                </configuration>
            </plugin>
A
ascrutae 已提交
270 271 272 273 274 275 276 277
            <plugin>
                <!-- 源码插件 -->
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <!-- 发布时自动将源码同时发布的配置 -->
                <executions>
                    <execution>
                        <id>attach-sources</id>
278
                        <phase>none</phase>
A
ascrutae 已提交
279 280 281 282 283 284 285
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
                <version>2.4</version>
            </plugin>
A
ascrutae 已提交
286 287 288 289 290
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>versions-maven-plugin</artifactId>
                <version>2.3</version>
            </plugin>
wu-sheng's avatar
wu-sheng 已提交
291 292 293
            <plugin>
                <groupId>org.eluder.coveralls</groupId>
                <artifactId>coveralls-maven-plugin</artifactId>
wu-sheng's avatar
wu-sheng 已提交
294
                <version>4.1.0</version>
wu-sheng's avatar
wu-sheng 已提交
295
                <configuration>
Z
zhangxin 已提交
296 297 298
                    <sourceDirectories>
                        <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
                    </sourceDirectories>
wu-sheng's avatar
wu-sheng 已提交
299 300 301 302
                </configuration>
            </plugin>
            <!-- 覆盖率 -->
            <plugin>
303 304 305
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <version>0.7.9</version>
L
lican 已提交
306 307 308 309 310
                <configuration>
                    <excludes>
                        <exclude>*MethodAccess</exclude>
                    </excludes>
                </configuration>
311 312 313 314 315 316 317 318
                <executions>
                    <execution>
                        <id>prepare-agent</id>
                        <goals>
                            <goal>prepare-agent</goal>
                        </goals>
                    </execution>
                </executions>
wu-sheng's avatar
wu-sheng 已提交
319
            </plugin>
320 321 322
            <plugin>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <version>2.17</version>
彭勇升 pengys 已提交
323 324 325 326
                <dependencies>
                    <dependency>
                        <groupId>org.apache.skywalking</groupId>
                        <artifactId>apm-checkstyle</artifactId>
327
                        <version>5.0.0-beta</version>
彭勇升 pengys 已提交
328
                    </dependency>
329 330 331 332 333
                    <dependency>
                        <groupId>com.puppycrawl.tools</groupId>
                        <artifactId>checkstyle</artifactId>
                        <version>8.11</version>
                    </dependency>
彭勇升 pengys 已提交
334
                </dependencies>
335 336 337 338 339
                <executions>
                    <execution>
                        <id>validate</id>
                        <phase>validate</phase>
                        <configuration>
彭勇升 pengys 已提交
340 341
                            <configLocation>skywalking/checkStyle.xml</configLocation>
                            <headerLocation>skywalking/CHECKSTYLE_HEAD</headerLocation>
342 343
                            <encoding>UTF-8</encoding>
                            <consoleOutput>true</consoleOutput>
P
peng-yongsheng 已提交
344
                            <includeTestSourceDirectory>true</includeTestSourceDirectory>
345
                            <failsOnError>true</failsOnError>
346 347 348
                            <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 已提交
349
                            </excludes>
350 351 352 353 354 355 356
                        </configuration>
                        <goals>
                            <goal>check</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
357 358
        </plugins>
    </build>
359 360 361


    <profiles>
362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395
        <profile>
            <id>travis-ci-submodule</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>exec-maven-plugin</artifactId>
                        <version>1.6.0</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>
396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437
        <profile>
            <!-- ojdbc is not Apache license compatible, so it must be manually downloaded first -->
            <id>install-ojdbc</id>
            <activation>
                <file>
                    <exists>${basedir}/ci-dependencies/ojdbc14-10.2.0.4.0.jar</exists>
                </file>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>exec-maven-plugin</artifactId>
                        <version>1.6.0</version>
                        <executions>
                            <execution>
                                <id>install-ojdbc</id>
                                <inherited>false</inherited>
                                <phase>process-resources</phase>
                                <goals>
                                    <goal>exec</goal>
                                </goals>
                                <configuration>
                                    <executable>mvn</executable>
                                    <arguments>
                                        <argument>install:install-file</argument>
                                        <argument>-Dfile=ojdbc14-10.2.0.4.0.jar</argument>
                                        <argument>-DgroupId=com.oracle</argument>
                                        <argument>-DartifactId=ojdbc14</argument>
                                        <argument>-Dversion=10.2.0.4.0</argument>
                                        <argument>-Dpackaging=jar</argument>
                                    </arguments>
                                    <workingDirectory>${project.basedir}/ci-dependencies</workingDirectory>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <!-- resin is not Apache license compatible, so it must be manually downloaded first -->
wu-sheng's avatar
wu-sheng 已提交
438
            <!-- Use resin 3.x jar file as a beacon only -->
439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 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 485 486
            <id>install-resin-3</id>
            <activation>
                <file>
                    <exists>${basedir}/ci-dependencies/resin-3.0.9.jar</exists>
                </file>
            </activation>
        </profile>
        <profile>
            <!-- resin is not Apache license compatible, so it must be manually downloaded first -->
            <id>install-resin-4</id>
            <activation>
                <file>
                    <exists>${basedir}/ci-dependencies/resin-4.0.41.jar</exists>
                </file>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>exec-maven-plugin</artifactId>
                        <version>1.6.0</version>
                        <executions>
                            <execution>
                                <id>install-resin-4</id>
                                <inherited>false</inherited>
                                <phase>process-resources</phase>
                                <goals>
                                    <goal>exec</goal>
                                </goals>
                                <configuration>
                                    <executable>mvn</executable>
                                    <arguments>
                                        <argument>install:install-file</argument>
                                        <argument>-Dfile=resin-4.0.41.jar</argument>
                                        <argument>-DgroupId=com.caucho</argument>
                                        <argument>-DartifactId=resin</argument>
                                        <argument>-Dversion=4.0.41</argument>
                                        <argument>-Dpackaging=jar</argument>
                                    </arguments>
                                    <workingDirectory>${project.basedir}/ci-dependencies</workingDirectory>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
彭勇升 pengys 已提交
487

A
ascrutae 已提交
488
</project>