pom.xml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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.8-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. <dependencies>
  36. <dependency>
  37. <groupId>org.apache.commons</groupId>
  38. <artifactId>commons-lang3</artifactId>
  39. <version>3.4</version>
  40. </dependency>
  41. <dependency>
  42. <groupId>commons-io</groupId>
  43. <artifactId>commons-io</artifactId>
  44. <version>2.5</version>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.slf4j</groupId>
  48. <artifactId>slf4j-api</artifactId>
  49. <version>1.7.25</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.slf4j</groupId>
  53. <artifactId>slf4j-simple</artifactId>
  54. <version>1.7.5</version>
  55. <scope>test</scope>
  56. </dependency>
  57. <dependency>
  58. <groupId>junit</groupId>
  59. <artifactId>junit</artifactId>
  60. <version>4.12</version>
  61. <scope>test</scope>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.apache.pdfbox</groupId>
  65. <artifactId>pdfbox</artifactId>
  66. <version>1.8.16</version>
  67. <scope>test</scope>
  68. </dependency>
  69. </dependencies>
  70. <build>
  71. <plugins>
  72. <plugin>
  73. <!-- Separates the unit tests from the integration tests. -->
  74. <groupId>org.apache.maven.plugins</groupId>
  75. <artifactId>maven-surefire-plugin</artifactId>
  76. <configuration>
  77. <!-- Skip the default running of this plug-in (or everything is run twice...see below) -->
  78. <skip>true</skip>
  79. <!-- Show 100% of the lines from the stack trace (doesn't work) -->
  80. <trimStackTrace>false</trimStackTrace>
  81. </configuration>
  82. <executions>
  83. <execution>
  84. <id>unit-tests</id>
  85. <phase>test</phase>
  86. <goals>
  87. <goal>test</goal>
  88. </goals>
  89. <configuration>
  90. <!-- Never skip running the tests when the test phase is invoked -->
  91. <skip>false</skip>
  92. <includes>
  93. <!-- Include unit tests within integration-test phase. -->
  94. <include>**/*Tests.java</include>
  95. </includes>
  96. <excludes>
  97. <!-- Exclude integration tests within (unit) test phase. -->
  98. <exclude>**/*IntegrationTests.java</exclude>
  99. </excludes>
  100. </configuration>
  101. </execution>
  102. <execution>
  103. <id>integration-tests</id>
  104. <phase>integration-test</phase>
  105. <goals>
  106. <goal>test</goal>
  107. </goals>
  108. <configuration>
  109. <!-- Never skip running the tests when the integration-test phase is invoked -->
  110. <skip>false</skip>
  111. <includes>
  112. <!-- Include integration tests within integration-test phase. -->
  113. <include>**/*IntegrationTests.java</include>
  114. </includes>
  115. </configuration>
  116. </execution>
  117. </executions>
  118. </plugin>
  119. </plugins>
  120. </build>
  121. <profiles>
  122. <profile>
  123. <id>ossrh</id>
  124. <properties>
  125. <gpg.executable>gpg</gpg.executable>
  126. <gpg.keyname>${env.GPG_KEYNAME}</gpg.keyname>
  127. <gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
  128. <gpg.defaultKeyring>false</gpg.defaultKeyring>
  129. <gpg.publicKeyring>${env.GPG_DIR}/pubring.gpg</gpg.publicKeyring>
  130. <gpg.secretKeyring>${env.GPG_DIR}/secring.gpg</gpg.secretKeyring>
  131. </properties>
  132. <activation>
  133. <property>
  134. <name>performRelease</name>
  135. <value>true</value>
  136. </property>
  137. </activation>
  138. <build>
  139. <plugins>
  140. <plugin>
  141. <groupId>org.apache.maven.plugins</groupId>
  142. <artifactId>maven-gpg-plugin</artifactId>
  143. <version>1.5</version>
  144. <executions>
  145. <execution>
  146. <id>sign-artifacts</id>
  147. <phase>verify</phase>
  148. <goals>
  149. <goal>sign</goal>
  150. </goals>
  151. </execution>
  152. </executions>
  153. </plugin>
  154. <plugin>
  155. <groupId>org.sonatype.plugins</groupId>
  156. <artifactId>nexus-staging-maven-plugin</artifactId>
  157. <version>1.6.2</version>
  158. <extensions>true</extensions>
  159. <configuration>
  160. <serverId>ossrh</serverId>
  161. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  162. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  163. </configuration>
  164. </plugin>
  165. </plugins>
  166. </build>
  167. </profile>
  168. </profiles>
  169. <distributionManagement>
  170. <snapshotRepository>
  171. <id>ossrh</id>
  172. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  173. </snapshotRepository>
  174. <repository>
  175. <id>ossrh</id>
  176. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  177. </repository>
  178. </distributionManagement>
  179. </project>