pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Copyright 2017 Steinar Bang -->
  3. <!-- -->
  4. <!-- Licensed under the Apache License, Version 2.0 (the "License"); -->
  5. <!-- you may not use this file except in compliance with the License. -->
  6. <!-- You may obtain a copy of the License at -->
  7. <!-- http://www.apache.org/licenses/LICENSE-2.0 -->
  8. <!-- Unless required by applicable law or agreed to in writing, -->
  9. <!-- software distributed under the License is distributed on an "AS IS" BASIS, -->
  10. <!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -->
  11. <!-- See the License for the specific language governing permissions and limitations -->
  12. <!-- under the License. -->
  13. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  14. <modelVersion>4.0.0</modelVersion>
  15. <groupId>no.priv.bang.debug-utils</groupId>
  16. <artifactId>post-body-capture</artifactId>
  17. <version>1.0.4-SNAPSHOT</version>
  18. <name>Servlet dumping POSTed data to files</name>
  19. <description>A debugging tool for capturing webhook POST messages, written as a pax web whiteboard extender microservice.</description>
  20. <properties>
  21. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  22. <karaf-feature-name>post-body-capture</karaf-feature-name>
  23. <Bundle-SymbolicName>no.priv.bang.debug-utils.${project.artifactId}</Bundle-SymbolicName>
  24. <maven.bundle.plugin.version>2.5.3</maven.bundle.plugin.version>
  25. <karaf.version>4.2.5</karaf.version>
  26. <osgi.version>6.0.0</osgi.version>
  27. <osgi.service>1.3.0</osgi.service>
  28. <pax.web.version>6.0.3</pax.web.version>
  29. <osgi-service-adaptors.version>1.0.0</osgi-service-adaptors.version>
  30. </properties>
  31. <dependencies>
  32. <dependency>
  33. <groupId>junit</groupId>
  34. <artifactId>junit</artifactId>
  35. <version>4.13.1</version>
  36. <scope>test</scope>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.hamcrest</groupId>
  40. <artifactId>hamcrest-library</artifactId>
  41. <version>1.3</version>
  42. <scope>test</scope>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.mockito</groupId>
  46. <artifactId>mockito-core</artifactId>
  47. <version>1.10.19</version>
  48. <scope>test</scope>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.osgi</groupId>
  52. <artifactId>org.osgi.core</artifactId>
  53. <version>${osgi.version}</version>
  54. <scope>provided</scope>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.osgi</groupId>
  58. <artifactId>org.osgi.service.component.annotations</artifactId>
  59. <version>${osgi.service}</version>
  60. <scope>provided</scope>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.osgi</groupId>
  64. <artifactId>org.osgi.service.log</artifactId>
  65. <version>${osgi.service}</version>
  66. <scope>provided</scope>
  67. </dependency>
  68. <dependency>
  69. <groupId>no.priv.bang.osgi.service.adapters</groupId>
  70. <artifactId>logservice</artifactId>
  71. <version>${osgi-service-adaptors.version}</version>
  72. <scope>provided</scope>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.ops4j.pax.web</groupId>
  76. <artifactId>pax-web-api</artifactId>
  77. <version>${pax.web.version}</version>
  78. <scope>provided</scope>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.ops4j.pax.web</groupId>
  82. <artifactId>pax-web-extender-whiteboard</artifactId>
  83. <version>${pax.web.version}</version>
  84. <scope>provided</scope>
  85. </dependency>
  86. <dependency>
  87. <groupId>javax.servlet</groupId>
  88. <artifactId>javax.servlet-api</artifactId>
  89. <version>3.1.0</version>
  90. <scope>provided</scope>
  91. </dependency>
  92. </dependencies>
  93. <build>
  94. <plugins>
  95. <plugin>
  96. <groupId>org.apache.maven.plugins</groupId>
  97. <artifactId>maven-compiler-plugin</artifactId>
  98. <version>3.5.1</version>
  99. <configuration>
  100. <source>1.8</source>
  101. <target>1.8</target>
  102. </configuration>
  103. </plugin>
  104. <plugin>
  105. <groupId>org.apache.maven.plugins</groupId>
  106. <artifactId>maven-source-plugin</artifactId>
  107. <version>2.4</version>
  108. <executions>
  109. <execution>
  110. <id>attach-sources</id>
  111. <goals>
  112. <goal>jar</goal>
  113. </goals>
  114. </execution>
  115. </executions>
  116. </plugin>
  117. <plugin>
  118. <groupId>org.apache.maven.plugins</groupId>
  119. <artifactId>maven-javadoc-plugin</artifactId>
  120. <version>2.10.2</version>
  121. <configuration>
  122. <show>private</show>
  123. <source>8</source>
  124. </configuration>
  125. <executions>
  126. <execution>
  127. <id>attach-javadocs</id>
  128. <goals>
  129. <goal>jar</goal>
  130. </goals>
  131. </execution>
  132. </executions>
  133. </plugin>
  134. <plugin>
  135. <groupId>org.codehaus.mojo</groupId>
  136. <artifactId>cobertura-maven-plugin</artifactId>
  137. <version>2.7</version>
  138. <configuration>
  139. <outputDirectory>${basedir}/target</outputDirectory>
  140. <formats>
  141. <format>html</format>
  142. <format>xml</format>
  143. </formats>
  144. <aggregate>true</aggregate>
  145. </configuration>
  146. </plugin>
  147. <plugin>
  148. <groupId>org.eluder.coveralls</groupId>
  149. <artifactId>coveralls-maven-plugin</artifactId>
  150. <version>4.3.0</version>
  151. <configuration>
  152. <coberturaReports>
  153. <coberturaReport>${basedir}/target/coverage.xml</coberturaReport>
  154. </coberturaReports>
  155. </configuration>
  156. </plugin>
  157. <plugin>
  158. <groupId>org.apache.maven.plugins</groupId>
  159. <artifactId>maven-release-plugin</artifactId>
  160. <version>2.5.3</version>
  161. <configuration>
  162. <releaseProfiles>release-extras</releaseProfiles>
  163. </configuration>
  164. </plugin>
  165. <plugin>
  166. <groupId>org.apache.felix</groupId>
  167. <artifactId>maven-bundle-plugin</artifactId>
  168. <version>${maven.bundle.plugin.version}</version>
  169. <configuration>
  170. <supportedProjectTypes>
  171. <supportedProjectType>jar</supportedProjectType>
  172. <supportedProjectType>bundle</supportedProjectType>
  173. <supportedProjectType>war</supportedProjectType>
  174. </supportedProjectTypes>
  175. <instructions>
  176. <Bundle-SymbolicName>${Bundle-SymbolicName}</Bundle-SymbolicName>
  177. <Import-Package>*</Import-Package>
  178. <Export-Package>!*</Export-Package>
  179. <_removeheaders>
  180. Private-Package,
  181. Include-Resource,
  182. Embed-Dependency,
  183. Embed-Transitive
  184. </_removeheaders>
  185. <!-- Enable processing of OSGI DS component annotations -->
  186. <_dsannotations>*</_dsannotations>
  187. <!-- Enable processing of OSGI metatype annotations -->
  188. <_metatypeannotations>*</_metatypeannotations>
  189. </instructions>
  190. </configuration>
  191. <executions>
  192. <execution>
  193. <id>bundle</id>
  194. <goals>
  195. <goal>bundle</goal>
  196. </goals>
  197. </execution>
  198. </executions>
  199. </plugin>
  200. <plugin>
  201. <groupId>org.apache.karaf.tooling</groupId>
  202. <artifactId>karaf-maven-plugin</artifactId>
  203. <version>${karaf.version}</version>
  204. <extensions>true</extensions>
  205. <configuration>
  206. <startLevel>80</startLevel>
  207. <includeTransitiveDependency>false</includeTransitiveDependency>
  208. <aggregateFeatures>false</aggregateFeatures>
  209. <includeProjectArtifact>true</includeProjectArtifact>
  210. <primaryFeatureName>${karaf-feature-name}</primaryFeatureName>
  211. </configuration>
  212. <executions>
  213. <execution>
  214. <id>generate-features-file</id>
  215. <phase>package</phase>
  216. <goals>
  217. <goal>features-generate-descriptor</goal>
  218. </goals>
  219. </execution>
  220. </executions>
  221. </plugin>
  222. </plugins>
  223. </build>
  224. <licenses>
  225. <license>
  226. <name>Apache License version 2</name>
  227. <url>http://www.apache.org/licenses/LICENSE-2.0</url>
  228. </license>
  229. </licenses>
  230. <developers>
  231. <developer>
  232. <name>Steinar Bang</name>
  233. <email>sb@dod.no</email>
  234. <url>https://steinar.bang.priv.no/</url>
  235. <organization>steinarb-github</organization>
  236. <organizationUrl>https://github.com/steinarb</organizationUrl>
  237. </developer>
  238. </developers>
  239. <scm>
  240. <url>https://github.com/steinarb/post-body-capture</url>
  241. <connection>scm:git:https://github.com/steinarb/post-body-capture.git</connection>
  242. <tag>HEAD</tag>
  243. </scm>
  244. <issueManagement>
  245. <url>https://github.com/steinarb/post-body-capture/issues</url>
  246. <system>Github issue tracker</system>
  247. </issueManagement>
  248. <ciManagement>
  249. <url>https://travis-ci.org/steinarb/post-body-capture</url>
  250. <system>travis-ci</system>
  251. </ciManagement>
  252. <distributionManagement>
  253. <snapshotRepository>
  254. <id>ossrh</id>
  255. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  256. </snapshotRepository>
  257. <repository>
  258. <id>ossrh</id>
  259. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  260. </repository>
  261. </distributionManagement>
  262. <url>http://steinarb.github.io/post-body-capture/</url>
  263. <profiles>
  264. <profile>
  265. <id>release-extras</id>
  266. <build>
  267. <plugins>
  268. <plugin>
  269. <groupId>org.apache.maven.plugins</groupId>
  270. <artifactId>maven-gpg-plugin</artifactId>
  271. <version>1.6</version>
  272. <executions>
  273. <execution>
  274. <id>sign-artifacts</id>
  275. <phase>verify</phase>
  276. <goals>
  277. <goal>sign</goal>
  278. </goals>
  279. <configuration>
  280. <gpgArguments>
  281. <arg>--pinentry-mode</arg>
  282. <arg>loopback</arg>
  283. </gpgArguments>
  284. </configuration>
  285. </execution>
  286. </executions>
  287. </plugin>
  288. <plugin>
  289. <groupId>org.sonatype.plugins</groupId>
  290. <artifactId>nexus-staging-maven-plugin</artifactId>
  291. <version>1.6.8</version>
  292. <extensions>true</extensions>
  293. <configuration>
  294. <serverId>ossrh</serverId>
  295. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  296. <skipStaging>true</skipStaging>
  297. </configuration>
  298. <executions>
  299. <execution>
  300. <id>default-deploy</id>
  301. <phase>deploy</phase>
  302. <goals>
  303. <goal>deploy</goal>
  304. </goals>
  305. </execution>
  306. </executions>
  307. </plugin>
  308. </plugins>
  309. </build>
  310. </profile>
  311. </profiles>
  312. </project>