jjwt-root-0.10.5.pom 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Copyright (C) 2014 jsonwebtoken.io
  4. ~
  5. ~ Licensed under the Apache License, Version 2.0 (the "License");
  6. ~ you may not use this file except in compliance with the License.
  7. ~ You may obtain a copy of the License at
  8. ~
  9. ~ http://www.apache.org/licenses/LICENSE-2.0
  10. ~
  11. ~ Unless required by applicable law or agreed to in writing, software
  12. ~ distributed under the License is distributed on an "AS IS" BASIS,
  13. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. ~ See the License for the specific language governing permissions and
  15. ~ limitations under the License.
  16. -->
  17. <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">
  18. <modelVersion>4.0.0</modelVersion>
  19. <parent>
  20. <groupId>org.sonatype.oss</groupId>
  21. <artifactId>oss-parent</artifactId>
  22. <version>7</version>
  23. </parent>
  24. <groupId>io.jsonwebtoken</groupId>
  25. <artifactId>jjwt-root</artifactId>
  26. <version>0.10.5</version>
  27. <name>JJWT</name>
  28. <description>JSON Web Token support for the JVM and Android</description>
  29. <packaging>pom</packaging>
  30. <url>https://github.com/jwtk/jjwt</url>
  31. <licenses>
  32. <license>
  33. <name>Apache License, Version 2.0</name>
  34. <url>http://www.apache.org/licenses/LICENSE-2.0</url>
  35. <distribution>repo</distribution>
  36. </license>
  37. </licenses>
  38. <scm>
  39. <connection>scm:git:https://github.com/jwtk/jjwt.git</connection>
  40. <developerConnection>scm:git:git@github.com:jwtk/jjwt.git</developerConnection>
  41. <url>git@github.com:jwtk/jjwt.git</url>
  42. <tag>0.10.5</tag>
  43. </scm>
  44. <issueManagement>
  45. <system>GitHub Issues</system>
  46. <url>https://github.com/jwtk/jjwt/issues</url>
  47. </issueManagement>
  48. <ciManagement>
  49. <system>TravisCI</system>
  50. <url>https://travis-ci.org/jwtk/jjwt</url>
  51. </ciManagement>
  52. <!-- temporary fix until official release of coverall-maven-plugin with clover support -->
  53. <repositories>
  54. <repository>
  55. <snapshots>
  56. <enabled>false</enabled>
  57. </snapshots>
  58. <id>bintray-jwtk-coveralls-maven-plugin</id>
  59. <name>bintray</name>
  60. <url>https://dl.bintray.com/jwtk/coveralls-maven-plugin</url>
  61. </repository>
  62. </repositories>
  63. <pluginRepositories>
  64. <pluginRepository>
  65. <snapshots>
  66. <enabled>false</enabled>
  67. </snapshots>
  68. <id>bintray-jwtk-coveralls-maven-plugin</id>
  69. <name>bintray-plugins</name>
  70. <url>https://dl.bintray.com/jwtk/coveralls-maven-plugin</url>
  71. </pluginRepository>
  72. </pluginRepositories>
  73. <!-- temporary fix until official release of coverall-maven-plugin with clover support -->
  74. <properties>
  75. <jjwt.root>${basedir}</jjwt.root>
  76. <maven.jar.version>3.0.2</maven.jar.version>
  77. <maven.compiler.version>3.6.1</maven.compiler.version>
  78. <jdk.version>1.7</jdk.version>
  79. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  80. <buildNumber>${user.name}-${maven.build.timestamp}</buildNumber>
  81. <jackson.version>2.9.6</jackson.version>
  82. <orgjson.version>20180130</orgjson.version>
  83. <!-- Optional Runtime Dependencies: -->
  84. <bouncycastle.version>1.60</bouncycastle.version>
  85. <!-- Test Dependencies: Only required for testing when building. Not required by users at runtime: -->
  86. <groovy.version>2.5.1</groovy.version>
  87. <logback.version>1.2.3</logback.version>
  88. <easymock.version>3.6</easymock.version>
  89. <junit.version>4.12</junit.version>
  90. <powermock.version>2.0.0-beta.5</powermock.version> <!-- necessary for Java 9 support -->
  91. <failsafe.plugin.version>2.22.0</failsafe.plugin.version>
  92. <surefire.plugin.version>2.22.0</surefire.plugin.version>
  93. <clover.version>4.2.1</clover.version>
  94. <clover.db>${jjwt.root}/target/clover/clover.db</clover.db>
  95. <surefire.argLine />
  96. </properties>
  97. <modules>
  98. <module>api</module>
  99. <module>impl</module>
  100. <module>extensions</module>
  101. </modules>
  102. <dependencyManagement>
  103. <dependencies>
  104. <dependency>
  105. <groupId>io.jsonwebtoken</groupId>
  106. <artifactId>jjwt-api</artifactId>
  107. <version>${project.version}</version>
  108. </dependency>
  109. <dependency>
  110. <groupId>io.jsonwebtoken</groupId>
  111. <artifactId>jjwt-jackson</artifactId>
  112. <version>${project.version}</version>
  113. </dependency>
  114. <dependency>
  115. <groupId>io.jsonwebtoken</groupId>
  116. <artifactId>jjwt-orgjson</artifactId>
  117. <version>${project.version}</version>
  118. </dependency>
  119. <dependency>
  120. <groupId>com.fasterxml.jackson.core</groupId>
  121. <artifactId>jackson-databind</artifactId>
  122. <version>${jackson.version}</version>
  123. </dependency>
  124. <dependency>
  125. <groupId>org.json</groupId>
  126. <artifactId>json</artifactId>
  127. <version>${orgjson.version}</version>
  128. </dependency>
  129. <!-- Used only during testing for PS256, PS384 and PS512 since JDK <= 10 doesn't support them: -->
  130. <dependency>
  131. <groupId>org.bouncycastle</groupId>
  132. <artifactId>bcprov-jdk15on</artifactId>
  133. <version>${bouncycastle.version}</version>
  134. <scope>test</scope>
  135. </dependency>
  136. </dependencies>
  137. </dependencyManagement>
  138. <dependencies>
  139. <!-- Test Dependencies: Only required for testing when building. Not required by users at runtime: -->
  140. <dependency>
  141. <groupId>ch.qos.logback</groupId>
  142. <artifactId>logback-classic</artifactId>
  143. <version>${logback.version}</version>
  144. <scope>test</scope>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.codehaus.groovy</groupId>
  148. <artifactId>groovy</artifactId>
  149. <version>${groovy.version}</version>
  150. <scope>test</scope>
  151. </dependency>
  152. <dependency>
  153. <groupId>org.easymock</groupId>
  154. <artifactId>easymock</artifactId>
  155. <version>${easymock.version}</version>
  156. <scope>test</scope>
  157. </dependency>
  158. <dependency>
  159. <groupId>org.powermock</groupId>
  160. <artifactId>powermock-module-junit4</artifactId>
  161. <version>${powermock.version}</version>
  162. <scope>test</scope>
  163. </dependency>
  164. <dependency>
  165. <groupId>org.powermock</groupId>
  166. <artifactId>powermock-api-easymock</artifactId>
  167. <version>${powermock.version}</version>
  168. <scope>test</scope>
  169. </dependency>
  170. <dependency>
  171. <groupId>org.powermock</groupId>
  172. <artifactId>powermock-core</artifactId>
  173. <version>${powermock.version}</version>
  174. <scope>test</scope>
  175. </dependency>
  176. <dependency>
  177. <groupId>junit</groupId>
  178. <artifactId>junit</artifactId>
  179. <version>4.12</version>
  180. <scope>test</scope>
  181. </dependency>
  182. </dependencies>
  183. <build>
  184. <pluginManagement>
  185. <plugins>
  186. <plugin>
  187. <groupId>org.openclover</groupId>
  188. <artifactId>clover-maven-plugin</artifactId>
  189. <version>${clover.version}</version>
  190. <configuration>
  191. <cloverDatabase>${clover.db}</cloverDatabase>
  192. <!--
  193. cloverDatabase>${user.home}/.clover/${project.groupId}/jjwt/clover.db</cloverDatabase>
  194. <snapshot>${user.home}/.clover/${project.groupId}/jjwt/clover.snapshot</snapshot>
  195. <historyDir>${user.home}/.clover/${project.groupId}/jjwt</historyDir> -->
  196. <excludes>
  197. <exclude>io/jsonwebtoken/lang/*</exclude>
  198. </excludes>
  199. <methodPercentage>100.000000%</methodPercentage>
  200. <statementPercentage>100.000000%</statementPercentage>
  201. <conditionalPercentage>100.000000%</conditionalPercentage>
  202. <targetPercentage>100.000000%</targetPercentage>
  203. </configuration>
  204. </plugin>
  205. </plugins>
  206. </pluginManagement>
  207. <plugins>
  208. <plugin>
  209. <groupId>org.apache.maven.plugins</groupId>
  210. <artifactId>maven-enforcer-plugin</artifactId>
  211. <version>1.4.1</version>
  212. <executions>
  213. <execution>
  214. <id>enforce-banned-dependencies</id>
  215. <goals>
  216. <goal>enforce</goal>
  217. </goals>
  218. <configuration>
  219. <rules>
  220. <bannedDependencies>
  221. <searchTransitive>true</searchTransitive>
  222. <excludes>
  223. <exclude>commons-logging</exclude>
  224. </excludes>
  225. </bannedDependencies>
  226. </rules>
  227. <fail>true</fail>
  228. </configuration>
  229. </execution>
  230. </executions>
  231. </plugin>
  232. <plugin>
  233. <groupId>org.apache.maven.plugins</groupId>
  234. <artifactId>maven-compiler-plugin</artifactId>
  235. <version>${maven.compiler.version}</version>
  236. <configuration>
  237. <source>${jdk.version}</source>
  238. <target>${jdk.version}</target>
  239. <encoding>${project.build.sourceEncoding}</encoding>
  240. </configuration>
  241. </plugin>
  242. <plugin>
  243. <groupId>org.apache.maven.plugins</groupId>
  244. <artifactId>maven-jar-plugin</artifactId>
  245. <version>${maven.jar.version}</version>
  246. <!--
  247. <configuration>
  248. <archive>
  249. <manifest>
  250. <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
  251. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  252. </manifest>
  253. <manifestFile>
  254. ${project.build.outputDirectory}/META-INF/MANIFEST.MF
  255. </manifestFile>
  256. </archive>
  257. </configuration>
  258. -->
  259. </plugin>
  260. <!-- Allow for writing tests in Groovy: -->
  261. <plugin>
  262. <groupId>org.codehaus.gmavenplus</groupId>
  263. <artifactId>gmavenplus-plugin</artifactId>
  264. <version>1.6.1</version>
  265. <executions>
  266. <execution>
  267. <goals>
  268. <goal>addSources</goal>
  269. <goal>addTestSources</goal>
  270. <goal>generateStubs</goal>
  271. <goal>compile</goal>
  272. <goal>generateTestStubs</goal>
  273. <goal>compileTests</goal>
  274. <goal>removeStubs</goal>
  275. <goal>removeTestStubs</goal>
  276. </goals>
  277. </execution>
  278. </executions>
  279. <dependencies>
  280. <dependency>
  281. <groupId>org.codehaus.groovy</groupId>
  282. <artifactId>groovy</artifactId>
  283. <version>${groovy.version}</version>
  284. </dependency>
  285. </dependencies>
  286. </plugin>
  287. <plugin>
  288. <groupId>org.apache.maven.plugins</groupId>
  289. <artifactId>maven-surefire-plugin</artifactId>
  290. <version>${surefire.plugin.version}</version>
  291. <configuration>
  292. <argLine>${surefire.argLine}</argLine>
  293. </configuration>
  294. </plugin>
  295. <plugin>
  296. <groupId>org.apache.maven.plugins</groupId>
  297. <artifactId>maven-failsafe-plugin</artifactId>
  298. <version>${failsafe.plugin.version}</version>
  299. <configuration>
  300. <includes>
  301. <include>**/*IT.java</include>
  302. <include>**/*IT.groovy</include>
  303. <include>**/*ITCase.java</include>
  304. <include>**/*ITCase.groovy</include>
  305. </includes>
  306. <excludes>
  307. <exclude>**/*ManualIT.java</exclude>
  308. <exclude>**/*ManualIT.groovy</exclude>
  309. </excludes>
  310. </configuration>
  311. <executions>
  312. <execution>
  313. <goals>
  314. <goal>integration-test</goal>
  315. <goal>verify</goal>
  316. </goals>
  317. </execution>
  318. </executions>
  319. </plugin>
  320. <plugin>
  321. <groupId>org.openclover</groupId>
  322. <artifactId>clover-maven-plugin</artifactId>
  323. <!--
  324. <configuration>
  325. <excludes>
  326. <!- - leaving out lang as it mostly comes from other sources - ->
  327. <exclude>io/jsonwebtoken/lang/*</exclude>
  328. </excludes>
  329. <methodPercentage>100.000000%</methodPercentage>
  330. <statementPercentage>100.000000%</statementPercentage>
  331. <conditionalPercentage>100.000000%</conditionalPercentage>
  332. <targetPercentage>100.000000%</targetPercentage>
  333. </configuration>
  334. <executions>
  335. <execution>
  336. <id>clover</id>
  337. <phase>test</phase>
  338. <goals>
  339. <goal>instrument</goal>
  340. <goal>aggregate</goal>
  341. <goal>clover</goal>
  342. <goal>check</goal>
  343. </goals>
  344. </execution>
  345. </executions> -->
  346. </plugin>
  347. <plugin>
  348. <groupId>org.apache.maven.plugins</groupId>
  349. <artifactId>maven-release-plugin</artifactId>
  350. <version>2.5.3</version>
  351. <dependencies>
  352. <dependency>
  353. <groupId>org.apache.maven.scm</groupId>
  354. <artifactId>maven-scm-provider-gitexe</artifactId>
  355. <version>1.9.5</version>
  356. </dependency>
  357. </dependencies>
  358. <configuration>
  359. <mavenExecutorId>forked-path</mavenExecutorId>
  360. <useReleaseProfile>false</useReleaseProfile>
  361. <arguments>-Psonatype-oss-release -Pdocs -Psign</arguments>
  362. <autoVersionSubmodules>true</autoVersionSubmodules>
  363. </configuration>
  364. </plugin>
  365. <plugin>
  366. <groupId>org.apache.felix</groupId>
  367. <artifactId>maven-bundle-plugin</artifactId>
  368. <version>3.3.0</version>
  369. <extensions>true</extensions>
  370. <executions>
  371. <execution>
  372. <id>bundle-manifest</id>
  373. <phase>process-classes</phase>
  374. <goals>
  375. <goal>manifest</goal>
  376. </goals>
  377. </execution>
  378. </executions>
  379. <configuration>
  380. <instructions>
  381. <Import-Package><![CDATA[
  382. android.util;resolution:=optional,
  383. org.bouncycastle.jce;resolution:=optional,
  384. org.bouncycastle.jce.spec;resolution:=optional,
  385. *
  386. ]]>
  387. </Import-Package>
  388. </instructions>
  389. </configuration>
  390. </plugin>
  391. <!-- Temporarily host coveralls SNAPSHOT with clover support locally -->
  392. <plugin>
  393. <groupId>org.jwtk.coveralls</groupId>
  394. <artifactId>coveralls-maven-plugin</artifactId>
  395. <version>4.4.0</version>
  396. </plugin>
  397. <!-- Temporarily host coveralls SNAPSHOT with clover support locally -->
  398. <!-- Override OSS parent to support Java 9 -->
  399. <plugin>
  400. <groupId>org.apache.maven.plugins</groupId>
  401. <artifactId>maven-javadoc-plugin</artifactId>
  402. <version>2.10.4</version>
  403. <executions>
  404. <execution>
  405. <id>attach-javadocs</id>
  406. <goals>
  407. <goal>jar</goal>
  408. </goals>
  409. </execution>
  410. </executions>
  411. <dependencies>
  412. <!-- Workaround for Java 9 -->
  413. <dependency>
  414. <groupId>commons-lang</groupId>
  415. <artifactId>commons-lang</artifactId>
  416. <version>2.6</version>
  417. </dependency>
  418. </dependencies>
  419. </plugin>
  420. </plugins>
  421. </build>
  422. <profiles>
  423. <profile>
  424. <id>nonJDK7</id>
  425. <activation>
  426. <jdk>[1.8,)</jdk>
  427. </activation>
  428. <properties>
  429. <!-- Turn off JDK >= 8's lint checks: -->
  430. <additionalparam>-Xdoclint:none</additionalparam>
  431. </properties>
  432. </profile>
  433. <profile>
  434. <!-- Added profile to address https://github.com/jwtk/jjwt/issues/364 -->
  435. <id>jdk9AndLater</id>
  436. <activation>
  437. <jdk>[1.9,)</jdk>
  438. </activation>
  439. <properties>
  440. <surefire.argLine>--add-opens java.base/jdk.internal.loader=ALL-UNNAMED</surefire.argLine>
  441. </properties>
  442. </profile>
  443. <profile>
  444. <id>sign</id>
  445. <build>
  446. <plugins>
  447. <plugin>
  448. <groupId>org.apache.maven.plugins</groupId>
  449. <artifactId>maven-gpg-plugin</artifactId>
  450. <version>1.6</version>
  451. <executions>
  452. <execution>
  453. <id>sign-artifacts</id>
  454. <phase>verify</phase>
  455. <goals>
  456. <goal>sign</goal>
  457. </goals>
  458. </execution>
  459. </executions>
  460. </plugin>
  461. </plugins>
  462. </build>
  463. </profile>
  464. <profile>
  465. <id>docs</id>
  466. <build>
  467. <plugins>
  468. <plugin>
  469. <groupId>org.apache.maven.plugins</groupId>
  470. <artifactId>maven-source-plugin</artifactId>
  471. <version>3.0.1</version>
  472. <executions>
  473. <execution>
  474. <id>attach-sources</id>
  475. <goals>
  476. <goal>jar-no-fork</goal>
  477. </goals>
  478. </execution>
  479. </executions>
  480. </plugin>
  481. <plugin>
  482. <groupId>org.apache.maven.plugins</groupId>
  483. <artifactId>maven-javadoc-plugin</artifactId>
  484. <version>2.10.4</version>
  485. <executions>
  486. <execution>
  487. <id>attach-javadocs</id>
  488. <goals>
  489. <goal>jar</goal>
  490. </goals>
  491. </execution>
  492. </executions>
  493. <dependencies>
  494. <!-- Workaround for Java 9 -->
  495. <dependency>
  496. <groupId>commons-lang</groupId>
  497. <artifactId>commons-lang</artifactId>
  498. <version>2.6</version>
  499. </dependency>
  500. </dependencies>
  501. </plugin>
  502. </plugins>
  503. </build>
  504. </profile>
  505. </profiles>
  506. </project>