pom.xml 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  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.15-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. </properties>
  42. <dependencies>
  43. <dependency>
  44. <groupId>org.apache.commons</groupId>
  45. <artifactId>commons-lang3</artifactId>
  46. <version>3.9</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>commons-io</groupId>
  50. <artifactId>commons-io</artifactId>
  51. <version>2.7</version>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.slf4j</groupId>
  55. <artifactId>slf4j-api</artifactId>
  56. <version>1.7.25</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.slf4j</groupId>
  60. <artifactId>slf4j-simple</artifactId>
  61. <version>1.7.5</version>
  62. <scope>test</scope>
  63. </dependency>
  64. <dependency>
  65. <groupId>junit</groupId>
  66. <artifactId>junit</artifactId>
  67. <version>4.13.2</version>
  68. <scope>test</scope>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.apache.pdfbox</groupId>
  72. <artifactId>pdfbox</artifactId>
  73. <version>2.0.24</version>
  74. <scope>test</scope>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.mockito</groupId>
  78. <artifactId>mockito-core</artifactId>
  79. <version>3.3.3</version>
  80. <scope>test</scope>
  81. </dependency>
  82. </dependencies>
  83. <build>
  84. <plugins>
  85. <plugin>
  86. <!-- Separates the unit tests from the integration tests. -->
  87. <groupId>org.apache.maven.plugins</groupId>
  88. <artifactId>maven-surefire-plugin</artifactId>
  89. <configuration>
  90. <!-- Skip the default running of this plug-in (or everything is run twice...see below) -->
  91. <skip>true</skip>
  92. <!-- Show 100% of the lines from the stack trace (doesn't work) -->
  93. <trimStackTrace>false</trimStackTrace>
  94. </configuration>
  95. <version>2.22.2</version>
  96. <executions>
  97. <execution>
  98. <id>unit-tests</id>
  99. <phase>test</phase>
  100. <goals>
  101. <goal>test</goal>
  102. </goals>
  103. <configuration>
  104. <!-- Never skip running the tests when the test phase is invoked -->
  105. <skip>false</skip>
  106. <includes>
  107. <!-- Include unit tests within integration-test phase. -->
  108. <include>**/*Tests.java</include>
  109. </includes>
  110. <excludes>
  111. <!-- Exclude integration tests within (unit) test phase. -->
  112. <exclude>**/*IntegrationTests.java</exclude>
  113. </excludes>
  114. </configuration>
  115. </execution>
  116. <execution>
  117. <id>integration-tests</id>
  118. <phase>integration-test</phase>
  119. <goals>
  120. <goal>test</goal>
  121. </goals>
  122. <configuration>
  123. <!-- Never skip running the tests when the integration-test phase is invoked -->
  124. <skip>false</skip>
  125. <includes>
  126. <!-- Include integration tests within integration-test phase. -->
  127. <include>**/*IntegrationTests.java</include>
  128. </includes>
  129. </configuration>
  130. </execution>
  131. </executions>
  132. </plugin>
  133. <plugin>
  134. <groupId>org.sonatype.plugins</groupId>
  135. <artifactId>nexus-staging-maven-plugin</artifactId>
  136. <version>1.6.13</version>
  137. <extensions>true</extensions>
  138. <configuration>
  139. <serverId>ossrh</serverId>
  140. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  141. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  142. </configuration>
  143. </plugin>
  144. </plugins>
  145. </build>
  146. <profiles>
  147. <profile>
  148. <id>release</id>
  149. <build>
  150. <plugins>
  151. <plugin>
  152. <groupId>org.apache.maven.plugins</groupId>
  153. <artifactId>maven-source-plugin</artifactId>
  154. <version>3.2.1</version>
  155. <executions>
  156. <execution>
  157. <id>attach-sources</id>
  158. <goals>
  159. <goal>jar-no-fork</goal>
  160. </goals>
  161. </execution>
  162. </executions>
  163. </plugin>
  164. <plugin>
  165. <groupId>org.apache.maven.plugins</groupId>
  166. <artifactId>maven-javadoc-plugin</artifactId>
  167. <version>3.4.1</version>
  168. <executions>
  169. <execution>
  170. <id>attach-javadocs</id>
  171. <goals>
  172. <goal>jar</goal>
  173. </goals>
  174. </execution>
  175. </executions>
  176. </plugin>
  177. <plugin>
  178. <groupId>org.apache.maven.plugins</groupId>
  179. <artifactId>maven-gpg-plugin</artifactId>
  180. <version>3.0.1</version>
  181. <executions>
  182. <execution>
  183. <id>sign-artifacts</id>
  184. <phase>verify</phase>
  185. <goals>
  186. <goal>sign</goal>
  187. </goals>
  188. </execution>
  189. </executions>
  190. <configuration>
  191. <!-- Prevent gpg from using pinentry programs -->
  192. <gpgArguments>
  193. <arg>--pinentry-mode</arg>
  194. <arg>loopback</arg>
  195. </gpgArguments>
  196. </configuration>
  197. </plugin>
  198. </plugins>
  199. </build>
  200. </profile>
  201. </profiles>
  202. <distributionManagement>
  203. <repository>
  204. <id>ossrh</id>
  205. <name>Central Repository OSSRH</name>
  206. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  207. </repository>
  208. </distributionManagement>
  209. </project>