pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Copyright 2017-2023 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" xml:space="preserve">
  14. <modelVersion>4.0.0</modelVersion>
  15. <parent>
  16. <groupId>no.priv.bang.sonar.sonar-collector</groupId>
  17. <artifactId>sonar-collector</artifactId>
  18. <version>1.5.23-SNAPSHOT</version>
  19. </parent>
  20. <artifactId>sonar-collector-webhook</artifactId>
  21. <name>SonarQube data collector webhook</name>
  22. <description>An apache karaf microservice to capture SonarQube/SonarCloud key measures and save statistics to a PostgreSQL database.</description>
  23. <properties>
  24. <karaf-feature-name>sonar-collector-webhook</karaf-feature-name>
  25. <Bundle-SymbolicName>no.priv.bang.sonar.${project.artifactId}</Bundle-SymbolicName>
  26. </properties>
  27. <dependencies>
  28. <dependency>
  29. <groupId>org.junit.jupiter</groupId>
  30. <artifactId>junit-jupiter-api</artifactId>
  31. <scope>test</scope>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.junit.jupiter</groupId>
  35. <artifactId>junit-jupiter-engine</artifactId>
  36. <scope>test</scope>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.assertj</groupId>
  40. <artifactId>assertj-core</artifactId>
  41. <scope>test</scope>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.hamcrest</groupId>
  45. <artifactId>hamcrest</artifactId>
  46. <scope>test</scope>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.mockito</groupId>
  50. <artifactId>mockito-core</artifactId>
  51. <scope>test</scope>
  52. </dependency>
  53. <dependency>
  54. <groupId>no.priv.bang.osgi.service.adapters</groupId>
  55. <artifactId>service-mocks</artifactId>
  56. <scope>test</scope>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.osgi</groupId>
  60. <artifactId>osgi.core</artifactId>
  61. <scope>provided</scope>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.osgi</groupId>
  65. <artifactId>org.osgi.service.component.annotations</artifactId>
  66. <scope>provided</scope>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.osgi</groupId>
  70. <artifactId>org.osgi.service.log</artifactId>
  71. <scope>provided</scope>
  72. </dependency>
  73. <dependency>
  74. <groupId>no.priv.bang.osgi.service.adapters</groupId>
  75. <artifactId>adapters.logservice</artifactId>
  76. <scope>provided</scope>
  77. </dependency>
  78. <dependency>
  79. <groupId>no.priv.bang.osgi.service.adapters</groupId>
  80. <artifactId>adapters.logservice</artifactId>
  81. <type>xml</type>
  82. <classifier>features</classifier>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.osgi</groupId>
  86. <artifactId>org.osgi.service.jdbc</artifactId>
  87. <scope>provided</scope>
  88. </dependency>
  89. <dependency>
  90. <groupId>no.priv.bang.osgi.service.adapters</groupId>
  91. <artifactId>adapters.jdbc</artifactId>
  92. <scope>provided</scope>
  93. </dependency>
  94. <dependency>
  95. <groupId>no.priv.bang.osgi.service.adapters</groupId>
  96. <artifactId>adapters.jdbc</artifactId>
  97. <type>xml</type>
  98. <classifier>features</classifier>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.ops4j.pax.web</groupId>
  102. <artifactId>pax-web-api</artifactId>
  103. <scope>provided</scope>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.ops4j.pax.web</groupId>
  107. <artifactId>pax-web-extender-whiteboard</artifactId>
  108. <scope>provided</scope>
  109. </dependency>
  110. <dependency>
  111. <groupId>javax.servlet</groupId>
  112. <artifactId>javax.servlet-api</artifactId>
  113. <scope>provided</scope>
  114. </dependency>
  115. <dependency>
  116. <groupId>com.fasterxml.jackson.core</groupId>
  117. <artifactId>jackson-core</artifactId>
  118. <scope>compile</scope>
  119. </dependency>
  120. <dependency>
  121. <groupId>com.fasterxml.jackson.core</groupId>
  122. <artifactId>jackson-databind</artifactId>
  123. <scope>compile</scope>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.ops4j.pax.jdbc</groupId>
  127. <artifactId>pax-jdbc-derby</artifactId>
  128. <scope>test</scope>
  129. </dependency>
  130. <dependency>
  131. <groupId>org.postgresql</groupId>
  132. <artifactId>postgresql</artifactId>
  133. <scope>provided</scope>
  134. </dependency>
  135. <dependency>
  136. <groupId>no.priv.bang.karaf</groupId>
  137. <artifactId>liquibase-core-karaf</artifactId>
  138. <type>xml</type>
  139. <classifier>features</classifier>
  140. </dependency>
  141. <dependency>
  142. <groupId>org.liquibase</groupId>
  143. <artifactId>liquibase-core</artifactId>
  144. <scope>provided</scope>
  145. </dependency>
  146. </dependencies>
  147. <build>
  148. <plugins>
  149. <plugin>
  150. <groupId>org.apache.felix</groupId>
  151. <artifactId>maven-bundle-plugin</artifactId>
  152. <configuration>
  153. <instructions>
  154. <Export-Package>no.priv.bang.sonar.collector.webhook;uses:="com.fasterxml.jackson.databind,javax.servlet,javax.servlet.http,javax.sql,org.osgi.service.log";version="1.4.0"</Export-Package>
  155. <Import-Package>
  156. com.fasterxml.jackson.core,
  157. org.osgi.service.log;version="[1.4,2)",
  158. *
  159. </Import-Package>
  160. <Require-Capability>
  161. osgi.extender; filter:="(osgi.extender=osgi.serviceloader.processor)",
  162. osgi.serviceloader; filter:="(osgi.serviceloader=liquibase.serializer.ChangeLogSerializer)"; cardinality:=multiple,
  163. osgi.serviceloader; filter:="(osgi.serviceloader=liquibase.parser.NamespaceDetails)"; cardinality:=multiple,
  164. osgi.serviceloader; filter:="(osgi.serviceloader=liquibase.database.Database)"; cardinality:=multiple,
  165. osgi.serviceloader; filter:="(osgi.serviceloader=liquibase.change.Change)"; cardinality:=multiple,
  166. osgi.serviceloader; filter:="(osgi.serviceloader=liquibase.database.DatabaseConnection)"; cardinality:=multiple,
  167. osgi.serviceloader; filter:="(osgi.serviceloader=liquibase.precondition.Precondition)"; cardinality:=multiple,
  168. osgi.serviceloader; filter:="(osgi.serviceloader=liquibase.serializer.SnapshotSerializer)"; cardinality:=multiple,
  169. osgi.serviceloader; filter:="(osgi.serviceloader=liquibase.configuration.AutoloadedConfigurations)"; cardinality:=multiple,
  170. osgi.serviceloader; filter:="(osgi.serviceloader=liquibase.diff.DiffGenerator)"; cardinality:=multiple,
  171. osgi.serviceloader; filter:="(osgi.serviceloader=liquibase.lockservice.LockService)"; cardinality:=multiple,
  172. osgi.serviceloader; filter:="(osgi.serviceloader=liquibase.changelog.ChangeLogHistoryService)"; cardinality:=multiple,
  173. osgi.serviceloader; filter:="(osgi.serviceloader=liquibase.datatype.LiquibaseDataType)"; cardinality:=multiple,
  174. osgi.serviceloader; filter:="(osgi.serviceloader=liquibase.configuration.ConfigurationValueProvider)"; cardinality:=multiple,
  175. osgi.serviceloader; filter:="(osgi.serviceloader=liquibase.logging.LogService)"; cardinality:=multiple,
  176. osgi.serviceloader; filter:="(osgi.serviceloader=liquibase.snapshot.SnapshotGenerator)"; cardinality:=multiple,
  177. osgi.serviceloader; filter:="(osgi.serviceloader=liquibase.parser.ChangeLogParser)"; cardinality:=multiple,
  178. osgi.serviceloader; filter:="(osgi.serviceloader=liquibase.servicelocator.ServiceLocator)"; cardinality:=multiple,
  179. osgi.serviceloader; filter:="(osgi.serviceloader=liquibase.diff.compare.DatabaseObjectComparator)"; cardinality:=multiple,
  180. osgi.serviceloader; filter:="(osgi.serviceloader=liquibase.command.LiquibaseCommand)"; cardinality:=multiple,
  181. osgi.serviceloader; filter:="(osgi.serviceloader=liquibase.license.LicenseService)"; cardinality:=multiple,
  182. osgi.serviceloader; filter:="(osgi.serviceloader=liquibase.diff.output.changelog.ChangeGenerator)"; cardinality:=multiple,
  183. osgi.serviceloader; filter:="(osgi.serviceloader=liquibase.executor.Executor)"; cardinality:=multiple,
  184. osgi.serviceloader; filter:="(osgi.serviceloader=liquibase.structure.DatabaseObject)"; cardinality:=multiple,
  185. osgi.serviceloader; filter:="(osgi.serviceloader=liquibase.parser.SnapshotParser)"; cardinality:=multiple,
  186. osgi.serviceloader; filter:="(osgi.serviceloader=liquibase.hub.HubService)"; cardinality:=multiple,
  187. osgi.serviceloader; filter:="(osgi.serviceloader=liquibase.command.CommandStep)"; cardinality:=multiple,
  188. osgi.serviceloader; filter:="(osgi.serviceloader=liquibase.sqlgenerator.SqlGenerator)"; cardinality:=multiple
  189. </Require-Capability>
  190. <Include-Resource>
  191. /=target/classes/,
  192. /www.liquibase.org/=target/dependency/www.liquibase.org/
  193. </Include-Resource>
  194. </instructions>
  195. </configuration>
  196. </plugin>
  197. <plugin>
  198. <groupId>org.apache.karaf.tooling</groupId>
  199. <artifactId>karaf-maven-plugin</artifactId>
  200. <configuration>
  201. <includeTransitiveDependency>true</includeTransitiveDependency>
  202. </configuration>
  203. </plugin>
  204. <plugin>
  205. <groupId>org.apache.maven.plugins</groupId>
  206. <artifactId>maven-dependency-plugin</artifactId>
  207. <executions>
  208. <execution>
  209. <id>copy-liquibase-xsd</id>
  210. <phase>validate</phase>
  211. <goals>
  212. <goal>unpack</goal>
  213. </goals>
  214. <configuration>
  215. <artifactItems>
  216. <artifactItem>
  217. <groupId>org.liquibase</groupId>
  218. <artifactId>liquibase-core</artifactId>
  219. </artifactItem>
  220. </artifactItems>
  221. <includes>**/dbchangelog-3.5.xsd</includes>
  222. </configuration>
  223. </execution>
  224. </executions>
  225. </plugin>
  226. </plugins>
  227. <pluginManagement>
  228. <plugins>
  229. <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
  230. <plugin>
  231. <groupId>org.eclipse.m2e</groupId>
  232. <artifactId>lifecycle-mapping</artifactId>
  233. <version>1.0.0</version>
  234. <configuration>
  235. <lifecycleMappingMetadata>
  236. <pluginExecutions>
  237. <pluginExecution>
  238. <pluginExecutionFilter>
  239. <groupId>org.apache.karaf.tooling</groupId>
  240. <artifactId>karaf-maven-plugin</artifactId>
  241. <versionRange>[4.4.3,)</versionRange>
  242. <goals>
  243. <goal>features-generate-descriptor</goal>
  244. </goals>
  245. </pluginExecutionFilter>
  246. <action>
  247. <ignore />
  248. </action>
  249. </pluginExecution>
  250. <pluginExecution>
  251. <pluginExecutionFilter>
  252. <groupId>org.apache.maven.plugins</groupId>
  253. <artifactId>maven-dependency-plugin</artifactId>
  254. <versionRange>[2.8,)</versionRange>
  255. <goals>
  256. <goal>unpack</goal>
  257. </goals>
  258. </pluginExecutionFilter>
  259. <action>
  260. <ignore />
  261. </action>
  262. </pluginExecution>
  263. </pluginExecutions>
  264. </lifecycleMappingMetadata>
  265. </configuration>
  266. </plugin>
  267. </plugins>
  268. </pluginManagement>
  269. </build>
  270. </project>