zipkin-parent-2.21.7.pom 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright 2015-2020 The OpenZipkin Authors
  4. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
  5. in compliance with the License. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software distributed under the License
  8. is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
  9. or implied. See the License for the specific language governing permissions and limitations under
  10. the License.
  11. -->
  12. <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">
  13. <modelVersion>4.0.0</modelVersion>
  14. <groupId>io.zipkin</groupId>
  15. <artifactId>zipkin-parent</artifactId>
  16. <version>2.21.7</version>
  17. <packaging>pom</packaging>
  18. <modules>
  19. <module>zipkin</module>
  20. <module>zipkin-tests</module>
  21. <module>zipkin-junit</module>
  22. <module>benchmarks</module>
  23. <module>zipkin-storage</module>
  24. <module>zipkin-collector</module>
  25. <module>zipkin-server</module>
  26. </modules>
  27. <properties>
  28. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  29. <project.build.resourceEncoding>UTF-8</project.build.resourceEncoding>
  30. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  31. <!-- default bytecode version for src/main -->
  32. <main.java.version>1.7</main.java.version>
  33. <main.signature.artifact>java17</main.signature.artifact>
  34. <!-- override to set exclusions per-project -->
  35. <errorprone.args />
  36. <errorprone.version>2.4.0</errorprone.version>
  37. <main.basedir>${project.basedir}</main.basedir>
  38. <!-- This allows you to test feature branches with jitpack -->
  39. <armeria.groupId>com.linecorp.armeria</armeria.groupId>
  40. <armeria.version>0.99.9</armeria.version>
  41. <!-- Match Armeria version to avoid conflicts including running tests in the IDE -->
  42. <netty.version>4.1.51.Final</netty.version>
  43. <!-- It's easy for Jackson dependencies to get misaligned, so we manage it ourselves. -->
  44. <jackson.version>2.11.2</jackson.version>
  45. <!-- Only used for proto interop testing; wire-maven-plugin is usually behind latest. -->
  46. <wire.version>3.0.2</wire.version>
  47. <unpack-proto.directory>${project.build.directory}/test/proto</unpack-proto.directory>
  48. <cassandra-driver-core.version>3.10.1</cassandra-driver-core.version>
  49. <jooq.version>3.13.4</jooq.version>
  50. <micrometer.version>1.5.4</micrometer.version>
  51. <spring-boot.version>2.3.3.RELEASE</spring-boot.version>
  52. <!-- MySQL connector is GPL, even if it has an OSS exception.
  53. https://www.mysql.com/about/legal/licensing/foss-exception/
  54. MariaDB has a friendlier license, LGPL, which is less scary in audits.
  55. -->
  56. <mariadb-java-client.version>2.6.2</mariadb-java-client.version>
  57. <HikariCP.version>3.4.5</HikariCP.version>
  58. <slf4j.version>1.7.30</slf4j.version>
  59. <junit.version>4.13</junit.version>
  60. <junit-jupiter.version>5.6.2</junit-jupiter.version>
  61. <powermock.version>2.0.7</powermock.version>
  62. <mockito.version>3.4.6</mockito.version>
  63. <assertj.version>3.16.1</assertj.version>
  64. <awaitility.version>4.0.3</awaitility.version>
  65. <hamcrest.version>1.3</hamcrest.version>
  66. <testcontainers.version>1.14.3</testcontainers.version>
  67. <okhttp.version>4.8.1</okhttp.version>
  68. <auto-value.version>1.7.4</auto-value.version>
  69. <animal-sniffer-maven-plugin.version>1.19</animal-sniffer-maven-plugin.version>
  70. <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
  71. <maven-deploy-plugin.version>3.0.0-M1</maven-deploy-plugin.version>
  72. <maven-install-plugin.version>3.0.0-M1</maven-install-plugin.version>
  73. <maven-release-plugin.version>3.0.0-M1</maven-release-plugin.version>
  74. <maven-source-plugin.version>3.2.1</maven-source-plugin.version>
  75. <maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
  76. <maven-jar-plugin.version>3.2.0</maven-jar-plugin.version>
  77. <maven-shade-plugin.version>3.2.4</maven-shade-plugin.version>
  78. <!-- 3.0.0-M5 breaks the build: https://github.com/openzipkin/zipkin/issues/3159 -->
  79. <maven-failsafe-plugin.version>3.0.0-M4</maven-failsafe-plugin.version>
  80. <maven-enforcer-plugin.version>3.0.0-M3</maven-enforcer-plugin.version>
  81. <maven-bundle-plugin.version>5.1.1</maven-bundle-plugin.version>
  82. <!-- TODO: cleanup any redundant ignores now also in the 4.0 release (once final) -->
  83. <license-maven-plugin.version>4.0.rc1</license-maven-plugin.version>
  84. <git-commit-id.version>4.0.2</git-commit-id.version>
  85. </properties>
  86. <name>Zipkin (Parent)</name>
  87. <description>Zipkin (Parent)</description>
  88. <url>https://github.com/openzipkin/zipkin</url>
  89. <inceptionYear>2015</inceptionYear>
  90. <organization>
  91. <name>OpenZipkin</name>
  92. <url>http://zipkin.io/</url>
  93. </organization>
  94. <licenses>
  95. <license>
  96. <name>The Apache Software License, Version 2.0</name>
  97. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  98. <distribution>repo</distribution>
  99. </license>
  100. </licenses>
  101. <scm>
  102. <url>https://github.com/openzipkin/zipkin</url>
  103. <connection>scm:git:https://github.com/openzipkin/zipkin.git</connection>
  104. <developerConnection>scm:git:https://github.com/openzipkin/zipkin.git</developerConnection>
  105. <tag>2.21.7</tag>
  106. </scm>
  107. <!-- Developer section is needed for Maven Central, but doesn't need to include each person -->
  108. <developers>
  109. <developer>
  110. <id>openzipkin</id>
  111. <name>OpenZipkin Gitter</name>
  112. <url>https://gitter.im/openzipkin/zipkin</url>
  113. </developer>
  114. </developers>
  115. <distributionManagement>
  116. <repository>
  117. <id>bintray</id>
  118. <url>https://api.bintray.com/maven/openzipkin/maven/zipkin/;publish=1</url>
  119. </repository>
  120. <snapshotRepository>
  121. <id>jfrog-snapshots</id>
  122. <url>https://oss.jfrog.org/artifactory/oss-snapshot-local</url>
  123. </snapshotRepository>
  124. </distributionManagement>
  125. <issueManagement>
  126. <system>Github</system>
  127. <url>https://github.com/openzipkin/zipkin/issues</url>
  128. </issueManagement>
  129. <dependencyManagement>
  130. <dependencies>
  131. <dependency>
  132. <groupId>io.netty</groupId>
  133. <artifactId>netty-bom</artifactId>
  134. <version>${netty.version}</version>
  135. <type>pom</type>
  136. <scope>import</scope>
  137. </dependency>
  138. <dependency>
  139. <groupId>javax.annotation</groupId>
  140. <artifactId>javax.annotation-api</artifactId>
  141. <version>1.3.1</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>org.jooq</groupId>
  145. <artifactId>jooq</artifactId>
  146. <version>${jooq.version}</version>
  147. </dependency>
  148. <dependency>
  149. <groupId>${armeria.groupId}</groupId>
  150. <artifactId>armeria-spring-boot2-autoconfigure</artifactId>
  151. <version>${armeria.version}</version>
  152. <exclusions>
  153. <exclusion>
  154. <groupId>${armeria.groupId}</groupId>
  155. <artifactId>armeria-logback</artifactId>
  156. </exclusion>
  157. <exclusion>
  158. <groupId>javax.validation</groupId>
  159. <artifactId>validation-api</artifactId>
  160. </exclusion>
  161. </exclusions>
  162. </dependency>
  163. <!-- Makes sure spring doesn't eagerly bind tomcat or slf4j -->
  164. <dependency>
  165. <groupId>org.springframework.boot</groupId>
  166. <artifactId>spring-boot-starter</artifactId>
  167. <version>${spring-boot.version}</version>
  168. <exclusions>
  169. <exclusion>
  170. <groupId>org.springframework.boot</groupId>
  171. <artifactId>spring-boot-starter-logging</artifactId>
  172. </exclusion>
  173. </exclusions>
  174. </dependency>
  175. <dependency>
  176. <groupId>org.springframework.boot</groupId>
  177. <artifactId>spring-boot-starter-actuator</artifactId>
  178. <version>${spring-boot.version}</version>
  179. <exclusions>
  180. <exclusion>
  181. <groupId>org.springframework.boot</groupId>
  182. <artifactId>spring-boot-starter-logging</artifactId>
  183. </exclusion>
  184. </exclusions>
  185. </dependency>
  186. <!-- End spring-boot-dependencies overrides -->
  187. <dependency>
  188. <groupId>com.google.auto.value</groupId>
  189. <artifactId>auto-value-annotations</artifactId>
  190. <version>${auto-value.version}</version>
  191. </dependency>
  192. <dependency>
  193. <groupId>com.google.auto.value</groupId>
  194. <artifactId>auto-value</artifactId>
  195. <version>${auto-value.version}</version>
  196. </dependency>
  197. <dependency>
  198. <groupId>org.slf4j</groupId>
  199. <artifactId>slf4j-api</artifactId>
  200. <version>${slf4j.version}</version>
  201. </dependency>
  202. <dependency>
  203. <groupId>org.slf4j</groupId>
  204. <artifactId>jul-to-slf4j</artifactId>
  205. <version>${slf4j.version}</version>
  206. </dependency>
  207. <dependency>
  208. <groupId>org.slf4j</groupId>
  209. <artifactId>log4j-over-slf4j</artifactId>
  210. <version>${slf4j.version}</version>
  211. </dependency>
  212. <dependency>
  213. <groupId>org.slf4j</groupId>
  214. <artifactId>slf4j-simple</artifactId>
  215. <version>${slf4j.version}</version>
  216. </dependency>
  217. <dependency>
  218. <groupId>com.fasterxml.jackson</groupId>
  219. <artifactId>jackson-bom</artifactId>
  220. <version>${jackson.version}</version>
  221. <type>pom</type>
  222. <scope>import</scope>
  223. </dependency>
  224. <!-- for testing flink -->
  225. <dependency>
  226. <groupId>com.esotericsoftware</groupId>
  227. <artifactId>kryo</artifactId>
  228. <version>5.0.0-RC9</version>
  229. </dependency>
  230. <!-- Internal classes used in SpanBytesDecoder.JSON_V[12] -->
  231. <dependency>
  232. <groupId>com.google.code.gson</groupId>
  233. <artifactId>gson</artifactId>
  234. <version>2.8.6</version>
  235. </dependency>
  236. <dependency>
  237. <groupId>junit</groupId>
  238. <artifactId>junit</artifactId>
  239. <version>${junit.version}</version>
  240. </dependency>
  241. <dependency>
  242. <groupId>org.junit.jupiter</groupId>
  243. <artifactId>junit-jupiter</artifactId>
  244. <version>${junit-jupiter.version}</version>
  245. </dependency>
  246. <dependency>
  247. <groupId>org.junit.vintage</groupId>
  248. <artifactId>junit-vintage-engine</artifactId>
  249. <version>${junit-jupiter.version}</version>
  250. </dependency>
  251. <!--
  252. Current versions of JUnit5 provide the above junit-jupiter artifact for convenience but we may
  253. still have transitive dependencies on these older artifacts and have to make sure they're all
  254. using the same version.
  255. -->
  256. <dependency>
  257. <groupId>org.junit.jupiter</groupId>
  258. <artifactId>junit-jupiter-api</artifactId>
  259. <version>${junit-jupiter.version}</version>
  260. </dependency>
  261. <dependency>
  262. <groupId>org.junit.jupiter</groupId>
  263. <artifactId>junit-jupiter-engine</artifactId>
  264. <version>${junit-jupiter.version}</version>
  265. </dependency>
  266. <dependency>
  267. <groupId>org.assertj</groupId>
  268. <artifactId>assertj-core</artifactId>
  269. <version>${assertj.version}</version>
  270. </dependency>
  271. <dependency>
  272. <groupId>org.awaitility</groupId>
  273. <artifactId>awaitility</artifactId>
  274. <version>${awaitility.version}</version>
  275. </dependency>
  276. <dependency>
  277. <groupId>org.mockito</groupId>
  278. <artifactId>mockito-core</artifactId>
  279. <version>${mockito.version}</version>
  280. </dependency>
  281. <dependency>
  282. <groupId>org.testcontainers</groupId>
  283. <artifactId>testcontainers</artifactId>
  284. <version>${testcontainers.version}</version>
  285. </dependency>
  286. <dependency>
  287. <groupId>org.testcontainers</groupId>
  288. <artifactId>mysql</artifactId>
  289. <version>${testcontainers.version}</version>
  290. </dependency>
  291. <dependency>
  292. <groupId>org.mariadb.jdbc</groupId>
  293. <artifactId>mariadb-java-client</artifactId>
  294. <version>${mariadb-java-client.version}</version>
  295. </dependency>
  296. <dependency>
  297. <groupId>com.zaxxer</groupId>
  298. <artifactId>HikariCP</artifactId>
  299. <version>${HikariCP.version}</version>
  300. </dependency>
  301. <dependency>
  302. <groupId>io.zipkin.proto3</groupId>
  303. <artifactId>zipkin-proto3</artifactId>
  304. <version>0.2.2</version>
  305. </dependency>
  306. <dependency>
  307. <groupId>com.squareup.wire</groupId>
  308. <artifactId>wire-runtime</artifactId>
  309. <version>${wire.version}</version>
  310. </dependency>
  311. </dependencies>
  312. </dependencyManagement>
  313. <dependencies>
  314. <dependency>
  315. <groupId>junit</groupId>
  316. <artifactId>junit</artifactId>
  317. <scope>test</scope>
  318. </dependency>
  319. <dependency>
  320. <groupId>org.junit.jupiter</groupId>
  321. <artifactId>junit-jupiter</artifactId>
  322. <scope>test</scope>
  323. </dependency>
  324. <dependency>
  325. <groupId>org.junit.vintage</groupId>
  326. <artifactId>junit-vintage-engine</artifactId>
  327. <scope>test</scope>
  328. </dependency>
  329. <dependency>
  330. <groupId>org.assertj</groupId>
  331. <artifactId>assertj-core</artifactId>
  332. <scope>test</scope>
  333. </dependency>
  334. </dependencies>
  335. <build>
  336. <pluginManagement>
  337. <plugins>
  338. <!-- mvn -N io.takari:maven:wrapper generates the ./mvnw script -->
  339. <plugin>
  340. <groupId>io.takari</groupId>
  341. <artifactId>maven</artifactId>
  342. <version>0.7.7</version>
  343. <configuration>
  344. <maven>3.6.3</maven>
  345. </configuration>
  346. </plugin>
  347. <plugin>
  348. <artifactId>maven-compiler-plugin</artifactId>
  349. <version>${maven-compiler-plugin.version}</version>
  350. <inherited>true</inherited>
  351. <configuration>
  352. <!-- Retrolambda will rewrite lambdas as Java 6 bytecode -->
  353. <source>1.8</source>
  354. <target>1.8</target>
  355. <!-- or die! com.sun.tools.javac.api.JavacTool -->
  356. <fork>true</fork>
  357. <showWarnings>true</showWarnings>
  358. </configuration>
  359. </plugin>
  360. <plugin>
  361. <artifactId>maven-jar-plugin</artifactId>
  362. <version>${maven-jar-plugin.version}</version>
  363. <configuration>
  364. <archive>
  365. <!-- prevents huge pom file from also being added to the jar under META-INF/maven -->
  366. <addMavenDescriptor>false</addMavenDescriptor>
  367. </archive>
  368. </configuration>
  369. </plugin>
  370. <plugin>
  371. <artifactId>maven-shade-plugin</artifactId>
  372. <version>${maven-shade-plugin.version}</version>
  373. </plugin>
  374. <plugin>
  375. <groupId>org.eclipse.m2e</groupId>
  376. <artifactId>lifecycle-mapping</artifactId>
  377. <version>1.0.0</version>
  378. <configuration>
  379. <lifecycleMappingMetadata>
  380. <pluginExecutions>
  381. <pluginExecution>
  382. <pluginExecutionFilter>
  383. <groupId>org.apache.maven.plugins</groupId>
  384. <artifactId>maven-compiler-plugin</artifactId>
  385. <versionRange>[3.7,)</versionRange>
  386. <goals>
  387. <goal>compile</goal>
  388. <goal>testCompile</goal>
  389. </goals>
  390. </pluginExecutionFilter>
  391. <action>
  392. <configurator>
  393. <id>org.eclipse.m2e.jdt.javaConfigurator</id>
  394. </configurator>
  395. </action>
  396. </pluginExecution>
  397. </pluginExecutions>
  398. </lifecycleMappingMetadata>
  399. </configuration>
  400. </plugin>
  401. <!-- The below plugins compile protobuf stubs in the indicated source tree -->
  402. <plugin>
  403. <artifactId>maven-dependency-plugin</artifactId>
  404. <executions>
  405. <!-- wire-maven-plugin cannot get proto definitions from dependencies: this will -->
  406. <execution>
  407. <id>unpack-proto</id>
  408. <phase>generate-sources</phase>
  409. <goals>
  410. <goal>unpack-dependencies</goal>
  411. </goals>
  412. <configuration>
  413. <includeArtifactIds>zipkin-proto3</includeArtifactIds>
  414. <includes>**/*.proto</includes>
  415. <outputDirectory>${unpack-proto.directory}</outputDirectory>
  416. </configuration>
  417. </execution>
  418. </executions>
  419. </plugin>
  420. <plugin>
  421. <groupId>com.squareup.wire</groupId>
  422. <artifactId>wire-maven-plugin</artifactId>
  423. <version>${wire.version}</version>
  424. <executions>
  425. <execution>
  426. <phase>generate-sources</phase>
  427. <goals>
  428. <goal>generate-sources</goal>
  429. </goals>
  430. <configuration>
  431. <protoSourceDirectory>${unpack-proto.directory}</protoSourceDirectory>
  432. <includes>
  433. <include>zipkin.proto3.*</include>
  434. </includes>
  435. </configuration>
  436. </execution>
  437. </executions>
  438. </plugin>
  439. </plugins>
  440. </pluginManagement>
  441. <plugins>
  442. <!-- Top-level to ensure our server can use JDK 1.8
  443. (by checking we don't accidentally use later apis) -->
  444. <plugin>
  445. <groupId>org.codehaus.mojo</groupId>
  446. <artifactId>animal-sniffer-maven-plugin</artifactId>
  447. <version>${animal-sniffer-maven-plugin.version}</version>
  448. <configuration>
  449. <signature>
  450. <groupId>org.codehaus.mojo.signature</groupId>
  451. <artifactId>${main.signature.artifact}</artifactId>
  452. <version>1.0</version>
  453. </signature>
  454. <checkTestClasses>false</checkTestClasses>
  455. </configuration>
  456. <executions>
  457. <execution>
  458. <goals>
  459. <goal>check</goal>
  460. </goals>
  461. </execution>
  462. </executions>
  463. </plugin>
  464. <plugin>
  465. <artifactId>maven-surefire-plugin</artifactId>
  466. <version>${maven-failsafe-plugin.version}</version>
  467. </plugin>
  468. <plugin>
  469. <artifactId>maven-failsafe-plugin</artifactId>
  470. <version>${maven-failsafe-plugin.version}</version>
  471. <executions>
  472. <execution>
  473. <id>integration-test</id>
  474. <goals>
  475. <goal>integration-test</goal>
  476. </goals>
  477. </execution>
  478. <execution>
  479. <id>verify</id>
  480. <goals>
  481. <goal>verify</goal>
  482. </goals>
  483. </execution>
  484. </executions>
  485. </plugin>
  486. <plugin>
  487. <artifactId>maven-install-plugin</artifactId>
  488. <version>${maven-install-plugin.version}</version>
  489. </plugin>
  490. <!-- Uploads occur as a last step (which also adds checksums) -->
  491. <plugin>
  492. <artifactId>maven-deploy-plugin</artifactId>
  493. <version>${maven-deploy-plugin.version}</version>
  494. </plugin>
  495. <plugin>
  496. <artifactId>maven-release-plugin</artifactId>
  497. <version>${maven-release-plugin.version}</version>
  498. <configuration>
  499. <useReleaseProfile>false</useReleaseProfile>
  500. <releaseProfiles>release</releaseProfiles>
  501. <autoVersionSubmodules>true</autoVersionSubmodules>
  502. <!-- to match zipkin-scala (openzipkin/zipkin) -->
  503. <tagNameFormat>@{project.version}</tagNameFormat>
  504. </configuration>
  505. </plugin>
  506. <plugin>
  507. <groupId>io.zipkin.centralsync-maven-plugin</groupId>
  508. <artifactId>centralsync-maven-plugin</artifactId>
  509. <version>0.1.1</version>
  510. <configuration>
  511. <packageName>zipkin</packageName>
  512. </configuration>
  513. </plugin>
  514. <plugin>
  515. <artifactId>maven-enforcer-plugin</artifactId>
  516. <version>${maven-enforcer-plugin.version}</version>
  517. <executions>
  518. <execution>
  519. <id>enforce-java</id>
  520. <goals>
  521. <goal>enforce</goal>
  522. </goals>
  523. <configuration>
  524. <rules>
  525. <requireJavaVersion>
  526. <version>[1.8,15)</version>
  527. </requireJavaVersion>
  528. </rules>
  529. </configuration>
  530. </execution>
  531. </executions>
  532. </plugin>
  533. </plugins>
  534. </build>
  535. <profiles>
  536. <profile>
  537. <id>include-lens</id>
  538. <activation>
  539. <property>
  540. <name>!skipLens</name>
  541. </property>
  542. </activation>
  543. <modules>
  544. <module>zipkin-lens</module>
  545. </modules>
  546. </profile>
  547. <profile>
  548. <id>license-check</id>
  549. <activation>
  550. <property>
  551. <name>!skipTests</name>
  552. </property>
  553. </activation>
  554. <build>
  555. <plugins>
  556. <plugin>
  557. <groupId>com.mycila</groupId>
  558. <artifactId>license-maven-plugin</artifactId>
  559. <version>${license-maven-plugin.version}</version>
  560. <configuration>
  561. <!-- session.executionRootDirectory resolves properly even with nested modules -->
  562. <header>${main.basedir}/src/etc/header.txt</header>
  563. <mapping>
  564. <!-- Don't use javadoc style as this makes code formatters break it by adding tags! -->
  565. <java>SLASHSTAR_STYLE</java>
  566. <kt>SLASHSTAR_STYLE</kt>
  567. <jsx>SLASHSTAR_STYLE</jsx>
  568. <ts>SLASHSTAR_STYLE</ts>
  569. <tsx>SLASHSTAR_STYLE</tsx>
  570. <bnd>SCRIPT_STYLE</bnd>
  571. <ejs>XML_STYLE</ejs>
  572. <css>SLASHSTAR_STYLE</css>
  573. <Dockerfile.release>SCRIPT_STYLE</Dockerfile.release>
  574. <post_push>SCRIPT_STYLE</post_push>
  575. <build>SCRIPT_STYLE</build>
  576. </mapping>
  577. <excludes>
  578. <exclude>**/simplelogger.properties</exclude>
  579. <exclude>**/continuous-build.yml</exclude>
  580. <exclude>.travis.yml</exclude>
  581. <exclude>**/*.dockerignore</exclude>
  582. <exclude>.editorconfig</exclude>
  583. <exclude>.gitattributes</exclude>
  584. <exclude>.gitignore</exclude>
  585. <exclude>.github/**</exclude>
  586. <exclude>.mvn/**</exclude>
  587. <exclude>mvnw*</exclude>
  588. <exclude>etc/header.txt</exclude>
  589. <exclude>docker/**/*_profile</exclude>
  590. <exclude>hooks/**</exclude>
  591. <exclude>**/nginx.conf</exclude>
  592. <exclude>**/.idea/**</exclude>
  593. <exclude>**/node_modules/**</exclude>
  594. <exclude>**/build/**</exclude>
  595. <exclude>**/coverage/**</exclude>
  596. <exclude>**/.babelrc</exclude>
  597. <exclude>**/.bowerrc</exclude>
  598. <exclude>**/.editorconfig</exclude>
  599. <exclude>**/.env.development</exclude>
  600. <exclude>**/.eslintignore</exclude>
  601. <exclude>**/.eslintrc</exclude>
  602. <exclude>**/.eslintrc</exclude>
  603. <exclude>**/.eslintrc.js</exclude>
  604. <exclude>**/.linguirc</exclude>
  605. <exclude>**/testdata/**/*.json</exclude>
  606. <exclude>**/test/data/**/*.json</exclude>
  607. <exclude>**/src/translations/**</exclude>
  608. <exclude>LICENSE</exclude>&gt;
  609. <exclude>**/*.md</exclude>
  610. <exclude>**/*.bnd</exclude>
  611. <exclude>**/src/main/resources/zipkin.txt</exclude>
  612. <exclude>**/src/main/resources/*.yml</exclude>
  613. <exclude>**/spring.factories</exclude>
  614. <!-- Cassandra integration tests break when license headers are present -->
  615. <exclude>**/src/main/resources/*.cql</exclude>
  616. <exclude>kafka_*/**</exclude>
  617. <exclude>**/nohup.out</exclude>
  618. <exclude>src/test/resources/**</exclude>
  619. <exclude>**/generated/**</exclude>
  620. </excludes>
  621. <strictCheck>true</strictCheck>
  622. </configuration>
  623. <dependencies>
  624. <dependency>
  625. <groupId>com.mycila</groupId>
  626. <artifactId>license-maven-plugin-git</artifactId>
  627. <version>${license-maven-plugin.version}</version>
  628. </dependency>
  629. </dependencies>
  630. <executions>
  631. <execution>
  632. <goals>
  633. <goal>check</goal>
  634. </goals>
  635. <phase>compile</phase>
  636. </execution>
  637. </executions>
  638. </plugin>
  639. </plugins>
  640. </build>
  641. </profile>
  642. <profile>
  643. <id>error-prone-9+</id>
  644. <activation>
  645. <jdk>[9,15)</jdk>
  646. <activeByDefault>false</activeByDefault>
  647. </activation>
  648. <build>
  649. <plugins>
  650. <plugin>
  651. <artifactId>maven-compiler-plugin</artifactId>
  652. <executions>
  653. <execution>
  654. <!-- only use errorprone on main source tree -->
  655. <id>default-compile</id>
  656. <phase>compile</phase>
  657. <goals>
  658. <goal>compile</goal>
  659. </goals>
  660. <configuration>
  661. <forceJavacCompilerUse>true</forceJavacCompilerUse>
  662. <compilerArgs>
  663. <arg>-XDcompilePolicy=simple</arg>
  664. <arg>-Xplugin:ErrorProne ${errorprone.args}</arg>
  665. </compilerArgs>
  666. <annotationProcessorPaths>
  667. <processorPath>
  668. <groupId>com.google.errorprone</groupId>
  669. <artifactId>error_prone_core</artifactId>
  670. <version>${errorprone.version}</version>
  671. </processorPath>
  672. <!-- auto-value is placed here eventhough not needed for all projects as
  673. configuring along with errorprone is tricky in subprojects -->
  674. <processorPath>
  675. <groupId>com.google.auto.value</groupId>
  676. <artifactId>auto-value</artifactId>
  677. <version>${auto-value.version}</version>
  678. </processorPath>
  679. </annotationProcessorPaths>
  680. </configuration>
  681. </execution>
  682. </executions>
  683. </plugin>
  684. </plugins>
  685. </build>
  686. </profile>
  687. <profile>
  688. <id>release</id>
  689. <build>
  690. <plugins>
  691. <!-- disable license plugin since it should have already checked things and #1512 -->
  692. <plugin>
  693. <groupId>com.mycila</groupId>
  694. <artifactId>license-maven-plugin</artifactId>
  695. <executions>
  696. <execution>
  697. <phase>none</phase>
  698. </execution>
  699. </executions>
  700. </plugin>
  701. <!-- Creates source jar -->
  702. <plugin>
  703. <artifactId>maven-source-plugin</artifactId>
  704. <version>${maven-source-plugin.version}</version>
  705. <executions>
  706. <execution>
  707. <id>attach-sources</id>
  708. <goals>
  709. <goal>jar</goal>
  710. </goals>
  711. </execution>
  712. </executions>
  713. </plugin>
  714. <!-- Creates javadoc jar, skipping internal classes -->
  715. <plugin>
  716. <artifactId>maven-javadoc-plugin</artifactId>
  717. <version>${maven-javadoc-plugin.version}</version>
  718. <configuration>
  719. <sourceFileExcludes>
  720. <exclude>**/internal/*.java</exclude>
  721. <exclude>**/Internal*.java</exclude>
  722. </sourceFileExcludes>
  723. <excludePackageNames>*.internal.*</excludePackageNames>
  724. <failOnError>false</failOnError>
  725. <!-- hush pedantic warnings: we don't put param and return on everything! -->
  726. <doclint>none</doclint>
  727. <!-- While we publish modules, our source is pre-Java9 so tell javadoc that. -->
  728. <source>8</source>
  729. </configuration>
  730. <executions>
  731. <execution>
  732. <id>attach-javadocs</id>
  733. <goals>
  734. <goal>jar</goal>
  735. </goals>
  736. <phase>package</phase>
  737. </execution>
  738. </executions>
  739. </plugin>
  740. </plugins>
  741. </build>
  742. </profile>
  743. <profile>
  744. <id>netbeans</id>
  745. <activation>
  746. <activeByDefault>true</activeByDefault>
  747. </activation>
  748. <properties>
  749. <!-- NetBeans -->
  750. <org-netbeans-modules-editor-indent.CodeStyle.usedProfile>project</org-netbeans-modules-editor-indent.CodeStyle.usedProfile>
  751. <org-netbeans-modules-editor-indent.CodeStyle.project.indent-shift-width>2</org-netbeans-modules-editor-indent.CodeStyle.project.indent-shift-width>
  752. <org-netbeans-modules-editor-indent.CodeStyle.project.spaces-per-tab>2</org-netbeans-modules-editor-indent.CodeStyle.project.spaces-per-tab>
  753. <org-netbeans-modules-editor-indent.CodeStyle.project.tab-size>2</org-netbeans-modules-editor-indent.CodeStyle.project.tab-size>
  754. <org-netbeans-modules-editor-indent.CodeStyle.project.text-limit-width>110</org-netbeans-modules-editor-indent.CodeStyle.project.text-limit-width>
  755. <org-netbeans-modules-editor-indent.CodeStyle.project.expand-tabs>true</org-netbeans-modules-editor-indent.CodeStyle.project.expand-tabs>
  756. </properties>
  757. </profile>
  758. <profile>
  759. <id>module-info</id>
  760. <!-- Build profiles can only consider static properties, such as files or ENV variables.
  761. To conditionally add module information, we use existence of bnd.bnd. This allows
  762. irrelevant packages such as tests and benchmarks to quietly opt-out.
  763. http://maven.apache.org/guides/introduction/introduction-to-profiles.html -->
  764. <activation>
  765. <file>
  766. <exists>bnd.bnd</exists>
  767. </file>
  768. </activation>
  769. <build>
  770. <plugins>
  771. <!-- OSGi and Java Modules configuration -->
  772. <plugin>
  773. <groupId>org.apache.felix</groupId>
  774. <artifactId>maven-bundle-plugin</artifactId>
  775. <version>${maven-bundle-plugin.version}</version>
  776. <configuration>
  777. <obrRepository>NONE</obrRepository>
  778. <instructions>
  779. <_include>-bnd.bnd</_include>
  780. </instructions>
  781. </configuration>
  782. <executions>
  783. <execution>
  784. <phase>process-classes</phase>
  785. <goals>
  786. <goal>manifest</goal>
  787. </goals>
  788. </execution>
  789. </executions>
  790. </plugin>
  791. <plugin>
  792. <artifactId>maven-jar-plugin</artifactId>
  793. <executions>
  794. <execution>
  795. <id>default-jar</id>
  796. <configuration>
  797. <archive>
  798. <!-- Include the MANIFEST.MF maven-bundle-plugin generates from bnd.bnd -->
  799. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  800. <manifestEntries>
  801. <Automatic-Module-Name>${module.name}</Automatic-Module-Name>
  802. </manifestEntries>
  803. </archive>
  804. </configuration>
  805. <goals>
  806. <goal>jar</goal>
  807. </goals>
  808. </execution>
  809. </executions>
  810. </plugin>
  811. </plugins>
  812. </build>
  813. </profile>
  814. </profiles>
  815. </project>