parent-10.4.0.pom 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright 2012-2019 The Feign 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.github.openfeign</groupId>
  15. <artifactId>parent</artifactId>
  16. <version>10.4.0</version>
  17. <packaging>pom</packaging>
  18. <name>Feign (Parent)</name>
  19. <description>Feign makes writing java http clients easier</description>
  20. <modules>
  21. <module>core</module>
  22. <module>gson</module>
  23. <module>httpclient</module>
  24. <module>hystrix</module>
  25. <module>jackson</module>
  26. <module>jackson-jaxb</module>
  27. <module>jaxb</module>
  28. <module>jaxrs</module>
  29. <module>jaxrs2</module>
  30. <module>okhttp</module>
  31. <module>googlehttpclient</module>
  32. <module>ribbon</module>
  33. <module>sax</module>
  34. <module>slf4j</module>
  35. <module>soap</module>
  36. <module>reactive</module>
  37. <module>example-github</module>
  38. <module>example-wikipedia</module>
  39. <!-- remove after feign 10.0 release -->
  40. <module>java8</module>
  41. <module>mock</module>
  42. <module>benchmark</module>
  43. </modules>
  44. <properties>
  45. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  46. <project.build.resourceEncoding>UTF-8</project.build.resourceEncoding>
  47. <!-- specifying jvm arguments -->
  48. <jvm.options>-Duser.language=en</jvm.options>
  49. <!-- default bytecode version for src/main -->
  50. <main.java.version>1.8</main.java.version>
  51. <main.signature.artifact>java18</main.signature.artifact>
  52. <!-- default bytecode version for src/test -->
  53. <maven.compiler.source>1.8</maven.compiler.source>
  54. <maven.compiler.target>1.8</maven.compiler.target>
  55. <main.basedir>${project.basedir}</main.basedir>
  56. <okhttp3.version>3.6.0</okhttp3.version>
  57. <googlehttpclient.version>1.31.0</googlehttpclient.version>
  58. <gson.version>2.5</gson.version>
  59. <slf4j.version>1.7.13</slf4j.version>
  60. <bouncy.version>1.60</bouncy.version>
  61. <junit.version>4.12</junit.version>
  62. <jackson.version>2.10.0.pr1</jackson.version>
  63. <jackson.databind.version>2.9.9.3</jackson.databind.version>
  64. <assertj.version>3.10.0</assertj.version>
  65. <animal-sniffer-maven-plugin.version>1.17</animal-sniffer-maven-plugin.version>
  66. <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
  67. <maven-install-plugin.version>2.5.2</maven-install-plugin.version>
  68. <maven-source-plugin.version>3.0.1</maven-source-plugin.version>
  69. <maven-javadoc-plugin.version>3.0.1</maven-javadoc-plugin.version>
  70. <license-maven-plugin.version>3.0</license-maven-plugin.version>
  71. <maven-jar-plugin.version>3.1.0</maven-jar-plugin.version>
  72. <maven-release-plugin.version>2.5.3</maven-release-plugin.version>
  73. <maven-bundle-plugin.version>4.0.0</maven-bundle-plugin.version>
  74. <centralsync-maven-plugin.version>0.1.0</centralsync-maven-plugin.version>
  75. <maven-surefire-plugin.version>2.22.0</maven-surefire-plugin.version>
  76. <bom-generator.version>0.14.3</bom-generator.version>
  77. <bom.template.file.path>file://${project.basedir}/src/config/bom.xml</bom.template.file.path>
  78. <maven-scm-plugin.version>1.11.2</maven-scm-plugin.version>
  79. <maven-versions-plugin.version>2.7</maven-versions-plugin.version>
  80. <maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
  81. </properties>
  82. <url>https://github.com/openfeign/feign</url>
  83. <inceptionYear>2012</inceptionYear>
  84. <organization>
  85. <name>OpenFeign</name>
  86. <url>https://github.com/openfeign</url>
  87. </organization>
  88. <licenses>
  89. <license>
  90. <name>The Apache Software License, Version 2.0</name>
  91. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  92. <distribution>repo</distribution>
  93. </license>
  94. </licenses>
  95. <scm>
  96. <url>https://github.com/openfeign/feign</url>
  97. <connection>scm:git:https://github.com/openfeign/feign.git</connection>
  98. <developerConnection>scm:git:https://github.com/openfeign/feign.git</developerConnection>
  99. <tag>HEAD</tag>
  100. </scm>
  101. <developers>
  102. <developer>
  103. <id>adriancole</id>
  104. <name>Adrian Cole</name>
  105. <email>acole@pivotal.io</email>
  106. </developer>
  107. <developer>
  108. <id>spencergibb</id>
  109. <name>Spencer Gibb</name>
  110. <email>spencer@gibb.us</email>
  111. </developer>
  112. <developer>
  113. <id>velo</id>
  114. <name>Marvin Herman Froeder</name>
  115. <email>velo br at gmail dot com</email>
  116. <url>about.me/velo</url>
  117. </developer>
  118. <developer>
  119. <id>kdavisk6</id>
  120. <name>Kevin Davis</name>
  121. <email>kdavisk6@gmail.com</email>
  122. </developer>
  123. </developers>
  124. <distributionManagement>
  125. <repository>
  126. <id>ossrh</id>
  127. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  128. </repository>
  129. <snapshotRepository>
  130. <id>ossrh</id>
  131. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  132. </snapshotRepository>
  133. </distributionManagement>
  134. <issueManagement>
  135. <system>Github</system>
  136. <url>https://github.com/openfeign/feign/issues</url>
  137. </issueManagement>
  138. <dependencyManagement>
  139. <dependencies>
  140. <dependency>
  141. <groupId>${project.groupId}</groupId>
  142. <artifactId>feign-core</artifactId>
  143. <version>${project.version}</version>
  144. </dependency>
  145. <dependency>
  146. <groupId>${project.groupId}</groupId>
  147. <artifactId>feign-core</artifactId>
  148. <version>${project.version}</version>
  149. <type>test-jar</type>
  150. </dependency>
  151. <dependency>
  152. <groupId>${project.groupId}</groupId>
  153. <artifactId>feign-gson</artifactId>
  154. <version>${project.version}</version>
  155. </dependency>
  156. <dependency>
  157. <groupId>${project.groupId}</groupId>
  158. <artifactId>feign-httpclient</artifactId>
  159. <version>${project.version}</version>
  160. </dependency>
  161. <dependency>
  162. <groupId>${project.groupId}</groupId>
  163. <artifactId>feign-hystrix</artifactId>
  164. <version>${project.version}</version>
  165. </dependency>
  166. <dependency>
  167. <groupId>${project.groupId}</groupId>
  168. <artifactId>feign-jackson-jaxb</artifactId>
  169. <version>${project.version}</version>
  170. </dependency>
  171. <dependency>
  172. <groupId>${project.groupId}</groupId>
  173. <artifactId>feign-jackson</artifactId>
  174. <version>${project.version}</version>
  175. </dependency>
  176. <dependency>
  177. <groupId>${project.groupId}</groupId>
  178. <artifactId>feign-jaxb</artifactId>
  179. <version>${project.version}</version>
  180. </dependency>
  181. <dependency>
  182. <groupId>${project.groupId}</groupId>
  183. <artifactId>feign-jaxrs</artifactId>
  184. <version>${project.version}</version>
  185. </dependency>
  186. <dependency>
  187. <groupId>${project.groupId}</groupId>
  188. <artifactId>feign-jaxrs</artifactId>
  189. <version>${project.version}</version>
  190. <type>test-jar</type>
  191. </dependency>
  192. <dependency>
  193. <groupId>${project.groupId}</groupId>
  194. <artifactId>feign-jaxrs2</artifactId>
  195. <version>${project.version}</version>
  196. </dependency>
  197. <dependency>
  198. <groupId>${project.groupId}</groupId>
  199. <artifactId>feign-okhttp</artifactId>
  200. <version>${project.version}</version>
  201. </dependency>
  202. <dependency>
  203. <groupId>${project.groupId}</groupId>
  204. <artifactId>feign-ribbon</artifactId>
  205. <version>${project.version}</version>
  206. </dependency>
  207. <dependency>
  208. <groupId>${project.groupId}</groupId>
  209. <artifactId>feign-sax</artifactId>
  210. <version>${project.version}</version>
  211. </dependency>
  212. <dependency>
  213. <groupId>${project.groupId}</groupId>
  214. <artifactId>feign-slf4j</artifactId>
  215. <version>${project.version}</version>
  216. </dependency>
  217. <dependency>
  218. <groupId>junit</groupId>
  219. <artifactId>junit</artifactId>
  220. <version>${junit.version}</version>
  221. </dependency>
  222. <dependency>
  223. <groupId>org.jvnet</groupId>
  224. <artifactId>animal-sniffer-annotation</artifactId>
  225. <version>1.0</version>
  226. </dependency>
  227. <dependency>
  228. <groupId>com.google.code.gson</groupId>
  229. <artifactId>gson</artifactId>
  230. <version>${gson.version}</version>
  231. </dependency>
  232. <dependency>
  233. <groupId>org.assertj</groupId>
  234. <artifactId>assertj-core</artifactId>
  235. <version>${assertj.version}</version>
  236. </dependency>
  237. <dependency>
  238. <groupId>com.squareup.okhttp3</groupId>
  239. <artifactId>okhttp</artifactId>
  240. <version>${okhttp3.version}</version>
  241. </dependency>
  242. <dependency>
  243. <groupId>com.squareup.okhttp3</groupId>
  244. <artifactId>mockwebserver</artifactId>
  245. <version>${okhttp3.version}</version>
  246. </dependency>
  247. <dependency>
  248. <groupId>com.google.http-client</groupId>
  249. <artifactId>google-http-client</artifactId>
  250. <version>${googlehttpclient.version}</version>
  251. </dependency>
  252. <dependency>
  253. <groupId>org.bouncycastle</groupId>
  254. <artifactId>bcprov-jdk15on</artifactId>
  255. <version>${bouncy.version}</version>
  256. </dependency>
  257. <dependency>
  258. <groupId>com.fasterxml.jackson.core</groupId>
  259. <artifactId>jackson-databind</artifactId>
  260. <version>${jackson.databind.version}</version>
  261. </dependency>
  262. <dependency>
  263. <groupId>com.fasterxml.jackson.core</groupId>
  264. <artifactId>jackson-core</artifactId>
  265. <version>${jackson.version}</version>
  266. </dependency>
  267. <dependency>
  268. <groupId>com.fasterxml.jackson.core</groupId>
  269. <artifactId>jackson-annotations</artifactId>
  270. <version>${jackson.version}</version>
  271. </dependency>
  272. <dependency>
  273. <groupId>org.slf4j</groupId>
  274. <artifactId>slf4j-simple</artifactId>
  275. <version>${slf4j.version}</version>
  276. </dependency>
  277. <dependency>
  278. <groupId>org.slf4j</groupId>
  279. <artifactId>slf4j-nop</artifactId>
  280. <version>${slf4j.version}</version>
  281. </dependency>
  282. </dependencies>
  283. </dependencyManagement>
  284. <dependencies>
  285. <dependency>
  286. <groupId>junit</groupId>
  287. <artifactId>junit</artifactId>
  288. <scope>test</scope>
  289. </dependency>
  290. <dependency>
  291. <groupId>org.assertj</groupId>
  292. <artifactId>assertj-core</artifactId>
  293. <scope>test</scope>
  294. </dependency>
  295. </dependencies>
  296. <build>
  297. <pluginManagement>
  298. <plugins>
  299. <!-- mvn -N io.takari:maven:wrapper -Dmaven=3.5.0 -->
  300. <plugin>
  301. <groupId>io.takari</groupId>
  302. <artifactId>maven</artifactId>
  303. <version>0.3.4</version>
  304. </plugin>
  305. <plugin>
  306. <artifactId>maven-compiler-plugin</artifactId>
  307. <version>${maven-compiler-plugin.version}</version>
  308. </plugin>
  309. <plugin>
  310. <artifactId>maven-jar-plugin</artifactId>
  311. <version>${maven-jar-plugin.version}</version>
  312. <configuration>
  313. <archive>
  314. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  315. </archive>
  316. </configuration>
  317. </plugin>
  318. <plugin>
  319. <groupId>org.apache.maven.plugins</groupId>
  320. <artifactId>maven-surefire-plugin</artifactId>
  321. <version>${maven-surefire-plugin.version}</version>
  322. <configuration>
  323. <redirectTestOutputToFile>true</redirectTestOutputToFile>
  324. <trimStackTrace>false</trimStackTrace>
  325. <argLine>${jvm.options}</argLine>
  326. </configuration>
  327. <dependencies>
  328. <dependency>
  329. <!-- surefire uses ASM to do some bytecode magic... need to bump version to be java 11 compatible -->
  330. <groupId>org.ow2.asm</groupId>
  331. <artifactId>asm</artifactId>
  332. <version>7.0-beta</version>
  333. </dependency>
  334. </dependencies>
  335. </plugin>
  336. </plugins>
  337. </pluginManagement>
  338. <plugins>
  339. <plugin>
  340. <artifactId>maven-compiler-plugin</artifactId>
  341. <inherited>true</inherited>
  342. <executions>
  343. <!-- Ensure main source tree compiles to Java ${main.java.version} bytecode. -->
  344. <execution>
  345. <id>default-compile</id>
  346. <phase>compile</phase>
  347. <goals>
  348. <goal>compile</goal>
  349. </goals>
  350. <configuration>
  351. <source>${main.java.version}</source>
  352. <target>${main.java.version}</target>
  353. </configuration>
  354. </execution>
  355. </executions>
  356. </plugin>
  357. <plugin>
  358. <groupId>org.codehaus.mojo</groupId>
  359. <artifactId>animal-sniffer-maven-plugin</artifactId>
  360. <version>${animal-sniffer-maven-plugin.version}</version>
  361. <configuration>
  362. <signature>
  363. <groupId>org.codehaus.mojo.signature</groupId>
  364. <artifactId>${main.signature.artifact}</artifactId>
  365. <version>1.0</version>
  366. </signature>
  367. </configuration>
  368. <executions>
  369. <execution>
  370. <goals>
  371. <goal>check</goal>
  372. </goals>
  373. </execution>
  374. </executions>
  375. <dependencies>
  376. <dependency>
  377. <groupId>org.ow2.asm</groupId>
  378. <artifactId>asm</artifactId>
  379. <version>7.0-beta</version>
  380. </dependency>
  381. </dependencies>
  382. </plugin>
  383. <!-- Ensures checksums are added to published jars -->
  384. <plugin>
  385. <artifactId>maven-install-plugin</artifactId>
  386. <version>${maven-install-plugin.version}</version>
  387. <configuration>
  388. <createChecksum>true</createChecksum>
  389. </configuration>
  390. </plugin>
  391. <plugin>
  392. <artifactId>maven-release-plugin</artifactId>
  393. <version>${maven-release-plugin.version}</version>
  394. <configuration>
  395. <useReleaseProfile>false</useReleaseProfile>
  396. <releaseProfiles>release</releaseProfiles>
  397. <autoVersionSubmodules>true</autoVersionSubmodules>
  398. <tagNameFormat>@{project.version}</tagNameFormat>
  399. </configuration>
  400. </plugin>
  401. <plugin>
  402. <groupId>io.zipkin.centralsync-maven-plugin</groupId>
  403. <artifactId>centralsync-maven-plugin</artifactId>
  404. <version>${centralsync-maven-plugin.version}</version>
  405. <configuration>
  406. <subject>openfeign</subject>
  407. <repo>maven</repo>
  408. <packageName>feign</packageName>
  409. </configuration>
  410. </plugin>
  411. <plugin>
  412. <groupId>org.apache.felix</groupId>
  413. <artifactId>maven-bundle-plugin</artifactId>
  414. <version>${maven-bundle-plugin.version}</version>
  415. <executions>
  416. <execution>
  417. <id>bundle-manifest</id>
  418. <phase>process-classes</phase>
  419. <goals>
  420. <goal>manifest</goal>
  421. </goals>
  422. </execution>
  423. </executions>
  424. </plugin>
  425. <plugin>
  426. <groupId>com.mycila</groupId>
  427. <artifactId>license-maven-plugin</artifactId>
  428. <version>${license-maven-plugin.version}</version>
  429. <configuration>
  430. <!-- session.executionRootDirectory resolves properly even with nested modules -->
  431. <header>${main.basedir}/src/etc/header.txt</header>
  432. <excludes>
  433. <exclude>.travis.yml</exclude>
  434. <exclude>.editorconfig</exclude>
  435. <exclude>.gitattributes</exclude>
  436. <exclude>.gitignore</exclude>
  437. <exclude>.mvn/**</exclude>
  438. <exclude>mvnw*</exclude>
  439. <exclude>etc/header.txt</exclude>
  440. <exclude>**/.idea/**</exclude>
  441. <exclude>**/target/**</exclude>
  442. <exclude>LICENSE</exclude>
  443. <exclude>NOTICE</exclude>
  444. <exclude>OSSMETADATA</exclude>
  445. <exclude>**/*.md</exclude>
  446. <exclude>bnd.bnd</exclude>
  447. <exclude>travis/**</exclude>
  448. <exclude>src/test/resources/**</exclude>
  449. <exclude>src/main/resources/**</exclude>
  450. </excludes>
  451. <strictCheck>true</strictCheck>
  452. </configuration>
  453. <executions>
  454. <execution>
  455. <phase>compile</phase>
  456. <goals>
  457. <goal>check</goal>
  458. </goals>
  459. </execution>
  460. </executions>
  461. <dependencies>
  462. <dependency>
  463. <groupId>com.mycila</groupId>
  464. <artifactId>license-maven-plugin-git</artifactId>
  465. <version>${license-maven-plugin.version}</version>
  466. </dependency>
  467. </dependencies>
  468. </plugin>
  469. <plugin>
  470. <groupId>com.marvinformatics.formatter</groupId>
  471. <artifactId>formatter-maven-plugin</artifactId>
  472. <version>2.2.0</version>
  473. <configuration>
  474. <lineEnding>LF</lineEnding>
  475. <configFile>${main.basedir}/src/config/eclipse-java-style.xml</configFile>
  476. </configuration>
  477. <executions>
  478. <execution>
  479. <phase>verify</phase>
  480. <goals>
  481. <goal>format</goal>
  482. </goals>
  483. </execution>
  484. </executions>
  485. </plugin>
  486. <plugin>
  487. <groupId>com.github.ekryd.sortpom</groupId>
  488. <artifactId>sortpom-maven-plugin</artifactId>
  489. <version>2.8.0</version>
  490. <configuration>
  491. <keepBlankLines>true</keepBlankLines>
  492. <lineSeparator>\n</lineSeparator>
  493. <sortOrderFile>src/config/pomSortOrder.xml</sortOrderFile>
  494. <createBackupFile>false</createBackupFile>
  495. </configuration>
  496. <executions>
  497. <execution>
  498. <id>format</id>
  499. <phase>verify</phase>
  500. <goals>
  501. <goal>sort</goal>
  502. </goals>
  503. </execution>
  504. </executions>
  505. </plugin>
  506. <plugin>
  507. <groupId>io.sundr</groupId>
  508. <artifactId>sundr-maven-plugin</artifactId>
  509. <version>${bom-generator.version}</version>
  510. <inherited>false</inherited>
  511. <configuration>
  512. <bomTemplateUrl>${bom.template.file.path}</bomTemplateUrl>
  513. <boms>
  514. <bom>
  515. <artifactId>feign-bom</artifactId>
  516. <name>Feign (Bill Of Materials)</name>
  517. <properties>
  518. <license.skip>true</license.skip>
  519. </properties>
  520. <modules>
  521. <includes>
  522. <include>io.github.openfeign:*</include>
  523. </includes>
  524. <excludes>
  525. <exclude>*:feign-example-*</exclude>
  526. <exclude>*:feign-benchmark</exclude>
  527. </excludes>
  528. </modules>
  529. </bom>
  530. </boms>
  531. </configuration>
  532. <executions>
  533. <execution>
  534. <goals>
  535. <goal>generate-bom</goal>
  536. </goals>
  537. </execution>
  538. </executions>
  539. <dependencies>
  540. <dependency>
  541. <groupId>io.sundr</groupId>
  542. <artifactId>sundr-codegen</artifactId>
  543. <version>${bom-generator.version}</version>
  544. <exclusions>
  545. <exclusion>
  546. <groupId>com.sun</groupId>
  547. <artifactId>tools</artifactId>
  548. </exclusion>
  549. </exclusions>
  550. </dependency>
  551. </dependencies>
  552. </plugin>
  553. <plugin>
  554. <groupId>org.codehaus.mojo</groupId>
  555. <artifactId>versions-maven-plugin</artifactId>
  556. <version>${maven-versions-plugin.version}</version>
  557. </plugin>
  558. <plugin>
  559. <groupId>org.apache.maven.plugins</groupId>
  560. <artifactId>maven-scm-plugin</artifactId>
  561. <version>${maven-scm-plugin.version}</version>
  562. <configuration>
  563. <tag>${project.version}</tag>
  564. </configuration>
  565. </plugin>
  566. <plugin>
  567. <groupId>org.sonatype.plugins</groupId>
  568. <artifactId>nexus-staging-maven-plugin</artifactId>
  569. <version>1.6.8</version>
  570. <extensions>true</extensions>
  571. <configuration>
  572. <serverId>ossrh</serverId>
  573. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  574. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  575. </configuration>
  576. </plugin>
  577. </plugins>
  578. </build>
  579. <profiles>
  580. <profile>
  581. <id>windows</id>
  582. <activation>
  583. <os>
  584. <family>Windows</family>
  585. </os>
  586. </activation>
  587. <properties>
  588. <bom.template.file.path>file:///${project.basedir}/src/config/bom.xml</bom.template.file.path>
  589. </properties>
  590. </profile>
  591. <profile>
  592. <id>java11</id>
  593. <activation>
  594. <jdk>11</jdk>
  595. </activation>
  596. <modules>
  597. <module>java11</module>
  598. </modules>
  599. <build>
  600. <plugins>
  601. <plugin>
  602. <groupId>org.apache.maven.plugins</groupId>
  603. <artifactId>maven-release-plugin</artifactId>
  604. <configuration>
  605. <!-- so far we don't have a way to release using java 11 -->
  606. <dryRun>true</dryRun>
  607. </configuration>
  608. </plugin>
  609. </plugins>
  610. </build>
  611. </profile>
  612. <profile>
  613. <id>validateCodeFormat</id>
  614. <build>
  615. <plugins>
  616. <plugin>
  617. <groupId>com.marvinformatics.formatter</groupId>
  618. <artifactId>formatter-maven-plugin</artifactId>
  619. <version>2.2.0</version>
  620. <configuration>
  621. <lineEnding>LF</lineEnding>
  622. <configFile>${main.basedir}/src/config/eclipse-java-style.xml</configFile>
  623. </configuration>
  624. <executions>
  625. <execution>
  626. <id>validate-only</id>
  627. <goals>
  628. <goal>validate</goal>
  629. </goals>
  630. <phase>initialize</phase>
  631. </execution>
  632. </executions>
  633. </plugin>
  634. </plugins>
  635. </build>
  636. </profile>
  637. <profile>
  638. <id>release</id>
  639. <build>
  640. <plugins>
  641. <!-- Creates source jar -->
  642. <plugin>
  643. <groupId>org.apache.maven.plugins</groupId>
  644. <artifactId>maven-source-plugin</artifactId>
  645. <version>${maven-source-plugin.version}</version>
  646. <executions>
  647. <execution>
  648. <id>attach-sources</id>
  649. <goals>
  650. <goal>jar</goal>
  651. </goals>
  652. </execution>
  653. </executions>
  654. </plugin>
  655. <plugin>
  656. <groupId>org.apache.maven.plugins</groupId>
  657. <artifactId>maven-javadoc-plugin</artifactId>
  658. <version>${maven-javadoc-plugin.version}</version>
  659. <configuration>
  660. <failOnError>false</failOnError>
  661. </configuration>
  662. <executions>
  663. <execution>
  664. <id>attach-javadocs</id>
  665. <goals>
  666. <goal>jar</goal>
  667. </goals>
  668. <phase>package</phase>
  669. </execution>
  670. </executions>
  671. </plugin>
  672. <plugin>
  673. <groupId>org.apache.maven.plugins</groupId>
  674. <artifactId>maven-gpg-plugin</artifactId>
  675. <version>${maven-gpg-plugin.version}</version>
  676. <executions>
  677. <execution>
  678. <id>sign-artifacts</id>
  679. <goals>
  680. <goal>sign</goal>
  681. </goals>
  682. <phase>verify</phase>
  683. </execution>
  684. </executions>
  685. </plugin>
  686. </plugins>
  687. </build>
  688. </profile>
  689. </profiles>
  690. </project>