vertx-parent-19.pom 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385
  1. <?xml version="1.0"?>
  2. <!--
  3. ~ Copyright (c) 2011-2014 The original author or authors
  4. ~
  5. ~ All rights reserved. This program and the accompanying materials
  6. ~ are made available under the terms of the Eclipse Public License v1.0
  7. ~ and Apache License v2.0 which accompanies this distribution.
  8. ~
  9. ~ The Eclipse Public License is available at
  10. ~ http://www.eclipse.org/legal/epl-v10.html
  11. ~
  12. ~ The Apache License v2.0 is available at
  13. ~ http://www.opensource.org/licenses/apache2.0.php
  14. ~
  15. ~ You may elect to redistribute this code under either of these licenses.
  16. -->
  17. <project xmlns="http://maven.apache.org/POM/4.0.0"
  18. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  19. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
  20. http://maven.apache.org/xsd/maven-4.0.0.xsd">
  21. <modelVersion>4.0.0</modelVersion>
  22. <parent>
  23. <groupId>org.sonatype.oss</groupId>
  24. <artifactId>oss-parent</artifactId>
  25. <version>7</version>
  26. </parent>
  27. <groupId>io.vertx</groupId>
  28. <artifactId>vertx-parent</artifactId>
  29. <version>19</version>
  30. <packaging>pom</packaging>
  31. <name>Vert.x Parent pom</name>
  32. <organization>
  33. <name>Eclipse</name>
  34. </organization>
  35. <licenses>
  36. <license>
  37. <name>The Apache Software License, Version 2.0</name>
  38. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  39. <distribution>repo</distribution>
  40. </license>
  41. <license>
  42. <name>Eclipse Public License - v 1.0</name>
  43. <url>http://www.eclipse.org/legal/epl-v10.html</url>
  44. <distribution>repo</distribution>
  45. </license>
  46. </licenses>
  47. <scm>
  48. <connection>scm:git:git@github.com:vert-x3/vert-parent.git</connection>
  49. <developerConnection>scm:git:git@github.com:vert-x3/vert-parent.git</developerConnection>
  50. <url>git@github.com:vert-x3/vert-parent.git</url>
  51. </scm>
  52. <distributionManagement>
  53. <snapshotRepository>
  54. <id>vertx-snapshots-repository</id>
  55. <name>Vert.x Snapshots Repository</name>
  56. <url>${vertx.snapshotRepository}</url>
  57. </snapshotRepository>
  58. <repository>
  59. <id>vertx-release-repository</id>
  60. <name>Vert.x Release Repository</name>
  61. <url>${vertx.releaseRepository}</url>
  62. </repository>
  63. </distributionManagement>
  64. <repositories>
  65. <repository>
  66. <id>vertx-snapshots-repository</id>
  67. <name>Vert.x Snapshots Repository</name>
  68. <url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
  69. <releases>
  70. <enabled>false</enabled>
  71. </releases>
  72. <snapshots>
  73. <enabled>true</enabled>
  74. </snapshots>
  75. </repository>
  76. </repositories>
  77. <properties>
  78. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  79. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  80. <!-- Compiler plugin -->
  81. <maven.compiler.source>1.8</maven.compiler.source>
  82. <maven.compiler.target>1.8</maven.compiler.target>
  83. <!-- Plugin versions -->
  84. <maven.compiler.plugin.version>3.7.0</maven.compiler.plugin.version>
  85. <maven.jar.plugin.version>3.0.2</maven.jar.plugin.version>
  86. <maven.source.plugin.version>3.0.1</maven.source.plugin.version>
  87. <maven.resource.plugin.version>2.7</maven.resource.plugin.version>
  88. <maven.javadoc.plugin.version>3.2.0</maven.javadoc.plugin.version>
  89. <maven.gpg.plugin.version>1.6</maven.gpg.plugin.version>
  90. <maven.dependency.plugin.version>2.10</maven.dependency.plugin.version>
  91. <maven.clean.plugin.version>3.0.0</maven.clean.plugin.version>
  92. <maven.deploy.plugin.version>2.8.2</maven.deploy.plugin.version>
  93. <maven.install.plugin.version>2.5.2</maven.install.plugin.version>
  94. <maven.assembly.plugin.version>3.1.0</maven.assembly.plugin.version>
  95. <maven.site.plugin.version>3.4</maven.site.plugin.version>
  96. <maven.surefire.plugin.version>2.18.1</maven.surefire.plugin.version>
  97. <maven.surefire.report.plugin.version>2.18.1</maven.surefire.report.plugin.version>
  98. <maven.enforcer.plugin.version>1.4.1</maven.enforcer.plugin.version>
  99. <maven.jacoco.plugin.version>0.7.6.201602180812</maven.jacoco.plugin.version>
  100. <maven.dependency.versions.check.plugin.version>2.0.2</maven.dependency.versions.check.plugin.version>
  101. <maven.asciidoctor.plugin.version>2.1.0</maven.asciidoctor.plugin.version>
  102. <maven.build.helper.maven.plugin.version>3.0.0</maven.build.helper.maven.plugin.version>
  103. <!-- Override to use a different asciidoc source directory -->
  104. <asciidoc.dir>${project.basedir}/src/main/asciidoc</asciidoc.dir>
  105. <!-- Specify a path to a valid manifest to merge it with default entries -->
  106. <jar.manifest></jar.manifest>
  107. <!-- Default Netty leak detector configuration -->
  108. <io.netty.leakDetection.level>DISABLED</io.netty.leakDetection.level>
  109. <io.netty.leakDetection.targetRecords>4</io.netty.leakDetection.targetRecords>
  110. <io.netty.leakDetection.samplingInterval>128</io.netty.leakDetection.samplingInterval>
  111. <!-- Dist management -->
  112. <vertx.releaseRepository>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</vertx.releaseRepository>
  113. <vertx.snapshotRepository>https://s01.oss.sonatype.org/content/repositories/snapshots/</vertx.snapshotRepository>
  114. </properties>
  115. <build>
  116. <pluginManagement>
  117. <plugins>
  118. <plugin>
  119. <groupId>org.apache.maven.plugins</groupId>
  120. <artifactId>maven-compiler-plugin</artifactId>
  121. <version>${maven.compiler.plugin.version}</version>
  122. <configuration>
  123. <optimize>true</optimize>
  124. </configuration>
  125. </plugin>
  126. <plugin>
  127. <groupId>org.apache.maven.plugins</groupId>
  128. <artifactId>maven-source-plugin</artifactId>
  129. <version>${maven.source.plugin.version}</version>
  130. </plugin>
  131. <plugin>
  132. <groupId>org.apache.maven.plugins</groupId>
  133. <artifactId>maven-assembly-plugin</artifactId>
  134. <version>${maven.assembly.plugin.version}</version>
  135. </plugin>
  136. <plugin>
  137. <groupId>org.asciidoctor</groupId>
  138. <artifactId>asciidoctor-maven-plugin</artifactId>
  139. <version>${maven.asciidoctor.plugin.version}</version>
  140. <configuration>
  141. <sourceDirectory>${asciidoc.dir}</sourceDirectory>
  142. <outputDirectory>${project.build.directory}/docs/${project.artifactId}</outputDirectory>
  143. <preserveDirectories>true</preserveDirectories>
  144. <relativeBaseDir>true</relativeBaseDir>
  145. <backend>html</backend>
  146. <doctype>book</doctype>
  147. <attributes>
  148. <source-highlighter>coderay</source-highlighter>
  149. </attributes>
  150. </configuration>
  151. </plugin>
  152. <plugin>
  153. <groupId>org.apache.maven.plugins</groupId>
  154. <artifactId>maven-jar-plugin</artifactId>
  155. <version>${maven.jar.plugin.version}</version>
  156. <executions>
  157. <execution>
  158. <id>default-jar</id>
  159. <configuration>
  160. <archive>
  161. <manifest>
  162. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  163. <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
  164. </manifest>
  165. <!-- Generate a jar INDEX.LIST -->
  166. <index>true</index>
  167. <!-- Provide opportunity to merge entries from a custom file -->
  168. <manifestFile>${jar.manifest}</manifestFile>
  169. <manifestEntries>
  170. <!-- Add the Maven coordinates in the manifest -->
  171. <Maven-Group-Id>${project.groupId}</Maven-Group-Id>
  172. <Maven-Artifact-Id>${project.artifactId}</Maven-Artifact-Id>
  173. <Maven-Version>${project.version}</Maven-Version>
  174. </manifestEntries>
  175. </archive>
  176. <!-- Remove examples and docoverride -->
  177. <excludes>
  178. <exclude>/docoverride/**</exclude>
  179. <exclude>/examples/**</exclude>
  180. </excludes>
  181. </configuration>
  182. </execution>
  183. </executions>
  184. </plugin>
  185. <plugin>
  186. <groupId>org.apache.maven.plugins</groupId>
  187. <artifactId>maven-surefire-plugin</artifactId>
  188. <version>${maven.surefire.plugin.version}</version>
  189. <configuration>
  190. <failIfNoSpecifiedTests>false</failIfNoSpecifiedTests>
  191. <systemPropertyVariables>
  192. <io.netty.leakDetection.level>${io.netty.leakDetectionLevel}</io.netty.leakDetection.level>
  193. <io.netty.leakDetection.targetRecords>${io.netty.leakDetection.targetRecords}</io.netty.leakDetection.targetRecords>
  194. <io.netty.leakDetection.samplingInterval>${io.netty.leakDetection.samplingInterval}</io.netty.leakDetection.samplingInterval>
  195. </systemPropertyVariables>
  196. <!--
  197. Memory: Needs to be small enough to run in a EC2 1.7GB small instance
  198. ArgLine: Allow using plugin injecting argLine (such as Jacoco) - notice the @{} instead of ${} to enable
  199. the late replacement.
  200. -->
  201. <argLine>-server -Xmx1200M</argLine>
  202. <forkCount>1</forkCount>
  203. <reuseForks>true</reuseForks>
  204. </configuration>
  205. </plugin>
  206. <plugin>
  207. <groupId>org.apache.maven.plugins</groupId>
  208. <artifactId>maven-surefire-report-plugin</artifactId>
  209. <version>${maven.surefire.report.plugin.version}</version>
  210. </plugin>
  211. <plugin>
  212. <groupId>org.apache.maven.plugins</groupId>
  213. <artifactId>maven-site-plugin</artifactId>
  214. <version>${maven.site.plugin.version}</version>
  215. </plugin>
  216. <plugin>
  217. <groupId>org.apache.maven.plugins</groupId>
  218. <artifactId>maven-javadoc-plugin</artifactId>
  219. <version>${maven.javadoc.plugin.version}</version>
  220. <!-- Remove impl and keep only io/vertx files (no examples or docoverride) -->
  221. <configuration>
  222. <sourceFileExcludes>
  223. <sourceFileExclude>**/package-info.java</sourceFileExclude>
  224. <sourceFileExclude>**/impl/**</sourceFileExclude>
  225. </sourceFileExcludes>
  226. <sourceFileIncludes>
  227. <sourceFileInclude>io/vertx/**/*.java</sourceFileInclude>
  228. </sourceFileIncludes>
  229. <doclint>none</doclint>
  230. </configuration>
  231. </plugin>
  232. <plugin>
  233. <groupId>org.apache.maven.plugins</groupId>
  234. <artifactId>maven-gpg-plugin</artifactId>
  235. <version>${maven.gpg.plugin.version}</version>
  236. </plugin>
  237. <plugin>
  238. <groupId>org.apache.maven.plugins</groupId>
  239. <artifactId>maven-resources-plugin</artifactId>
  240. <version>${maven.resource.plugin.version}</version>
  241. </plugin>
  242. <plugin>
  243. <groupId>org.apache.maven.plugins</groupId>
  244. <artifactId>maven-dependency-plugin</artifactId>
  245. <version>${maven.dependency.plugin.version}</version>
  246. </plugin>
  247. <plugin>
  248. <groupId>org.apache.maven.plugins</groupId>
  249. <artifactId>maven-install-plugin</artifactId>
  250. <version>${maven.install.plugin.version}</version>
  251. </plugin>
  252. <plugin>
  253. <groupId>org.apache.maven.plugins</groupId>
  254. <artifactId>maven-deploy-plugin</artifactId>
  255. <version>${maven.deploy.plugin.version}</version>
  256. </plugin>
  257. <plugin>
  258. <groupId>org.apache.maven.plugins</groupId>
  259. <artifactId>maven-clean-plugin</artifactId>
  260. <version>${maven.clean.plugin.version}</version>
  261. </plugin>
  262. <plugin>
  263. <groupId>org.apache.maven.plugins</groupId>
  264. <artifactId>maven-enforcer-plugin</artifactId>
  265. <version>${maven.enforcer.plugin.version}</version>
  266. </plugin>
  267. <plugin>
  268. <groupId>com.ning.maven.plugins</groupId>
  269. <artifactId>maven-dependency-versions-check-plugin</artifactId>
  270. <version>${maven.dependency.versions.check.plugin.version}</version>
  271. </plugin>
  272. <plugin>
  273. <groupId>org.codehaus.mojo</groupId>
  274. <artifactId>build-helper-maven-plugin</artifactId>
  275. <version>${maven.build.helper.maven.plugin.version}</version>
  276. </plugin>
  277. </plugins>
  278. </pluginManagement>
  279. <plugins>
  280. <plugin>
  281. <groupId>org.apache.maven.plugins</groupId>
  282. <artifactId>maven-source-plugin</artifactId>
  283. <executions>
  284. <execution>
  285. <id>attach-sources</id>
  286. <goals>
  287. <goal>jar-no-fork</goal>
  288. <goal>test-jar-no-fork</goal>
  289. </goals>
  290. </execution>
  291. </executions>
  292. </plugin>
  293. <plugin>
  294. <groupId>org.apache.maven.plugins</groupId>
  295. <artifactId>maven-jar-plugin</artifactId>
  296. <executions>
  297. <execution>
  298. <id>attach-test-jar</id>
  299. <goals>
  300. <goal>test-jar</goal>
  301. </goals>
  302. </execution>
  303. </executions>
  304. </plugin>
  305. </plugins>
  306. </build>
  307. <profiles>
  308. <profile>
  309. <id>sonatype-oss-release</id>
  310. <build>
  311. <plugins>
  312. <!-- Set plugin version due to wrong plugin version when activating this profile -->
  313. <plugin>
  314. <groupId>org.apache.maven.plugins</groupId>
  315. <artifactId>maven-javadoc-plugin</artifactId>
  316. <version>${maven.javadoc.plugin.version}</version>
  317. </plugin>
  318. <plugin>
  319. <groupId>org.apache.maven.plugins</groupId>
  320. <artifactId>maven-gpg-plugin</artifactId>
  321. <version>${maven.gpg.plugin.version}</version>
  322. </plugin>
  323. <plugin>
  324. <groupId>org.apache.maven.plugins</groupId>
  325. <artifactId>maven-enforcer-plugin</artifactId>
  326. <executions>
  327. <execution>
  328. <id>enforce-no-vertx-snapshots</id>
  329. <goals>
  330. <goal>enforce</goal>
  331. </goals>
  332. <configuration>
  333. <rules>
  334. <requireJavaVersion>
  335. <message>Vert.x must be released with Java 1.8!</message>
  336. <version>[1.8,1.9)</version>
  337. </requireJavaVersion>
  338. <requireReleaseDeps>
  339. <message>No Vert.x Snapshots Allowed during a release!</message>
  340. <includes>
  341. <include>io.vertx:*</include>
  342. </includes>
  343. </requireReleaseDeps>
  344. </rules>
  345. <fail>true</fail>
  346. </configuration>
  347. </execution>
  348. </executions>
  349. </plugin>
  350. </plugins>
  351. </build>
  352. </profile>
  353. <profile>
  354. <id>java-9</id>
  355. <activation>
  356. <jdk>[1.9,)</jdk>
  357. </activation>
  358. <properties>
  359. <!-- Must compile with -release flag on JDK 9+ to avoid bytecode incompatibilities
  360. such as: https://github.com/eclipse-vertx/vertx-sql-client/issues/736 -->
  361. <maven.compiler.release>8</maven.compiler.release>
  362. </properties>
  363. </profile>
  364. </profiles>
  365. </project>