pom.xml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.github.jhonnymertz</groupId>
  5. <artifactId>java-wkhtmltopdf-wrapper</artifactId>
  6. <version>1.1.12-RELEASE</version>
  7. <packaging>jar</packaging>
  8. <name>Java WkHtmlToPdf Wrapper</name>
  9. <description>A Java based wrapper for the wkhtmltopdf command line tool. As the name implies, it uses WebKit to convert HTML documents to PDFs.</description>
  10. <url>https://github.com/jhonnymertz/java-wkhtmltopdf-wrapper</url>
  11. <issueManagement>
  12. <url>https://github.com/jhonnymertz/java-wkhtmltopdf-wrapper/issues</url>
  13. <system>GitHub Issues</system>
  14. </issueManagement>
  15. <licenses>
  16. <license>
  17. <name>MIT License</name>
  18. <url>http://www.opensource.org/licenses/mit-license.php</url>
  19. <distribution>repo</distribution>
  20. </license>
  21. </licenses>
  22. <scm>
  23. <url>https://github.com/jhonnymertz/java-wkhtmltopdf-wrapper</url>
  24. <connection>scm:git:git://github.com/jhonnymertz/java-wkhtmltopdf-wrapper.git</connection>
  25. <developerConnection>scm:git:git@github.com:jhonnymertz/java-wkhtmltopdf-wrapper.git</developerConnection>
  26. </scm>
  27. <developers>
  28. <developer>
  29. <email>jhonnymertz@gmail.com</email>
  30. <name>Jhonny Mertz</name>
  31. <url>https://github.com/jhonnymertz</url>
  32. <id>jhonnymertz</id>
  33. </developer>
  34. </developers>
  35. <properties>
  36. <maven.compiler.source>1.7</maven.compiler.source>
  37. <maven.compiler.target>1.7</maven.compiler.target>
  38. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  39. </properties>
  40. <dependencies>
  41. <dependency>
  42. <groupId>org.apache.commons</groupId>
  43. <artifactId>commons-lang3</artifactId>
  44. <version>3.9</version>
  45. </dependency>
  46. <dependency>
  47. <groupId>commons-io</groupId>
  48. <artifactId>commons-io</artifactId>
  49. <version>2.6</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.slf4j</groupId>
  53. <artifactId>slf4j-api</artifactId>
  54. <version>1.7.25</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.slf4j</groupId>
  58. <artifactId>slf4j-simple</artifactId>
  59. <version>1.7.5</version>
  60. <scope>test</scope>
  61. </dependency>
  62. <dependency>
  63. <groupId>junit</groupId>
  64. <artifactId>junit</artifactId>
  65. <version>4.12</version>
  66. <scope>test</scope>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.apache.pdfbox</groupId>
  70. <artifactId>pdfbox</artifactId>
  71. <version>2.0.16</version>
  72. <scope>test</scope>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.mockito</groupId>
  76. <artifactId>mockito-core</artifactId>
  77. <version>3.3.3</version>
  78. <scope>test</scope>
  79. </dependency>
  80. </dependencies>
  81. <build>
  82. <plugins>
  83. <plugin>
  84. <!-- Separates the unit tests from the integration tests. -->
  85. <groupId>org.apache.maven.plugins</groupId>
  86. <artifactId>maven-surefire-plugin</artifactId>
  87. <configuration>
  88. <!-- Skip the default running of this plug-in (or everything is run twice...see below) -->
  89. <skip>true</skip>
  90. <!-- Show 100% of the lines from the stack trace (doesn't work) -->
  91. <trimStackTrace>false</trimStackTrace>
  92. </configuration>
  93. <version>2.22.1</version>
  94. <executions>
  95. <execution>
  96. <id>unit-tests</id>
  97. <phase>test</phase>
  98. <goals>
  99. <goal>test</goal>
  100. </goals>
  101. <configuration>
  102. <!-- Never skip running the tests when the test phase is invoked -->
  103. <skip>false</skip>
  104. <includes>
  105. <!-- Include unit tests within integration-test phase. -->
  106. <include>**/*Tests.java</include>
  107. </includes>
  108. <excludes>
  109. <!-- Exclude integration tests within (unit) test phase. -->
  110. <exclude>**/*IntegrationTests.java</exclude>
  111. </excludes>
  112. </configuration>
  113. </execution>
  114. <execution>
  115. <id>integration-tests</id>
  116. <phase>integration-test</phase>
  117. <goals>
  118. <goal>test</goal>
  119. </goals>
  120. <configuration>
  121. <!-- Never skip running the tests when the integration-test phase is invoked -->
  122. <skip>false</skip>
  123. <includes>
  124. <!-- Include integration tests within integration-test phase. -->
  125. <include>**/*IntegrationTests.java</include>
  126. </includes>
  127. </configuration>
  128. </execution>
  129. </executions>
  130. </plugin>
  131. </plugins>
  132. </build>
  133. <profiles>
  134. <profile>
  135. <id>ossrh</id>
  136. <properties>
  137. <gpg.executable>gpg</gpg.executable>
  138. <gpg.keyname>${env.GPG_KEYNAME}</gpg.keyname>
  139. <gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
  140. <gpg.defaultKeyring>false</gpg.defaultKeyring>
  141. <gpg.publicKeyring>${env.GPG_DIR}/pubring.gpg</gpg.publicKeyring>
  142. <gpg.secretKeyring>${env.GPG_DIR}/secring.gpg</gpg.secretKeyring>
  143. </properties>
  144. <activation>
  145. <property>
  146. <name>performRelease</name>
  147. <value>true</value>
  148. </property>
  149. </activation>
  150. <build>
  151. <plugins>
  152. <plugin>
  153. <groupId>org.apache.maven.plugins</groupId>
  154. <artifactId>maven-gpg-plugin</artifactId>
  155. <version>1.5</version>
  156. <executions>
  157. <execution>
  158. <id>sign-artifacts</id>
  159. <phase>verify</phase>
  160. <goals>
  161. <goal>sign</goal>
  162. </goals>
  163. </execution>
  164. </executions>
  165. </plugin>
  166. <plugin>
  167. <groupId>org.sonatype.plugins</groupId>
  168. <artifactId>nexus-staging-maven-plugin</artifactId>
  169. <version>1.6.2</version>
  170. <extensions>true</extensions>
  171. <configuration>
  172. <serverId>ossrh</serverId>
  173. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  174. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  175. </configuration>
  176. </plugin>
  177. </plugins>
  178. </build>
  179. </profile>
  180. </profiles>
  181. <distributionManagement>
  182. <snapshotRepository>
  183. <id>ossrh</id>
  184. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  185. </snapshotRepository>
  186. <repository>
  187. <id>ossrh</id>
  188. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  189. </repository>
  190. </distributionManagement>
  191. </project>