parent-10.10.1.pom 25 KB

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