pom.xml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xml:space="preserve">
  3. <!-- Copyright 2016-2019 Steinar Bang -->
  4. <!-- -->
  5. <!-- Licensed under the Apache License, Version 2.0 (the "License"); -->
  6. <!-- you may not use this file except in compliance with the License. -->
  7. <!-- You may obtain a copy of the License at -->
  8. <!-- http://www.apache.org/licenses/LICENSE-2.0 -->
  9. <!-- Unless required by applicable law or agreed to in writing, -->
  10. <!-- software distributed under the License is distributed on an "AS IS" BASIS, -->
  11. <!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -->
  12. <!-- See the License for the specific language governing permissions and limitations -->
  13. <!-- under the License. -->
  14. <modelVersion>4.0.0</modelVersion>
  15. <groupId>no.priv.bang.ukelonn</groupId>
  16. <artifactId>parent</artifactId>
  17. <version>1.0.0-SNAPSHOT</version>
  18. <packaging>pom</packaging>
  19. <name>ukelonn parent project</name>
  20. <modules>
  21. <module>ukelonn.services</module>
  22. <module>ukelonn.backend</module>
  23. <module>ukelonn.web.security</module>
  24. <module>ukelonn.web.services</module>
  25. <module>ukelonn.web.frontend</module>
  26. <module>ukelonn.testutils</module>
  27. <module>ukelonn.db.liquibase</module>
  28. <module>ukelonn.db.derbytest</module>
  29. <module>ukelonn.db.postgresql</module>
  30. <module>karaf</module>
  31. </modules>
  32. <properties>
  33. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  34. <maven.bundle.plugin.version>3.5.1</maven.bundle.plugin.version>
  35. <karaf.version>4.2.5</karaf.version>
  36. <mockrunner.version>2.0.1</mockrunner.version>
  37. <liquibase.version>3.5.3</liquibase.version>
  38. <snakeyaml.version>1.17</snakeyaml.version>
  39. <derby.version>10.11.1.1</derby.version>
  40. <postgresql.version>42.2.8</postgresql.version>
  41. <dependency.osgi.version>6.0.0</dependency.osgi.version>
  42. <osgi-service.version>1.4.0</osgi-service.version>
  43. <authservice.version>1.7.0</authservice.version>
  44. <osgi.service.version>1.3.0</osgi.service.version>
  45. <dependency.osgi.log.version>1.3.0</dependency.osgi.log.version>
  46. <dependency.osgi.jdbc.version>1.0.0</dependency.osgi.jdbc.version>
  47. <dependency.pax.web.version>6.0.3</dependency.pax.web.version>
  48. <dependency.pax.exam.version>4.10.0</dependency.pax.exam.version>
  49. <dependency.pax.jdbc.version>1.0.1</dependency.pax.jdbc.version>
  50. <dependency.pax.url.version>2.5.4</dependency.pax.url.version>
  51. <dependency.shiro.version>1.4.1</dependency.shiro.version>
  52. <jackson.version>2.9.10</jackson.version>
  53. <jackson.databind.version>2.9.10.1</jackson.databind.version>
  54. <jersey-feature.version>1.4.0</jersey-feature.version>
  55. <jersey.version>2.28</jersey.version>
  56. <open-iconic.version>1.1.1</open-iconic.version>
  57. <sonar.cpd.exclusions>
  58. **/PGUkelonnDatabaseProvider.java,
  59. **/UkelonnDatabaseProvider.java
  60. </sonar.cpd.exclusions>
  61. </properties>
  62. <dependencyManagement>
  63. <dependencies>
  64. <dependency>
  65. <groupId>junit</groupId>
  66. <artifactId>junit</artifactId>
  67. <version>4.12</version>
  68. <scope>test</scope>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.assertj</groupId>
  72. <artifactId>assertj-core</artifactId>
  73. <version>3.9.0</version>
  74. <scope>test</scope>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.mockito</groupId>
  78. <artifactId>mockito-core</artifactId>
  79. <version>1.10.19</version>
  80. <scope>test</scope>
  81. </dependency>
  82. <dependency>
  83. <groupId>com.mockrunner</groupId>
  84. <artifactId>mockrunner-servlet</artifactId>
  85. <version>${mockrunner.version}</version>
  86. <scope>test</scope>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.osgi</groupId>
  90. <artifactId>org.osgi.core</artifactId>
  91. <version>${dependency.osgi.version}</version>
  92. <scope>provided</scope>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.osgi</groupId>
  96. <artifactId>org.osgi.service.component.annotations</artifactId>
  97. <version>${osgi.service.version}</version>
  98. <scope>provided</scope>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.osgi</groupId>
  102. <artifactId>org.osgi.service.log</artifactId>
  103. <version>${dependency.osgi.log.version}</version>
  104. <scope>provided</scope>
  105. </dependency>
  106. <dependency>
  107. <groupId>no.priv.bang.osgiservice</groupId>
  108. <artifactId>osgiservice.users</artifactId>
  109. <version>${osgi-service.version}</version>
  110. <scope>provided</scope>
  111. </dependency>
  112. <dependency>
  113. <groupId>no.priv.bang.authservice</groupId>
  114. <artifactId>authservice.definitions</artifactId>
  115. <version>${authservice.version}</version>
  116. <scope>provided</scope>
  117. </dependency>
  118. <dependency>
  119. <groupId>no.priv.bang.authservice</groupId>
  120. <artifactId>authservice.db.liquibase</artifactId>
  121. <version>${authservice.version}</version>
  122. <scope>provided</scope>
  123. </dependency>
  124. <dependency>
  125. <groupId>no.priv.bang.authservice</groupId>
  126. <artifactId>authservice.users</artifactId>
  127. <version>${authservice.version}</version>
  128. <scope>provided</scope>
  129. </dependency>
  130. <dependency>
  131. <groupId>no.priv.bang.authservice</groupId>
  132. <artifactId>authservice.web.security.dbrealm</artifactId>
  133. <version>${authservice.version}</version>
  134. <scope>provided</scope>
  135. </dependency>
  136. <dependency>
  137. <groupId>no.priv.bang.authservice</groupId>
  138. <artifactId>authservice.web.security.memorysession</artifactId>
  139. <version>${authservice.version}</version>
  140. <scope>provided</scope>
  141. </dependency>
  142. <dependency>
  143. <groupId>no.priv.bang.osgi.service.adapters</groupId>
  144. <artifactId>service-mocks</artifactId>
  145. <version>1.0.1</version>
  146. <scope>test</scope>
  147. </dependency>
  148. <dependency>
  149. <groupId>org.osgi</groupId>
  150. <artifactId>org.osgi.service.jdbc</artifactId>
  151. <version>${dependency.osgi.jdbc.version}</version>
  152. <scope>provided</scope>
  153. </dependency>
  154. <dependency>
  155. <groupId>no.priv.bang.osgiservice</groupId>
  156. <artifactId>osgiservice.database</artifactId>
  157. <version>${osgi-service.version}</version>
  158. <scope>provided</scope>
  159. </dependency>
  160. <dependency>
  161. <groupId>org.ops4j.pax.web</groupId>
  162. <artifactId>pax-web-api</artifactId>
  163. <version>${dependency.pax.web.version}</version>
  164. <scope>provided</scope>
  165. </dependency>
  166. <dependency>
  167. <groupId>org.ops4j.pax.web</groupId>
  168. <artifactId>pax-web-runtime</artifactId>
  169. <version>${dependency.pax.web.version}</version>
  170. <scope>provided</scope>
  171. </dependency>
  172. <dependency>
  173. <groupId>org.ops4j.pax.web</groupId>
  174. <artifactId>pax-web-extender-whiteboard</artifactId>
  175. <version>${dependency.pax.web.version}</version>
  176. <scope>provided</scope>
  177. </dependency>
  178. <dependency>
  179. <groupId>javax.servlet</groupId>
  180. <artifactId>javax.servlet-api</artifactId>
  181. <version>3.1.0</version>
  182. <scope>provided</scope>
  183. </dependency>
  184. <dependency>
  185. <groupId>org.apache.karaf.shell</groupId>
  186. <artifactId>org.apache.karaf.shell.console</artifactId>
  187. <version>${karaf.version}</version>
  188. <scope>provided</scope>
  189. </dependency>
  190. <dependency>
  191. <groupId>org.ops4j.pax.exam</groupId>
  192. <artifactId>pax-exam-container-karaf</artifactId>
  193. <version>${dependency.pax.exam.version}</version>
  194. <scope>test</scope>
  195. </dependency>
  196. <dependency>
  197. <groupId>org.apache.karaf</groupId>
  198. <artifactId>apache-karaf-minimal</artifactId>
  199. <version>${karaf.version}</version>
  200. <type>zip</type>
  201. <scope>test</scope>
  202. <exclusions>
  203. <exclusion>
  204. <groupId>*</groupId>
  205. <artifactId>*</artifactId>
  206. </exclusion>
  207. </exclusions>
  208. </dependency>
  209. <dependency>
  210. <groupId>org.apache.karaf.features</groupId>
  211. <artifactId>standard</artifactId>
  212. <version>${karaf.version}</version>
  213. <type>xml</type>
  214. <classifier>features</classifier>
  215. <scope>test</scope>
  216. </dependency>
  217. <dependency>
  218. <groupId>org.ops4j.pax.exam</groupId>
  219. <artifactId>pax-exam-junit4</artifactId>
  220. <version>${dependency.pax.exam.version}</version>
  221. <scope>test</scope>
  222. </dependency>
  223. <dependency>
  224. <groupId>org.ops4j.pax.exam</groupId>
  225. <artifactId>pax-exam-link-mvn</artifactId>
  226. <version>${dependency.pax.exam.version}</version>
  227. <scope>test</scope>
  228. </dependency>
  229. <dependency>
  230. <groupId>org.ops4j.pax.url</groupId>
  231. <artifactId>pax-url-reference</artifactId>
  232. <version>${dependency.pax.url.version}</version>
  233. </dependency>
  234. <dependency>
  235. <groupId>org.ops4j.pax.jdbc</groupId>
  236. <artifactId>pax-jdbc</artifactId>
  237. <version>${dependency.pax.jdbc.version}</version>
  238. <scope>provided</scope>
  239. </dependency>
  240. <dependency>
  241. <groupId>org.ops4j.pax.jdbc</groupId>
  242. <artifactId>pax-jdbc-derby</artifactId>
  243. <version>${dependency.pax.jdbc.version}</version>
  244. <scope>provided</scope>
  245. </dependency>
  246. <dependency>
  247. <groupId>org.apache.servicemix.bundles</groupId>
  248. <artifactId>org.apache.servicemix.bundles.javax-inject</artifactId>
  249. <version>1_3</version>
  250. <scope>provided</scope>
  251. </dependency>
  252. <dependency>
  253. <groupId>org.apache.derby</groupId>
  254. <artifactId>derby</artifactId>
  255. <version>${derby.version}</version>
  256. <scope>provided</scope>
  257. </dependency>
  258. <dependency>
  259. <groupId>org.apache.shiro</groupId>
  260. <artifactId>shiro-core</artifactId>
  261. <version>${dependency.shiro.version}</version>
  262. <scope>provided</scope>
  263. </dependency>
  264. <dependency>
  265. <groupId>org.apache.shiro</groupId>
  266. <artifactId>shiro-web</artifactId>
  267. <version>${dependency.shiro.version}</version>
  268. <scope>provided</scope>
  269. </dependency>
  270. <dependency>
  271. <groupId>com.fasterxml.jackson.core</groupId>
  272. <artifactId>jackson-annotations</artifactId>
  273. <version>${jackson.version}</version>
  274. <scope>provided</scope>
  275. </dependency>
  276. <dependency>
  277. <groupId>com.fasterxml.jackson.core</groupId>
  278. <artifactId>jackson-core</artifactId>
  279. <version>${jackson.version}</version>
  280. <scope>provided</scope>
  281. </dependency>
  282. <dependency>
  283. <groupId>com.fasterxml.jackson.core</groupId>
  284. <artifactId>jackson-databind</artifactId>
  285. <version>${jackson.databind.version}</version>
  286. <scope>provided</scope>
  287. </dependency>
  288. <dependency>
  289. <groupId>org.glassfish.jersey.containers</groupId>
  290. <artifactId>jersey-container-servlet</artifactId>
  291. <version>${jersey.version}</version>
  292. <scope>provided</scope>
  293. </dependency>
  294. <dependency>
  295. <groupId>org.glassfish.jersey.inject</groupId>
  296. <artifactId>jersey-hk2</artifactId>
  297. <version>${jersey.version}</version>
  298. <scope>provided</scope>
  299. </dependency>
  300. <dependency>
  301. <groupId>org.glassfish.jersey.media</groupId>
  302. <artifactId>jersey-media-json-jackson</artifactId>
  303. <version>${jersey.version}</version>
  304. <scope>provided</scope>
  305. </dependency>
  306. <dependency>
  307. <groupId>org.slf4j</groupId>
  308. <artifactId>slf4j-simple</artifactId>
  309. <version>1.7.25</version>
  310. <scope>test</scope>
  311. </dependency>
  312. <dependency>
  313. <groupId>org.liquibase</groupId>
  314. <artifactId>liquibase-core</artifactId>
  315. <version>${liquibase.version}</version>
  316. <scope>provided</scope>
  317. </dependency>
  318. <dependency>
  319. <groupId>org.postgresql</groupId>
  320. <artifactId>postgresql</artifactId>
  321. <version>${postgresql.version}</version>
  322. <scope>provided</scope>
  323. </dependency>
  324. <dependency>
  325. <groupId>org.webjars.bower</groupId>
  326. <artifactId>open-iconic</artifactId>
  327. <version>${open-iconic.version}</version>
  328. </dependency>
  329. </dependencies>
  330. </dependencyManagement>
  331. <build>
  332. <pluginManagement>
  333. <plugins>
  334. <plugin>
  335. <groupId>org.apache.maven.plugins</groupId>
  336. <artifactId>maven-compiler-plugin</artifactId>
  337. <version>3.5.1</version>
  338. <configuration>
  339. <source>1.8</source>
  340. <target>1.8</target>
  341. </configuration>
  342. </plugin>
  343. <plugin>
  344. <groupId>org.apache.maven.plugins</groupId>
  345. <artifactId>maven-source-plugin</artifactId>
  346. <version>2.4</version>
  347. </plugin>
  348. <plugin>
  349. <groupId>org.apache.maven.plugins</groupId>
  350. <artifactId>maven-javadoc-plugin</artifactId>
  351. <version>2.10.2</version>
  352. </plugin>
  353. <plugin>
  354. <groupId>org.codehaus.mojo</groupId>
  355. <artifactId>cobertura-maven-plugin</artifactId>
  356. <version>2.7</version>
  357. </plugin>
  358. <plugin>
  359. <groupId>org.apache.felix</groupId>
  360. <artifactId>maven-bundle-plugin</artifactId>
  361. <version>${maven.bundle.plugin.version}</version>
  362. <configuration>
  363. <supportedProjectTypes>
  364. <supportedProjectType>jar</supportedProjectType>
  365. <supportedProjectType>bundle</supportedProjectType>
  366. <supportedProjectType>war</supportedProjectType>
  367. </supportedProjectTypes>
  368. <instructions>
  369. <!-- Enable processing of OSGI DS component annotations -->
  370. <_dsannotations>*</_dsannotations>
  371. <!-- Inherit service injections from base class -->
  372. <_dsannotations-options>inherit</_dsannotations-options>
  373. <!-- Enable processing of OSGI metatype annotations -->
  374. <_metatypeannotations>*</_metatypeannotations>
  375. </instructions>
  376. </configuration>
  377. <executions>
  378. <execution>
  379. <id>bundle</id>
  380. <goals>
  381. <goal>bundle</goal>
  382. </goals>
  383. </execution>
  384. </executions>
  385. </plugin>
  386. <plugin>
  387. <groupId>org.apache.maven.plugins</groupId>
  388. <artifactId>maven-clean-plugin</artifactId>
  389. <version>3.1.0</version>
  390. <configuration>
  391. <filesets>
  392. <fileset>
  393. <directory>.</directory>
  394. <includes>
  395. <include>**/*.log</include>
  396. </includes>
  397. <followSymlinks>false</followSymlinks>
  398. </fileset>
  399. </filesets>
  400. </configuration>
  401. </plugin>
  402. <plugin>
  403. <groupId>org.apache.maven.plugins</groupId>
  404. <artifactId>maven-surefire-plugin</artifactId>
  405. <version>2.22.2</version>
  406. <configuration>
  407. <useSystemClassLoader>false</useSystemClassLoader>
  408. </configuration>
  409. </plugin>
  410. <plugin>
  411. <groupId>org.eluder.coveralls</groupId>
  412. <artifactId>coveralls-maven-plugin</artifactId>
  413. <version>4.3.0</version>
  414. </plugin>
  415. <plugin>
  416. <groupId>org.apache.karaf.tooling</groupId>
  417. <artifactId>karaf-maven-plugin</artifactId>
  418. <version>${karaf.version}</version>
  419. <extensions>true</extensions>
  420. <configuration>
  421. <startLevel>80</startLevel>
  422. <includeTransitiveDependency>false</includeTransitiveDependency>
  423. <aggregateFeatures>false</aggregateFeatures>
  424. <includeProjectArtifact>true</includeProjectArtifact>
  425. <primaryFeatureName>${karaf-feature-name}</primaryFeatureName>
  426. </configuration>
  427. <executions>
  428. <execution>
  429. <id>generate-features-file</id>
  430. <phase>package</phase>
  431. <goals>
  432. <goal>features-generate-descriptor</goal>
  433. </goals>
  434. </execution>
  435. </executions>
  436. </plugin>
  437. </plugins>
  438. </pluginManagement>
  439. <plugins>
  440. <plugin>
  441. <groupId>org.apache.maven.plugins</groupId>
  442. <artifactId>maven-source-plugin</artifactId>
  443. <executions>
  444. <execution>
  445. <id>attach-sources</id>
  446. <goals>
  447. <goal>jar</goal>
  448. </goals>
  449. </execution>
  450. </executions>
  451. </plugin>
  452. <plugin>
  453. <groupId>org.apache.maven.plugins</groupId>
  454. <artifactId>maven-javadoc-plugin</artifactId>
  455. <configuration>
  456. <show>private</show>
  457. <source>8</source>
  458. </configuration>
  459. <executions>
  460. <execution>
  461. <id>attach-javadocs</id>
  462. <goals>
  463. <goal>jar</goal>
  464. </goals>
  465. </execution>
  466. </executions>
  467. </plugin>
  468. <plugin>
  469. <groupId>org.codehaus.mojo</groupId>
  470. <artifactId>cobertura-maven-plugin</artifactId>
  471. <configuration>
  472. <outputDirectory>${basedir}/target</outputDirectory>
  473. <formats>
  474. <format>html</format>
  475. <format>xml</format>
  476. </formats>
  477. <instrumentation>
  478. <excludes>
  479. <exclude>no/priv/bang/ukelonn/mocks/**/*.class</exclude>
  480. <exclude>no/priv/bang/ukelonn/testutils/**/*.class</exclude>
  481. </excludes>
  482. </instrumentation>
  483. <aggregate>true</aggregate>
  484. </configuration>
  485. </plugin>
  486. <plugin>
  487. <groupId>org.eluder.coveralls</groupId>
  488. <artifactId>coveralls-maven-plugin</artifactId>
  489. <configuration>
  490. <coberturaReports>
  491. <coberturaReport>${basedir}/target/coverage.xml</coberturaReport>
  492. </coberturaReports>
  493. </configuration>
  494. </plugin>
  495. <plugin>
  496. <groupId>org.apache.maven.plugins</groupId>
  497. <artifactId>maven-enforcer-plugin</artifactId>
  498. <version>3.0.0-M2</version>
  499. <executions>
  500. <execution>
  501. <id>enforce-no-duplicate-versions</id>
  502. <goals>
  503. <goal>enforce</goal>
  504. </goals>
  505. <configuration>
  506. <rules>
  507. <banDuplicatePomDependencyVersions/>
  508. </rules>
  509. </configuration>
  510. </execution>
  511. </executions>
  512. </plugin>
  513. </plugins>
  514. <extensions>
  515. <extension>
  516. <groupId>org.apache.maven.wagon</groupId>
  517. <artifactId>wagon-ssh</artifactId>
  518. <version>3.2.0</version>
  519. </extension>
  520. </extensions>
  521. </build>
  522. <distributionManagement>
  523. <repository>
  524. <id>ssh-maven-travis</id>
  525. <url>sftp://maven.bang.priv.no/repository</url>
  526. </repository>
  527. <snapshotRepository>
  528. <id>ssh-maven-travis</id>
  529. <url>sftp://maven.bang.priv.no/repository</url>
  530. </snapshotRepository>
  531. </distributionManagement>
  532. </project>