pom.xml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Copyright 2016-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: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">
  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. <properties>
  21. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  22. <maven.bundle.plugin.version>3.5.1</maven.bundle.plugin.version>
  23. <karaf.version>4.1.5</karaf.version>
  24. <liquibase.version>3.5.3</liquibase.version>
  25. <liquibase-slf4j.version>2.0.0</liquibase-slf4j.version>
  26. <snakeyaml.version>1.17</snakeyaml.version>
  27. <derby.version>10.11.1.1</derby.version>
  28. <postgresql.version>9.4.1211.jre7</postgresql.version>
  29. <dependency.osgi.version>6.0.0</dependency.osgi.version>
  30. <osgi.service.version>1.3.0</osgi.service.version>
  31. <dependency.osgi.log.version>1.3.0</dependency.osgi.log.version>
  32. <dependency.osgi.jdbc.version>1.0.0</dependency.osgi.jdbc.version>
  33. <dependency.pax.web.version>6.0.3</dependency.pax.web.version>
  34. <dependency.pax.exam.version>4.10.0</dependency.pax.exam.version>
  35. <dependency.pax.jdbc.version>1.0.1</dependency.pax.jdbc.version>
  36. <dependency.shiro.version>1.3.1</dependency.shiro.version>
  37. <jackson.version>2.8.7</jackson.version>
  38. <jersey.version>2.27</jersey.version>
  39. <rest-maven-plugin-version>0.1.4</rest-maven-plugin-version>
  40. <ukelonn-server-url>http://localhost:8181</ukelonn-server-url>
  41. <ukelonn-server-basic-auth-token>a2FyYWY6a2FyYWY=</ukelonn-server-basic-auth-token>
  42. <sonar.cpd.exclusions>
  43. **/PGUkelonnDatabaseProvider.java,
  44. **/UkelonnDatabaseProvider.java
  45. </sonar.cpd.exclusions>
  46. </properties>
  47. <dependencyManagement>
  48. <dependencies>
  49. <dependency>
  50. <groupId>junit</groupId>
  51. <artifactId>junit</artifactId>
  52. <version>4.12</version>
  53. <scope>test</scope>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.assertj</groupId>
  57. <artifactId>assertj-core</artifactId>
  58. <version>3.9.0</version>
  59. <scope>test</scope>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.mockito</groupId>
  63. <artifactId>mockito-core</artifactId>
  64. <version>1.10.19</version>
  65. <scope>test</scope>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.osgi</groupId>
  69. <artifactId>org.osgi.core</artifactId>
  70. <version>${dependency.osgi.version}</version>
  71. <scope>provided</scope>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.osgi</groupId>
  75. <artifactId>org.osgi.service.component.annotations</artifactId>
  76. <version>${osgi.service.version}</version>
  77. <scope>provided</scope>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.osgi</groupId>
  81. <artifactId>org.osgi.service.log</artifactId>
  82. <version>${dependency.osgi.log.version}</version>
  83. <scope>provided</scope>
  84. </dependency>
  85. <dependency>
  86. <groupId>no.priv.bang.osgi.service.adapters</groupId>
  87. <artifactId>service-mocks</artifactId>
  88. <version>1.0.1</version>
  89. <scope>test</scope>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.osgi</groupId>
  93. <artifactId>org.osgi.service.jdbc</artifactId>
  94. <version>${dependency.osgi.jdbc.version}</version>
  95. <scope>provided</scope>
  96. </dependency>
  97. <dependency>
  98. <groupId>org.ops4j.pax.web</groupId>
  99. <artifactId>pax-web-api</artifactId>
  100. <version>${dependency.pax.web.version}</version>
  101. <scope>provided</scope>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.ops4j.pax.web</groupId>
  105. <artifactId>pax-web-runtime</artifactId>
  106. <version>${dependency.pax.web.version}</version>
  107. <scope>provided</scope>
  108. </dependency>
  109. <dependency>
  110. <groupId>org.ops4j.pax.web</groupId>
  111. <artifactId>pax-web-extender-whiteboard</artifactId>
  112. <version>${dependency.pax.web.version}</version>
  113. <scope>provided</scope>
  114. </dependency>
  115. <dependency>
  116. <groupId>javax.servlet</groupId>
  117. <artifactId>javax.servlet-api</artifactId>
  118. <version>3.1.0</version>
  119. <scope>provided</scope>
  120. </dependency>
  121. <dependency>
  122. <groupId>org.apache.karaf.shell</groupId>
  123. <artifactId>org.apache.karaf.shell.console</artifactId>
  124. <version>${karaf.version}</version>
  125. <scope>provided</scope>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.ops4j.pax.exam</groupId>
  129. <artifactId>pax-exam-container-karaf</artifactId>
  130. <version>${dependency.pax.exam.version}</version>
  131. <scope>test</scope>
  132. </dependency>
  133. <dependency>
  134. <groupId>org.apache.karaf</groupId>
  135. <artifactId>apache-karaf-minimal</artifactId>
  136. <version>${karaf.version}</version>
  137. <type>zip</type>
  138. <scope>test</scope>
  139. <exclusions>
  140. <exclusion>
  141. <groupId>*</groupId>
  142. <artifactId>*</artifactId>
  143. </exclusion>
  144. </exclusions>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.apache.karaf.features</groupId>
  148. <artifactId>standard</artifactId>
  149. <version>${karaf.version}</version>
  150. <type>xml</type>
  151. <classifier>features</classifier>
  152. <scope>test</scope>
  153. </dependency>
  154. <dependency>
  155. <groupId>org.ops4j.pax.exam</groupId>
  156. <artifactId>pax-exam-junit4</artifactId>
  157. <version>${dependency.pax.exam.version}</version>
  158. <scope>test</scope>
  159. </dependency>
  160. <dependency>
  161. <groupId>org.ops4j.pax.exam</groupId>
  162. <artifactId>pax-exam-link-mvn</artifactId>
  163. <version>${dependency.pax.exam.version}</version>
  164. <scope>test</scope>
  165. </dependency>
  166. <dependency>
  167. <groupId>org.ops4j.pax.url</groupId>
  168. <artifactId>pax-url-reference</artifactId>
  169. <version>${dependency.pax.url.version}</version>
  170. </dependency>
  171. <dependency>
  172. <groupId>org.ops4j.pax.jdbc</groupId>
  173. <artifactId>pax-jdbc</artifactId>
  174. <version>${dependency.pax.jdbc.version}</version>
  175. <scope>provided</scope>
  176. </dependency>
  177. <dependency>
  178. <groupId>org.ops4j.pax.jdbc</groupId>
  179. <artifactId>pax-jdbc-derby</artifactId>
  180. <version>${dependency.pax.jdbc.version}</version>
  181. <scope>provided</scope>
  182. </dependency>
  183. <dependency>
  184. <groupId>org.apache.derby</groupId>
  185. <artifactId>derby</artifactId>
  186. <version>${derby.version}</version>
  187. <scope>provided</scope>
  188. </dependency>
  189. <dependency>
  190. <groupId>org.apache.shiro</groupId>
  191. <artifactId>shiro-core</artifactId>
  192. <version>${dependency.shiro.version}</version>
  193. <scope>provided</scope>
  194. </dependency>
  195. <dependency>
  196. <groupId>org.apache.shiro</groupId>
  197. <artifactId>shiro-web</artifactId>
  198. <version>${dependency.shiro.version}</version>
  199. <scope>provided</scope>
  200. </dependency>
  201. <dependency>
  202. <groupId>com.fasterxml.jackson.core</groupId>
  203. <artifactId>jackson-annotations</artifactId>
  204. <version>${jackson.version}</version>
  205. <scope>provided</scope>
  206. </dependency>
  207. <dependency>
  208. <groupId>com.fasterxml.jackson.core</groupId>
  209. <artifactId>jackson-core</artifactId>
  210. <version>${jackson.version}</version>
  211. <scope>provided</scope>
  212. </dependency>
  213. <dependency>
  214. <groupId>com.fasterxml.jackson.core</groupId>
  215. <artifactId>jackson-databind</artifactId>
  216. <version>${jackson.version}</version>
  217. <scope>provided</scope>
  218. </dependency>
  219. <dependency>
  220. <groupId>org.glassfish.jersey.containers</groupId>
  221. <artifactId>jersey-container-servlet</artifactId>
  222. <version>${jersey.version}</version>
  223. </dependency>
  224. <dependency>
  225. <groupId>org.glassfish.jersey.inject</groupId>
  226. <artifactId>jersey-hk2</artifactId>
  227. <version>${jersey.version}</version>
  228. </dependency>
  229. <dependency>
  230. <groupId>org.glassfish.jersey.media</groupId>
  231. <artifactId>jersey-media-json-jackson</artifactId>
  232. <version>${jersey.version}</version>
  233. </dependency>
  234. <dependency>
  235. <groupId>org.slf4j</groupId>
  236. <artifactId>slf4j-simple</artifactId>
  237. <version>1.7.25</version>
  238. <scope>test</scope>
  239. </dependency>
  240. <dependency>
  241. <groupId>com.mattbertolini</groupId>
  242. <artifactId>liquibase-slf4j</artifactId>
  243. <version>${liquibase-slf4j.version}</version>
  244. <scope>provided</scope>
  245. </dependency>
  246. <dependency>
  247. <groupId>org.liquibase</groupId>
  248. <artifactId>liquibase-core</artifactId>
  249. <version>${liquibase.version}</version>
  250. <scope>provided</scope>
  251. </dependency>
  252. <dependency>
  253. <groupId>org.postgresql</groupId>
  254. <artifactId>postgresql</artifactId>
  255. <version>${postgresql.version}</version>
  256. <scope>provided</scope>
  257. </dependency>
  258. </dependencies>
  259. </dependencyManagement>
  260. <build>
  261. <pluginManagement>
  262. <plugins>
  263. <plugin>
  264. <groupId>org.apache.maven.plugins</groupId>
  265. <artifactId>maven-compiler-plugin</artifactId>
  266. <version>3.5.1</version>
  267. <configuration>
  268. <source>1.8</source>
  269. <target>1.8</target>
  270. </configuration>
  271. </plugin>
  272. <plugin>
  273. <groupId>org.apache.maven.plugins</groupId>
  274. <artifactId>maven-source-plugin</artifactId>
  275. <version>2.4</version>
  276. </plugin>
  277. <plugin>
  278. <groupId>org.apache.maven.plugins</groupId>
  279. <artifactId>maven-javadoc-plugin</artifactId>
  280. <version>2.10.2</version>
  281. </plugin>
  282. <plugin>
  283. <groupId>org.codehaus.mojo</groupId>
  284. <artifactId>cobertura-maven-plugin</artifactId>
  285. <version>2.7</version>
  286. </plugin>
  287. <plugin>
  288. <groupId>org.apache.felix</groupId>
  289. <artifactId>maven-bundle-plugin</artifactId>
  290. <version>${maven.bundle.plugin.version}</version>
  291. <configuration>
  292. <instructions>
  293. <!-- Enable processing of OSGI DS component annotations -->
  294. <_dsannotations>*</_dsannotations>
  295. <!-- Inherit service injections from base class -->
  296. <_dsannotations-options>inherit</_dsannotations-options>
  297. <!-- Enable processing of OSGI metatype annotations -->
  298. <_metatypeannotations>*</_metatypeannotations>
  299. </instructions>
  300. </configuration>
  301. </plugin>
  302. <plugin>
  303. <groupId>org.apache.maven.plugins</groupId>
  304. <artifactId>maven-clean-plugin</artifactId>
  305. <version>3.1.0</version>
  306. <configuration>
  307. <filesets>
  308. <fileset>
  309. <directory>.</directory>
  310. <includes>
  311. <include>**/*.log</include>
  312. </includes>
  313. <followSymlinks>false</followSymlinks>
  314. </fileset>
  315. </filesets>
  316. </configuration>
  317. </plugin>
  318. <plugin>
  319. <groupId>org.apache.maven.plugins</groupId>
  320. <artifactId>maven-surefire-plugin</artifactId>
  321. <version>2.20</version>
  322. </plugin>
  323. <plugin>
  324. <groupId>org.eluder.coveralls</groupId>
  325. <artifactId>coveralls-maven-plugin</artifactId>
  326. <version>4.3.0</version>
  327. </plugin>
  328. <plugin>
  329. <groupId>org.apache.karaf.tooling</groupId>
  330. <artifactId>karaf-maven-plugin</artifactId>
  331. <version>${karaf.version}</version>
  332. <extensions>true</extensions>
  333. <configuration>
  334. <startLevel>80</startLevel>
  335. <includeTransitiveDependency>false</includeTransitiveDependency>
  336. <aggregateFeatures>false</aggregateFeatures>
  337. <includeProjectArtifact>true</includeProjectArtifact>
  338. </configuration>
  339. <executions>
  340. <execution>
  341. <id>generate-features-file</id>
  342. <phase>package</phase>
  343. <goals>
  344. <goal>features-generate-descriptor</goal>
  345. </goals>
  346. </execution>
  347. </executions>
  348. </plugin>
  349. <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
  350. <plugin>
  351. <groupId>org.eclipse.m2e</groupId>
  352. <artifactId>lifecycle-mapping</artifactId>
  353. <version>1.0.0</version>
  354. <configuration>
  355. <lifecycleMappingMetadata>
  356. <pluginExecutions>
  357. <pluginExecution>
  358. <pluginExecutionFilter>
  359. <groupId>ru.yaal.maven</groupId>
  360. <artifactId>write-text-files-maven-plugin</artifactId>
  361. <versionRange>[1.1,)</versionRange>
  362. <goals>
  363. <goal>
  364. write-text-files
  365. </goal>
  366. </goals>
  367. </pluginExecutionFilter>
  368. <action>
  369. <ignore></ignore>
  370. </action>
  371. </pluginExecution>
  372. </pluginExecutions>
  373. </lifecycleMappingMetadata>
  374. </configuration>
  375. </plugin>
  376. </plugins>
  377. </pluginManagement>
  378. <plugins>
  379. <plugin>
  380. <groupId>org.apache.maven.plugins</groupId>
  381. <artifactId>maven-dependency-plugin</artifactId>
  382. <dependencies>
  383. <dependency>
  384. <groupId>org.apache.felix</groupId>
  385. <artifactId>maven-bundle-plugin</artifactId>
  386. <version>${maven.bundle.plugin.version}</version>
  387. <type>maven-plugin</type>
  388. </dependency>
  389. </dependencies>
  390. <extensions>true</extensions>
  391. </plugin>
  392. <plugin>
  393. <groupId>org.apache.maven.plugins</groupId>
  394. <artifactId>maven-source-plugin</artifactId>
  395. <executions>
  396. <execution>
  397. <id>attach-sources</id>
  398. <goals>
  399. <goal>jar</goal>
  400. </goals>
  401. </execution>
  402. </executions>
  403. </plugin>
  404. <plugin>
  405. <groupId>org.apache.maven.plugins</groupId>
  406. <artifactId>maven-javadoc-plugin</artifactId>
  407. <configuration>
  408. <show>private</show>
  409. </configuration>
  410. <executions>
  411. <execution>
  412. <id>attach-javadocs</id>
  413. <goals>
  414. <goal>jar</goal>
  415. </goals>
  416. </execution>
  417. </executions>
  418. </plugin>
  419. <plugin>
  420. <groupId>org.codehaus.mojo</groupId>
  421. <artifactId>cobertura-maven-plugin</artifactId>
  422. <configuration>
  423. <outputDirectory>${basedir}/target</outputDirectory>
  424. <formats>
  425. <format>html</format>
  426. <format>xml</format>
  427. </formats>
  428. <instrumentation>
  429. <excludes>
  430. <exclude>no/priv/bang/ukelonn/mocks/**/*.class</exclude>
  431. <exclude>no/priv/bang/ukelonn/testutils/**/*.class</exclude>
  432. </excludes>
  433. </instrumentation>
  434. <aggregate>true</aggregate>
  435. </configuration>
  436. </plugin>
  437. <plugin>
  438. <groupId>org.eluder.coveralls</groupId>
  439. <artifactId>coveralls-maven-plugin</artifactId>
  440. <configuration>
  441. <coberturaReports>
  442. <coberturaReport>${basedir}/target/coverage.xml</coberturaReport>
  443. </coberturaReports>
  444. </configuration>
  445. </plugin>
  446. <plugin>
  447. <groupId>ru.yaal.maven</groupId>
  448. <artifactId>write-text-files-maven-plugin</artifactId>
  449. <version>1.1</version>
  450. <executions>
  451. <execution>
  452. <id>generate-rest-post-arguments</id>
  453. <phase>generate-sources</phase>
  454. <goals>
  455. <goal>write-text-files</goal>
  456. </goals>
  457. </execution>
  458. </executions>
  459. <configuration>
  460. <files>
  461. <file>
  462. <path>target/karaf-console-rest-post-update-arguments</path>
  463. <lines>
  464. <line>action=update&amp;dummy=dummy</line>
  465. </lines>
  466. </file>
  467. </files>
  468. </configuration>
  469. </plugin>
  470. </plugins>
  471. <extensions>
  472. <extension>
  473. <groupId>org.apache.maven.wagon</groupId>
  474. <artifactId>wagon-ftp</artifactId>
  475. <version>1.0-beta-6</version>
  476. </extension>
  477. </extensions>
  478. </build>
  479. <modules>
  480. <module>ukelonn.services</module>
  481. <module>ukelonn.backend</module>
  482. <module>ukelonn.web.security</module>
  483. <module>ukelonn.web.services</module>
  484. <module>ukelonn.web.frontend</module>
  485. <module>ukelonn.testutils</module>
  486. <module>ukelonn.db.liquibase</module>
  487. <module>ukelonn.db.derbytest</module>
  488. <module>ukelonn.db.postgresql</module>
  489. <module>ukelonn.tests</module>
  490. <module>karaf</module>
  491. </modules>
  492. <distributionManagement>
  493. <repository>
  494. <id>ftp-maven-travis</id>
  495. <url>ftp://maven.bang.priv.no/repository</url>
  496. </repository>
  497. <snapshotRepository>
  498. <id>ftp-maven-travis</id>
  499. <url>ftp://maven.bang.priv.no/repository</url>
  500. </snapshotRepository>
  501. </distributionManagement>
  502. </project>