pom.xml 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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.3.0-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
  10. convert HTML documents to PDFs.
  11. </description>
  12. <url>https://github.com/jhonnymertz/java-wkhtmltopdf-wrapper</url>
  13. <issueManagement>
  14. <url>https://github.com/jhonnymertz/java-wkhtmltopdf-wrapper/issues</url>
  15. <system>GitHub Issues</system>
  16. </issueManagement>
  17. <licenses>
  18. <license>
  19. <name>MIT License</name>
  20. <url>http://www.opensource.org/licenses/mit-license.php</url>
  21. <distribution>repo</distribution>
  22. </license>
  23. </licenses>
  24. <scm>
  25. <url>https://github.com/jhonnymertz/java-wkhtmltopdf-wrapper</url>
  26. <connection>scm:git:git://github.com/jhonnymertz/java-wkhtmltopdf-wrapper.git</connection>
  27. <developerConnection>scm:git:git@github.com:jhonnymertz/java-wkhtmltopdf-wrapper.git</developerConnection>
  28. </scm>
  29. <developers>
  30. <developer>
  31. <email>jhonnymertz@gmail.com</email>
  32. <name>Jhonny Mertz</name>
  33. <url>https://github.com/jhonnymertz</url>
  34. <id>jhonnymertz</id>
  35. </developer>
  36. </developers>
  37. <properties>
  38. <maven.compiler.source>1.8</maven.compiler.source>
  39. <maven.compiler.target>1.8</maven.compiler.target>
  40. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  41. <slf4j-version>2.0.13</slf4j-version>
  42. <commons-lang-version>3.14.0</commons-lang-version>
  43. <commons-io-version>2.16.1</commons-io-version>
  44. <junit-version>5.10.2</junit-version>
  45. <pdfbox-version>3.0.2</pdfbox-version>
  46. <mockito-version>5.11.0</mockito-version>
  47. <hamcrest-version>1.3</hamcrest-version>
  48. <!-- Maven plugins -->
  49. <maven-surefire-version>3.2.5</maven-surefire-version>
  50. <maven-javadoc-version>3.6.3</maven-javadoc-version>
  51. <maven-gpg-version>3.2.3</maven-gpg-version>
  52. <maven-source-version>3.3.1</maven-source-version>
  53. <sonatype-staging-version>1.6.13</sonatype-staging-version>
  54. </properties>
  55. <dependencies>
  56. <dependency>
  57. <groupId>org.apache.commons</groupId>
  58. <artifactId>commons-lang3</artifactId>
  59. <version>${commons-lang-version}</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>commons-io</groupId>
  63. <artifactId>commons-io</artifactId>
  64. <version>${commons-io-version}</version>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.slf4j</groupId>
  68. <artifactId>slf4j-api</artifactId>
  69. <version>${slf4j-version}</version>
  70. </dependency>
  71. <!-- Testing libraries -->
  72. <dependency>
  73. <groupId>org.slf4j</groupId>
  74. <artifactId>slf4j-simple</artifactId>
  75. <version>${slf4j-version}</version>
  76. <scope>test</scope>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.junit.jupiter</groupId>
  80. <artifactId>junit-jupiter-engine</artifactId>
  81. <version>${junit-version}</version>
  82. <scope>test</scope>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.hamcrest</groupId>
  86. <artifactId>hamcrest-all</artifactId>
  87. <version>${hamcrest-version}</version>
  88. <scope>test</scope>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.apache.pdfbox</groupId>
  92. <artifactId>pdfbox</artifactId>
  93. <version>${pdfbox-version}</version>
  94. <scope>test</scope>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.mockito</groupId>
  98. <artifactId>mockito-core</artifactId>
  99. <version>${mockito-version}</version>
  100. <scope>test</scope>
  101. </dependency>
  102. </dependencies>
  103. <build>
  104. <plugins>
  105. <plugin>
  106. <!-- Separates the unit tests from the integration tests. -->
  107. <groupId>org.apache.maven.plugins</groupId>
  108. <artifactId>maven-surefire-plugin</artifactId>
  109. <configuration>
  110. <!-- Skip the default running of this plug-in (or everything is run twice...see below) -->
  111. <skip>true</skip>
  112. <!-- Show 100% of the lines from the stack trace (doesn't work) -->
  113. <trimStackTrace>false</trimStackTrace>
  114. </configuration>
  115. <version>${maven-surefire-version}</version>
  116. <executions>
  117. <execution>
  118. <id>unit-tests</id>
  119. <phase>test</phase>
  120. <goals>
  121. <goal>test</goal>
  122. </goals>
  123. <configuration>
  124. <!-- Never skip running the tests when the test phase is invoked -->
  125. <skip>false</skip>
  126. <includes>
  127. <!-- Include unit tests within integration-test phase. -->
  128. <include>**/*Tests.java</include>
  129. </includes>
  130. <excludes>
  131. <!-- Exclude integration tests within (unit) test phase. -->
  132. <exclude>**/*IntegrationTests.java</exclude>
  133. </excludes>
  134. </configuration>
  135. </execution>
  136. <execution>
  137. <id>integration-tests</id>
  138. <phase>integration-test</phase>
  139. <goals>
  140. <goal>test</goal>
  141. </goals>
  142. <configuration>
  143. <!-- Never skip running the tests when the integration-test phase is invoked -->
  144. <skip>false</skip>
  145. <includes>
  146. <!-- Include integration tests within integration-test phase. -->
  147. <include>**/*IntegrationTests.java</include>
  148. </includes>
  149. </configuration>
  150. </execution>
  151. </executions>
  152. </plugin>
  153. <plugin>
  154. <groupId>org.sonatype.plugins</groupId>
  155. <artifactId>nexus-staging-maven-plugin</artifactId>
  156. <version>${sonatype-staging-version}</version>
  157. <extensions>true</extensions>
  158. <configuration>
  159. <serverId>ossrh</serverId>
  160. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  161. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  162. </configuration>
  163. </plugin>
  164. </plugins>
  165. </build>
  166. <profiles>
  167. <profile>
  168. <id>release</id>
  169. <build>
  170. <plugins>
  171. <plugin>
  172. <groupId>org.apache.maven.plugins</groupId>
  173. <artifactId>maven-source-plugin</artifactId>
  174. <version>${maven-source-version}</version>
  175. <executions>
  176. <execution>
  177. <id>attach-sources</id>
  178. <goals>
  179. <goal>jar-no-fork</goal>
  180. </goals>
  181. </execution>
  182. </executions>
  183. </plugin>
  184. <plugin>
  185. <groupId>org.apache.maven.plugins</groupId>
  186. <artifactId>maven-javadoc-plugin</artifactId>
  187. <version>${maven-javadoc-version}</version>
  188. <executions>
  189. <execution>
  190. <id>attach-javadocs</id>
  191. <goals>
  192. <goal>jar</goal>
  193. </goals>
  194. </execution>
  195. </executions>
  196. </plugin>
  197. <plugin>
  198. <groupId>org.apache.maven.plugins</groupId>
  199. <artifactId>maven-gpg-plugin</artifactId>
  200. <version>${maven-gpg-version}</version>
  201. <executions>
  202. <execution>
  203. <id>sign-artifacts</id>
  204. <phase>verify</phase>
  205. <goals>
  206. <goal>sign</goal>
  207. </goals>
  208. </execution>
  209. </executions>
  210. <configuration>
  211. <!-- Prevent gpg from using pinentry programs -->
  212. <gpgArguments>
  213. <arg>--pinentry-mode</arg>
  214. <arg>loopback</arg>
  215. </gpgArguments>
  216. </configuration>
  217. </plugin>
  218. </plugins>
  219. </build>
  220. </profile>
  221. </profiles>
  222. <distributionManagement>
  223. <repository>
  224. <id>ossrh</id>
  225. <name>Central Repository OSSRH</name>
  226. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  227. </repository>
  228. </distributionManagement>
  229. </project>