pom.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Copyright 2019 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. <groupId>no.priv.bang.jdbc</groupId>
  16. <artifactId>jdbc</artifactId>
  17. <version>1.0.0</version>
  18. <packaging>pom</packaging>
  19. <name>JDBC utilities</name>
  20. <description>Common code for JDBC</description>
  21. <modules>
  22. <module>jdbc.datasourceproxy</module>
  23. </modules>
  24. <properties>
  25. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  26. <junit.jupiter.version>5.4.2</junit.jupiter.version>
  27. <maven.bundle.plugin.version>3.5.1</maven.bundle.plugin.version>
  28. <karaf.version>4.2.6</karaf.version>
  29. </properties>
  30. <dependencyManagement>
  31. <dependencies>
  32. <dependency>
  33. <groupId>org.junit</groupId>
  34. <artifactId>junit-bom</artifactId>
  35. <version>${junit.jupiter.version}</version>
  36. <type>pom</type>
  37. <scope>import</scope>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.assertj</groupId>
  41. <artifactId>assertj-core</artifactId>
  42. <version>3.9.0</version>
  43. <scope>test</scope>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.mockito</groupId>
  47. <artifactId>mockito-core</artifactId>
  48. <version>1.10.19</version>
  49. <scope>test</scope>
  50. </dependency>
  51. <dependency>
  52. <groupId>com.mockrunner</groupId>
  53. <artifactId>mockrunner-servlet</artifactId>
  54. <version>${mockrunner.version}</version>
  55. <scope>test</scope>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.osgi</groupId>
  59. <artifactId>org.osgi.core</artifactId>
  60. <version>${dependency.osgi.version}</version>
  61. <scope>provided</scope>
  62. </dependency>
  63. </dependencies>
  64. </dependencyManagement>
  65. <build>
  66. <pluginManagement>
  67. <plugins>
  68. <plugin>
  69. <groupId>org.apache.maven.plugins</groupId>
  70. <artifactId>maven-compiler-plugin</artifactId>
  71. <version>3.8.1</version>
  72. <configuration>
  73. <source>1.8</source>
  74. <target>1.8</target>
  75. </configuration>
  76. </plugin>
  77. <plugin>
  78. <groupId>org.apache.maven.plugins</groupId>
  79. <artifactId>maven-jar-plugin</artifactId>
  80. <version>3.2.0</version>
  81. </plugin>
  82. <plugin>
  83. <groupId>org.apache.maven.plugins</groupId>
  84. <artifactId>maven-source-plugin</artifactId>
  85. <version>2.4</version>
  86. </plugin>
  87. <plugin>
  88. <groupId>org.apache.maven.plugins</groupId>
  89. <artifactId>maven-javadoc-plugin</artifactId>
  90. <version>3.1.1</version>
  91. </plugin>
  92. <plugin>
  93. <groupId>org.codehaus.mojo</groupId>
  94. <artifactId>cobertura-maven-plugin</artifactId>
  95. <version>2.7</version>
  96. </plugin>
  97. <plugin>
  98. <groupId>org.jacoco</groupId>
  99. <artifactId>jacoco-maven-plugin</artifactId>
  100. <version>0.8.5</version>
  101. </plugin>
  102. <plugin>
  103. <groupId>org.apache.felix</groupId>
  104. <artifactId>maven-bundle-plugin</artifactId>
  105. <version>${maven.bundle.plugin.version}</version>
  106. <configuration>
  107. <supportedProjectTypes>
  108. <supportedProjectType>jar</supportedProjectType>
  109. <supportedProjectType>bundle</supportedProjectType>
  110. <supportedProjectType>war</supportedProjectType>
  111. </supportedProjectTypes>
  112. <instructions>
  113. <!-- Enable processing of OSGI DS component annotations -->
  114. <_dsannotations>*</_dsannotations>
  115. <!-- Inherit service injections from base class -->
  116. <_dsannotations-options>inherit</_dsannotations-options>
  117. <!-- Enable processing of OSGI metatype annotations -->
  118. <_metatypeannotations>*</_metatypeannotations>
  119. </instructions>
  120. </configuration>
  121. <executions>
  122. <execution>
  123. <id>bundle</id>
  124. <goals>
  125. <goal>bundle</goal>
  126. </goals>
  127. </execution>
  128. </executions>
  129. </plugin>
  130. <plugin>
  131. <groupId>org.apache.maven.plugins</groupId>
  132. <artifactId>maven-surefire-plugin</artifactId>
  133. <version>2.22.2</version>
  134. <configuration>
  135. <useSystemClassLoader>false</useSystemClassLoader>
  136. </configuration>
  137. </plugin>
  138. <plugin>
  139. <groupId>org.eluder.coveralls</groupId>
  140. <artifactId>coveralls-maven-plugin</artifactId>
  141. <version>4.3.0</version>
  142. </plugin>
  143. <plugin>
  144. <groupId>org.apache.karaf.tooling</groupId>
  145. <artifactId>karaf-maven-plugin</artifactId>
  146. <version>${karaf.version}</version>
  147. <extensions>true</extensions>
  148. <configuration>
  149. <startLevel>80</startLevel>
  150. <includeTransitiveDependency>false</includeTransitiveDependency>
  151. <aggregateFeatures>false</aggregateFeatures>
  152. <includeProjectArtifact>true</includeProjectArtifact>
  153. <primaryFeatureName>${karaf-feature-name}</primaryFeatureName>
  154. </configuration>
  155. <executions>
  156. <execution>
  157. <id>generate-features-file</id>
  158. <phase>package</phase>
  159. <goals>
  160. <goal>features-generate-descriptor</goal>
  161. </goals>
  162. </execution>
  163. </executions>
  164. </plugin>
  165. </plugins>
  166. </pluginManagement>
  167. <plugins>
  168. <plugin>
  169. <artifactId>maven-resources-plugin</artifactId>
  170. <version>3.1.0</version>
  171. <executions>
  172. <execution>
  173. <id>filter-resources</id>
  174. <phase>validate</phase>
  175. <goals>
  176. <goal>resources</goal>
  177. </goals>
  178. <configuration>
  179. <resources>
  180. <resource>
  181. <directory>src/main/filtered-resources</directory>
  182. <filtering>true</filtering>
  183. </resource>
  184. </resources>
  185. </configuration>
  186. </execution>
  187. </executions>
  188. </plugin>
  189. <plugin>
  190. <groupId>org.codehaus.mojo</groupId>
  191. <artifactId>build-helper-maven-plugin</artifactId>
  192. <version>3.0.0</version>
  193. <inherited>false</inherited>
  194. <executions>
  195. <execution>
  196. <id>attach-karaf-feature</id>
  197. <phase>package</phase>
  198. <goals>
  199. <goal>attach-artifact</goal>
  200. </goals>
  201. <configuration>
  202. <artifacts>
  203. <artifact>
  204. <file>target/classes/feature.xml</file>
  205. <type>xml</type>
  206. <classifier>features</classifier>
  207. </artifact>
  208. </artifacts>
  209. </configuration>
  210. </execution>
  211. </executions>
  212. </plugin>
  213. <plugin>
  214. <groupId>org.apache.maven.plugins</groupId>
  215. <artifactId>maven-source-plugin</artifactId>
  216. <executions>
  217. <execution>
  218. <id>attach-sources</id>
  219. <goals>
  220. <goal>jar</goal>
  221. </goals>
  222. </execution>
  223. </executions>
  224. </plugin>
  225. <plugin>
  226. <groupId>org.apache.maven.plugins</groupId>
  227. <artifactId>maven-javadoc-plugin</artifactId>
  228. <configuration>
  229. <source>8</source>
  230. <show>private</show>
  231. </configuration>
  232. <executions>
  233. <execution>
  234. <id>attach-javadocs</id>
  235. <goals>
  236. <goal>jar</goal>
  237. </goals>
  238. </execution>
  239. <execution>
  240. <id>aggregate-javadocs</id>
  241. <goals>
  242. <goal>aggregate-no-fork</goal>
  243. </goals>
  244. <phase>prepare-package</phase>
  245. <inherited>false</inherited>
  246. </execution>
  247. </executions>
  248. </plugin>
  249. <plugin>
  250. <groupId>org.apache.maven.plugins</groupId>
  251. <artifactId>maven-jar-plugin</artifactId>
  252. <executions>
  253. <execution>
  254. <id>attach-aggregate-javadoc</id>
  255. <goals>
  256. <goal>jar</goal>
  257. </goals>
  258. <phase>package</phase>
  259. <inherited>false</inherited>
  260. <configuration>
  261. <classesDirectory>${project.build.directory}/site/apidocs</classesDirectory>
  262. <classifier>javadoc</classifier>
  263. </configuration>
  264. </execution>
  265. </executions>
  266. </plugin>
  267. <plugin>
  268. <groupId>org.apache.maven.plugins</groupId>
  269. <artifactId>maven-release-plugin</artifactId>
  270. <version>2.5.3</version>
  271. <configuration>
  272. <releaseProfiles>release-sign-artifact</releaseProfiles>
  273. </configuration>
  274. </plugin>
  275. <plugin>
  276. <groupId>org.sonatype.plugins</groupId>
  277. <artifactId>nexus-staging-maven-plugin</artifactId>
  278. <version>1.6.8</version>
  279. <extensions>true</extensions>
  280. <configuration>
  281. <serverId>ossrh</serverId>
  282. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  283. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  284. </configuration>
  285. </plugin>
  286. </plugins>
  287. <extensions>
  288. <extension>
  289. <groupId>org.apache.maven.wagon</groupId>
  290. <artifactId>wagon-ftp</artifactId>
  291. <version>1.0-beta-6</version>
  292. </extension>
  293. </extensions>
  294. </build>
  295. <distributionManagement>
  296. <snapshotRepository>
  297. <id>ossrh</id>
  298. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  299. </snapshotRepository>
  300. <repository>
  301. <id>ossrh</id>
  302. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  303. </repository>
  304. </distributionManagement>
  305. <licenses>
  306. <license>
  307. <name>Apache License version 2</name>
  308. <url>http://www.apache.org/licenses/LICENSE-2.0</url>
  309. </license>
  310. </licenses>
  311. <developers>
  312. <developer>
  313. <name>Steinar Bang</name>
  314. <email>sb@dod.no</email>
  315. <url>https://steinar.bang.priv.no/</url>
  316. <organization>steinarb-github</organization>
  317. <organizationUrl>https://github.com/steinarb</organizationUrl>
  318. </developer>
  319. </developers>
  320. <scm>
  321. <url>https://github.com/steinarb/jdbc</url>
  322. <connection>scm:git:https://github.com/steinarb/jdbc.git</connection>
  323. <tag>jdbc-1.0.0</tag>
  324. </scm>
  325. <issueManagement>
  326. <url>https://github.com/steinarb/jdbc/issues</url>
  327. <system>Github issue tracker</system>
  328. </issueManagement>
  329. <ciManagement>
  330. <url>https://travis-ci.org/steinarb/jdbc</url>
  331. <system>travis-ci</system>
  332. </ciManagement>
  333. <url>http://steinarb.github.io/jdbc/</url>
  334. <profiles>
  335. <profile>
  336. <id>release-sign-artifact</id>
  337. <build>
  338. <plugins>
  339. <plugin>
  340. <groupId>org.apache.maven.plugins</groupId>
  341. <artifactId>maven-gpg-plugin</artifactId>
  342. <version>1.6</version>
  343. <executions>
  344. <execution>
  345. <id>sign-artifacts</id>
  346. <phase>verify</phase>
  347. <goals>
  348. <goal>sign</goal>
  349. </goals>
  350. <configuration>
  351. <gpgArguments>
  352. <arg>--pinentry-mode</arg>
  353. <arg>loopback</arg>
  354. </gpgArguments>
  355. </configuration>
  356. </execution>
  357. </executions>
  358. </plugin>
  359. </plugins>
  360. </build>
  361. </profile>
  362. </profiles>
  363. </project>