pom.xml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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.11-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.8</maven.compiler.source>
  37. <maven.compiler.target>1.8</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. </dependencies>
  75. <build>
  76. <plugins>
  77. <plugin>
  78. <!-- Separates the unit tests from the integration tests. -->
  79. <groupId>org.apache.maven.plugins</groupId>
  80. <artifactId>maven-surefire-plugin</artifactId>
  81. <configuration>
  82. <!-- Skip the default running of this plug-in (or everything is run twice...see below) -->
  83. <skip>true</skip>
  84. <!-- Show 100% of the lines from the stack trace (doesn't work) -->
  85. <trimStackTrace>false</trimStackTrace>
  86. </configuration>
  87. <version>2.22.1</version>
  88. <executions>
  89. <execution>
  90. <id>unit-tests</id>
  91. <phase>test</phase>
  92. <goals>
  93. <goal>test</goal>
  94. </goals>
  95. <configuration>
  96. <!-- Never skip running the tests when the test phase is invoked -->
  97. <skip>false</skip>
  98. <includes>
  99. <!-- Include unit tests within integration-test phase. -->
  100. <include>**/*Tests.java</include>
  101. </includes>
  102. <excludes>
  103. <!-- Exclude integration tests within (unit) test phase. -->
  104. <exclude>**/*IntegrationTests.java</exclude>
  105. </excludes>
  106. </configuration>
  107. </execution>
  108. <execution>
  109. <id>integration-tests</id>
  110. <phase>integration-test</phase>
  111. <goals>
  112. <goal>test</goal>
  113. </goals>
  114. <configuration>
  115. <!-- Never skip running the tests when the integration-test phase is invoked -->
  116. <skip>false</skip>
  117. <includes>
  118. <!-- Include integration tests within integration-test phase. -->
  119. <include>**/*IntegrationTests.java</include>
  120. </includes>
  121. </configuration>
  122. </execution>
  123. </executions>
  124. </plugin>
  125. </plugins>
  126. </build>
  127. <profiles>
  128. <profile>
  129. <id>ossrh</id>
  130. <properties>
  131. <gpg.executable>gpg</gpg.executable>
  132. <gpg.keyname>${env.GPG_KEYNAME}</gpg.keyname>
  133. <gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
  134. <gpg.defaultKeyring>false</gpg.defaultKeyring>
  135. <gpg.publicKeyring>${env.GPG_DIR}/pubring.gpg</gpg.publicKeyring>
  136. <gpg.secretKeyring>${env.GPG_DIR}/secring.gpg</gpg.secretKeyring>
  137. </properties>
  138. <activation>
  139. <property>
  140. <name>performRelease</name>
  141. <value>true</value>
  142. </property>
  143. </activation>
  144. <build>
  145. <plugins>
  146. <plugin>
  147. <groupId>org.apache.maven.plugins</groupId>
  148. <artifactId>maven-gpg-plugin</artifactId>
  149. <version>1.5</version>
  150. <executions>
  151. <execution>
  152. <id>sign-artifacts</id>
  153. <phase>verify</phase>
  154. <goals>
  155. <goal>sign</goal>
  156. </goals>
  157. </execution>
  158. </executions>
  159. </plugin>
  160. <plugin>
  161. <groupId>org.sonatype.plugins</groupId>
  162. <artifactId>nexus-staging-maven-plugin</artifactId>
  163. <version>1.6.2</version>
  164. <extensions>true</extensions>
  165. <configuration>
  166. <serverId>ossrh</serverId>
  167. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  168. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  169. </configuration>
  170. </plugin>
  171. </plugins>
  172. </build>
  173. </profile>
  174. </profiles>
  175. <distributionManagement>
  176. <snapshotRepository>
  177. <id>ossrh</id>
  178. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  179. </snapshotRepository>
  180. <repository>
  181. <id>ossrh</id>
  182. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  183. </repository>
  184. </distributionManagement>
  185. </project>