jjwt-0.9.0.pom 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480
  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</artifactId>
  26. <version>0.9.0</version>
  27. <name>JSON Web Token support for the JVM</name>
  28. <packaging>jar</packaging>
  29. <licenses>
  30. <license>
  31. <name>Apache License, Version 2.0</name>
  32. <url>http://www.apache.org/licenses/LICENSE-2.0</url>
  33. <distribution>repo</distribution>
  34. </license>
  35. </licenses>
  36. <scm>
  37. <connection>scm:git:https://github.com/jwtk/jjwt.git</connection>
  38. <developerConnection>scm:git:git@github.com:jwtk/jjwt.git</developerConnection>
  39. <url>git@github.com:jwtk/jjwt.git</url>
  40. <tag>jjwt-0.9.0</tag>
  41. </scm>
  42. <issueManagement>
  43. <system>GitHub Issues</system>
  44. <url>https://github.com/jwtk/jjwt/issues</url>
  45. </issueManagement>
  46. <ciManagement>
  47. <system>TravisCI</system>
  48. <url>https://travis-ci.org/jwtk/jjwt</url>
  49. </ciManagement>
  50. <!-- temporary fix until official release of coverall-maven-plugin with clover support -->
  51. <repositories>
  52. <repository>
  53. <snapshots>
  54. <enabled>false</enabled>
  55. </snapshots>
  56. <id>bintray-jwtk-coveralls-maven-plugin</id>
  57. <name>bintray</name>
  58. <url>https://dl.bintray.com/jwtk/coveralls-maven-plugin</url>
  59. </repository>
  60. </repositories>
  61. <pluginRepositories>
  62. <pluginRepository>
  63. <snapshots>
  64. <enabled>false</enabled>
  65. </snapshots>
  66. <id>bintray-jwtk-coveralls-maven-plugin</id>
  67. <name>bintray-plugins</name>
  68. <url>https://dl.bintray.com/jwtk/coveralls-maven-plugin</url>
  69. </pluginRepository>
  70. </pluginRepositories>
  71. <!-- temporary fix until official release of coverall-maven-plugin with clover support -->
  72. <properties>
  73. <maven.jar.version>3.0.2</maven.jar.version>
  74. <maven.compiler.version>3.6.1</maven.compiler.version>
  75. <jdk.version>1.7</jdk.version>
  76. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  77. <buildNumber>${user.name}-${maven.build.timestamp}</buildNumber>
  78. <jackson.version>2.8.9</jackson.version>
  79. <!-- Optional Runtime Dependencies: -->
  80. <bouncycastle.version>1.56</bouncycastle.version>
  81. <!-- Test Dependencies: Only required for testing when building. Not required by users at runtime: -->
  82. <groovy.version>2.4.11</groovy.version>
  83. <logback.version>1.2.3</logback.version>
  84. <easymock.version>3.5</easymock.version>
  85. <junit.version>4.12</junit.version>
  86. <powermock.version>2.0.0-beta.5</powermock.version> <!-- necessary for Java 9 support -->
  87. <failsafe.plugin.version>2.20.1</failsafe.plugin.version>
  88. <surefire.plugin.version>2.20.1</surefire.plugin.version>
  89. <clover.version>4.2.0</clover.version>
  90. </properties>
  91. <dependencies>
  92. <dependency>
  93. <groupId>com.fasterxml.jackson.core</groupId>
  94. <artifactId>jackson-databind</artifactId>
  95. <version>${jackson.version}</version>
  96. </dependency>
  97. <!-- Optional Dependencies: -->
  98. <dependency>
  99. <groupId>org.bouncycastle</groupId>
  100. <artifactId>bcprov-jdk15on</artifactId>
  101. <version>${bouncycastle.version}</version>
  102. <scope>compile</scope>
  103. <optional>true</optional>
  104. </dependency>
  105. <!-- Provided scope: only used in Android environments - not downloaded as a transitive dependency.
  106. This dependency is only a stub of the actual implementation, which means we can't use it at test time.
  107. An Android environment is required to test for real. -->
  108. <dependency>
  109. <groupId>com.google.android</groupId>
  110. <artifactId>android</artifactId>
  111. <version>4.1.1.4</version>
  112. <scope>provided</scope>
  113. <exclusions>
  114. <exclusion>
  115. <groupId>commons-logging</groupId>
  116. <artifactId>commons-logging</artifactId>
  117. </exclusion>
  118. </exclusions>
  119. </dependency>
  120. <!-- Test Dependencies: Only required for testing when building. Not required by users at runtime: -->
  121. <dependency>
  122. <groupId>ch.qos.logback</groupId>
  123. <artifactId>logback-classic</artifactId>
  124. <version>${logback.version}</version>
  125. <scope>test</scope>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.codehaus.groovy</groupId>
  129. <artifactId>groovy-all</artifactId>
  130. <version>${groovy.version}</version>
  131. <scope>test</scope>
  132. </dependency>
  133. <dependency>
  134. <groupId>org.easymock</groupId>
  135. <artifactId>easymock</artifactId>
  136. <version>${easymock.version}</version>
  137. <scope>test</scope>
  138. </dependency>
  139. <dependency>
  140. <groupId>org.powermock</groupId>
  141. <artifactId>powermock-module-junit4</artifactId>
  142. <version>${powermock.version}</version>
  143. <scope>test</scope>
  144. </dependency>
  145. <dependency>
  146. <groupId>org.powermock</groupId>
  147. <artifactId>powermock-api-easymock</artifactId>
  148. <version>${powermock.version}</version>
  149. <scope>test</scope>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.powermock</groupId>
  153. <artifactId>powermock-core</artifactId>
  154. <version>${powermock.version}</version>
  155. <scope>test</scope>
  156. </dependency>
  157. <dependency>
  158. <groupId>junit</groupId>
  159. <artifactId>junit</artifactId>
  160. <version>4.12</version>
  161. <scope>test</scope>
  162. </dependency>
  163. </dependencies>
  164. <build>
  165. <plugins>
  166. <plugin>
  167. <groupId>org.apache.maven.plugins</groupId>
  168. <artifactId>maven-enforcer-plugin</artifactId>
  169. <version>1.4.1</version>
  170. <executions>
  171. <execution>
  172. <id>enforce-banned-dependencies</id>
  173. <goals>
  174. <goal>enforce</goal>
  175. </goals>
  176. <configuration>
  177. <rules>
  178. <bannedDependencies>
  179. <searchTransitive>true</searchTransitive>
  180. <excludes>
  181. <exclude>commons-logging</exclude>
  182. </excludes>
  183. </bannedDependencies>
  184. </rules>
  185. <fail>true</fail>
  186. </configuration>
  187. </execution>
  188. </executions>
  189. </plugin>
  190. <plugin>
  191. <groupId>org.apache.maven.plugins</groupId>
  192. <artifactId>maven-compiler-plugin</artifactId>
  193. <version>${maven.compiler.version}</version>
  194. <configuration>
  195. <source>${jdk.version}</source>
  196. <target>${jdk.version}</target>
  197. <encoding>${project.build.sourceEncoding}</encoding>
  198. </configuration>
  199. </plugin>
  200. <plugin>
  201. <groupId>org.apache.maven.plugins</groupId>
  202. <artifactId>maven-jar-plugin</artifactId>
  203. <version>${maven.jar.version}</version>
  204. <configuration>
  205. <archive>
  206. <manifest>
  207. <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
  208. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  209. </manifest>
  210. <manifestFile>
  211. ${project.build.outputDirectory}/META-INF/MANIFEST.MF
  212. </manifestFile>
  213. </archive>
  214. </configuration>
  215. </plugin>
  216. <!-- Allow for writing tests in Groovy: -->
  217. <plugin>
  218. <groupId>org.codehaus.gmaven</groupId>
  219. <artifactId>gmaven-plugin</artifactId>
  220. <version>1.5</version>
  221. <configuration>
  222. <providerSelection>2.0</providerSelection>
  223. <source />
  224. </configuration>
  225. <executions>
  226. <execution>
  227. <goals>
  228. <goal>generateStubs</goal>
  229. <goal>compile</goal>
  230. <goal>generateTestStubs</goal>
  231. <goal>testCompile</goal>
  232. </goals>
  233. </execution>
  234. </executions>
  235. <dependencies>
  236. <dependency>
  237. <groupId>org.codehaus.gmaven.runtime</groupId>
  238. <artifactId>gmaven-runtime-2.0</artifactId>
  239. <version>1.5</version>
  240. <exclusions>
  241. <exclusion>
  242. <groupId>org.codehaus.groovy</groupId>
  243. <artifactId>groovy-all</artifactId>
  244. </exclusion>
  245. </exclusions>
  246. </dependency>
  247. <dependency>
  248. <groupId>org.codehaus.groovy</groupId>
  249. <artifactId>groovy-all</artifactId>
  250. <version>${groovy.version}</version>
  251. </dependency>
  252. </dependencies>
  253. </plugin>
  254. <!-- Override OSS parent to support Java 9. Doesn't hurt Java 8 -->
  255. <plugin>
  256. <groupId>org.apache.maven.plugins</groupId>
  257. <artifactId>maven-surefire-plugin</artifactId>
  258. <version>${surefire.plugin.version}</version>
  259. </plugin>
  260. <plugin>
  261. <groupId>org.apache.maven.plugins</groupId>
  262. <artifactId>maven-failsafe-plugin</artifactId>
  263. <version>${failsafe.plugin.version}</version>
  264. <configuration>
  265. <includes>
  266. <include>**/*IT.java</include>
  267. <include>**/*IT.groovy</include>
  268. <include>**/*ITCase.java</include>
  269. <include>**/*ITCase.groovy</include>
  270. </includes>
  271. <excludes>
  272. <exclude>**/*ManualIT.java</exclude>
  273. <exclude>**/*ManualIT.groovy</exclude>
  274. </excludes>
  275. </configuration>
  276. <executions>
  277. <execution>
  278. <goals>
  279. <goal>integration-test</goal>
  280. <goal>verify</goal>
  281. </goals>
  282. </execution>
  283. </executions>
  284. </plugin>
  285. <plugin>
  286. <groupId>org.openclover</groupId>
  287. <artifactId>clover-maven-plugin</artifactId>
  288. <version>${clover.version}</version>
  289. <configuration>
  290. <excludes>
  291. <exclude>**/*Test*</exclude>
  292. <!-- leaving out lang as it mostly comes from other sources -->
  293. <exclude>io/jsonwebtoken/lang/*</exclude>
  294. </excludes>
  295. <methodPercentage>100%</methodPercentage>
  296. <statementPercentage>100%</statementPercentage>
  297. <conditionalPercentage>100%</conditionalPercentage>
  298. <targetPercentage>100%</targetPercentage>
  299. </configuration>
  300. <executions>
  301. <execution>
  302. <id>clover</id>
  303. <phase>test</phase>
  304. <goals>
  305. <goal>instrument</goal>
  306. <goal>check</goal>
  307. <goal>clover</goal>
  308. </goals>
  309. </execution>
  310. </executions>
  311. </plugin>
  312. <plugin>
  313. <groupId>org.apache.maven.plugins</groupId>
  314. <artifactId>maven-release-plugin</artifactId>
  315. <version>2.5.3</version>
  316. <dependencies>
  317. <dependency>
  318. <groupId>org.apache.maven.scm</groupId>
  319. <artifactId>maven-scm-provider-gitexe</artifactId>
  320. <version>1.9.5</version>
  321. </dependency>
  322. </dependencies>
  323. <configuration>
  324. <mavenExecutorId>forked-path</mavenExecutorId>
  325. <useReleaseProfile>false</useReleaseProfile>
  326. <arguments>-Psonatype-oss-release -Pdocs -Psign</arguments>
  327. <autoVersionSubmodules>true</autoVersionSubmodules>
  328. </configuration>
  329. </plugin>
  330. <plugin>
  331. <groupId>org.apache.felix</groupId>
  332. <artifactId>maven-bundle-plugin</artifactId>
  333. <version>3.3.0</version>
  334. <extensions>true</extensions>
  335. <executions>
  336. <execution>
  337. <id>bundle-manifest</id>
  338. <phase>process-classes</phase>
  339. <goals>
  340. <goal>manifest</goal>
  341. </goals>
  342. </execution>
  343. </executions>
  344. <configuration>
  345. <instructions>
  346. <Import-Package><![CDATA[
  347. android.util;resolution:=optional,
  348. org.bouncycastle.jce;resolution:=optional,
  349. org.bouncycastle.jce.spec;resolution:=optional,
  350. *
  351. ]]>
  352. </Import-Package>
  353. </instructions>
  354. </configuration>
  355. </plugin>
  356. <!-- Temporarily host coveralls SNAPSHOT with clover support locally -->
  357. <plugin>
  358. <groupId>org.jwtk.coveralls</groupId>
  359. <artifactId>coveralls-maven-plugin</artifactId>
  360. <version>4.4.0</version>
  361. </plugin>
  362. <!-- Temporarily host coveralls SNAPSHOT with clover support locally -->
  363. <!-- Override OSS parent to support Java 9 -->
  364. <plugin>
  365. <groupId>org.apache.maven.plugins</groupId>
  366. <artifactId>maven-javadoc-plugin</artifactId>
  367. <version>2.10.4</version>
  368. <executions>
  369. <execution>
  370. <id>attach-javadocs</id>
  371. <goals>
  372. <goal>jar</goal>
  373. </goals>
  374. </execution>
  375. </executions>
  376. <dependencies>
  377. <!-- Workaround for Java 9 -->
  378. <dependency>
  379. <groupId>commons-lang</groupId>
  380. <artifactId>commons-lang</artifactId>
  381. <version>2.6</version>
  382. </dependency>
  383. </dependencies>
  384. </plugin>
  385. </plugins>
  386. </build>
  387. <profiles>
  388. <profile>
  389. <id>jdk8</id>
  390. <activation>
  391. <jdk>1.8</jdk>
  392. </activation>
  393. <properties>
  394. <!-- Turn off JDK 8's lint checks: -->
  395. <additionalparam>-Xdoclint:none</additionalparam>
  396. </properties>
  397. </profile>
  398. <profile>
  399. <id>sign</id>
  400. <build>
  401. <plugins>
  402. <plugin>
  403. <groupId>org.apache.maven.plugins</groupId>
  404. <artifactId>maven-gpg-plugin</artifactId>
  405. <version>1.6</version>
  406. <executions>
  407. <execution>
  408. <id>sign-artifacts</id>
  409. <phase>verify</phase>
  410. <goals>
  411. <goal>sign</goal>
  412. </goals>
  413. </execution>
  414. </executions>
  415. </plugin>
  416. </plugins>
  417. </build>
  418. </profile>
  419. <profile>
  420. <id>docs</id>
  421. <build>
  422. <plugins>
  423. <plugin>
  424. <groupId>org.apache.maven.plugins</groupId>
  425. <artifactId>maven-source-plugin</artifactId>
  426. <version>3.0.1</version>
  427. <executions>
  428. <execution>
  429. <id>attach-sources</id>
  430. <goals>
  431. <goal>jar-no-fork</goal>
  432. </goals>
  433. </execution>
  434. </executions>
  435. </plugin>
  436. <plugin>
  437. <groupId>org.apache.maven.plugins</groupId>
  438. <artifactId>maven-javadoc-plugin</artifactId>
  439. <version>2.10.4</version>
  440. <executions>
  441. <execution>
  442. <id>attach-javadocs</id>
  443. <goals>
  444. <goal>jar</goal>
  445. </goals>
  446. </execution>
  447. </executions>
  448. <dependencies>
  449. <!-- Workaround for Java 9 -->
  450. <dependency>
  451. <groupId>commons-lang</groupId>
  452. <artifactId>commons-lang</artifactId>
  453. <version>2.6</version>
  454. </dependency>
  455. </dependencies>
  456. </plugin>
  457. </plugins>
  458. </build>
  459. </profile>
  460. </profiles>
  461. </project>