pom.xml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Copyright 2016-2018 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>2.5.3</maven.bundle.plugin.version>
  23. <karaf.version>4.1.2</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. <commons.beanutils.version>1.8.3</commons.beanutils.version>
  38. <commons.collections.version>3.2.2</commons.collections.version>
  39. <javax.validation>1.1.0.Final</javax.validation>
  40. <jsoup.version>1.8.3</jsoup.version>
  41. <vaadin.version>8.4.1</vaadin.version>
  42. <vaadin.touchkit.version>5.0.1-SNAPSHOT</vaadin.touchkit.version>
  43. <rest-maven-plugin-version>0.1.4</rest-maven-plugin-version>
  44. <ukelonn-server-url>http://localhost:8181</ukelonn-server-url>
  45. <ukelonn-server-basic-auth-token>a2FyYWY6a2FyYWY=</ukelonn-server-basic-auth-token>
  46. <sonar.cpd.exclusions>
  47. **/AdminFallbackView.java,
  48. **/AdminView.java,
  49. **/UserFallbackView.java,
  50. **/UserView.java,
  51. **/PGUkelonnDatabaseProvider.java,
  52. **/UkelonnDatabaseProvider.java
  53. </sonar.cpd.exclusions>
  54. </properties>
  55. <dependencyManagement>
  56. <dependencies>
  57. <dependency>
  58. <groupId>junit</groupId>
  59. <artifactId>junit</artifactId>
  60. <version>4.12</version>
  61. <scope>test</scope>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.assertj</groupId>
  65. <artifactId>assertj-core</artifactId>
  66. <version>3.9.0</version>
  67. <scope>test</scope>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.mockito</groupId>
  71. <artifactId>mockito-core</artifactId>
  72. <version>1.10.19</version>
  73. <scope>test</scope>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.osgi</groupId>
  77. <artifactId>org.osgi.core</artifactId>
  78. <version>${dependency.osgi.version}</version>
  79. <scope>provided</scope>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.osgi</groupId>
  83. <artifactId>org.osgi.service.component.annotations</artifactId>
  84. <version>${osgi.service.version}</version>
  85. <scope>provided</scope>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.osgi</groupId>
  89. <artifactId>org.osgi.service.log</artifactId>
  90. <version>${dependency.osgi.log.version}</version>
  91. <scope>provided</scope>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.osgi</groupId>
  95. <artifactId>org.osgi.service.jdbc</artifactId>
  96. <version>${dependency.osgi.jdbc.version}</version>
  97. <scope>provided</scope>
  98. </dependency>
  99. <dependency>
  100. <groupId>javax.servlet</groupId>
  101. <artifactId>javax.servlet-api</artifactId>
  102. <version>3.1.0</version>
  103. <scope>provided</scope>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.ops4j.pax.web</groupId>
  107. <artifactId>pax-web-api</artifactId>
  108. <version>${dependency.pax.web.version}</version>
  109. <scope>provided</scope>
  110. </dependency>
  111. <dependency>
  112. <groupId>org.ops4j.pax.web</groupId>
  113. <artifactId>pax-web-runtime</artifactId>
  114. <version>${dependency.pax.web.version}</version>
  115. <scope>provided</scope>
  116. </dependency>
  117. <dependency>
  118. <groupId>org.ops4j.pax.web</groupId>
  119. <artifactId>pax-web-extender-whiteboard</artifactId>
  120. <version>${dependency.pax.web.version}</version>
  121. <scope>provided</scope>
  122. </dependency>
  123. <dependency>
  124. <groupId>org.apache.karaf.shell</groupId>
  125. <artifactId>org.apache.karaf.shell.console</artifactId>
  126. <version>${karaf.version}</version>
  127. <scope>provided</scope>
  128. </dependency>
  129. <dependency>
  130. <groupId>org.ops4j.pax.exam</groupId>
  131. <artifactId>pax-exam-container-karaf</artifactId>
  132. <version>${dependency.pax.exam.version}</version>
  133. <scope>test</scope>
  134. </dependency>
  135. <dependency>
  136. <groupId>org.apache.karaf</groupId>
  137. <artifactId>apache-karaf-minimal</artifactId>
  138. <version>${karaf.version}</version>
  139. <type>zip</type>
  140. <scope>test</scope>
  141. <exclusions>
  142. <exclusion>
  143. <groupId>*</groupId>
  144. <artifactId>*</artifactId>
  145. </exclusion>
  146. </exclusions>
  147. </dependency>
  148. <dependency>
  149. <groupId>org.apache.karaf.features</groupId>
  150. <artifactId>standard</artifactId>
  151. <version>${karaf.version}</version>
  152. <type>xml</type>
  153. <classifier>features</classifier>
  154. <scope>test</scope>
  155. </dependency>
  156. <dependency>
  157. <groupId>org.ops4j.pax.exam</groupId>
  158. <artifactId>pax-exam-junit4</artifactId>
  159. <version>${dependency.pax.exam.version}</version>
  160. <scope>test</scope>
  161. </dependency>
  162. <dependency>
  163. <groupId>org.ops4j.pax.exam</groupId>
  164. <artifactId>pax-exam-link-mvn</artifactId>
  165. <version>${dependency.pax.exam.version}</version>
  166. <scope>test</scope>
  167. </dependency>
  168. <dependency>
  169. <groupId>org.slf4j</groupId>
  170. <artifactId>slf4j-simple</artifactId>
  171. <version>1.7.25</version>
  172. <scope>test</scope>
  173. </dependency>
  174. <dependency>
  175. <groupId>org.ops4j.pax.url</groupId>
  176. <artifactId>pax-url-reference</artifactId>
  177. <version>${dependency.pax.url.version}</version>
  178. </dependency>
  179. <dependency>
  180. <groupId>com.vaadin</groupId>
  181. <artifactId>vaadin-osgi-integration</artifactId>
  182. <version>${vaadin.version}</version>
  183. <scope>provided</scope>
  184. </dependency>
  185. <dependency>
  186. <groupId>com.vaadin</groupId>
  187. <artifactId>vaadin-bom</artifactId>
  188. <version>${vaadin.version}</version>
  189. <type>pom</type>
  190. <scope>import</scope>
  191. </dependency>
  192. <dependency>
  193. <groupId>org.vaadin.touchkit</groupId>
  194. <artifactId>touchkit</artifactId>
  195. <version>${vaadin.touchkit.version}</version>
  196. </dependency>
  197. <dependency>
  198. <groupId>org.ops4j.pax.jdbc</groupId>
  199. <artifactId>pax-jdbc</artifactId>
  200. <version>${dependency.pax.jdbc.version}</version>
  201. <scope>provided</scope>
  202. </dependency>
  203. <dependency>
  204. <groupId>org.ops4j.pax.jdbc</groupId>
  205. <artifactId>pax-jdbc-derby</artifactId>
  206. <version>${dependency.pax.jdbc.version}</version>
  207. <scope>provided</scope>
  208. </dependency>
  209. <dependency>
  210. <groupId>org.apache.derby</groupId>
  211. <artifactId>derby</artifactId>
  212. <version>${derby.version}</version>
  213. <scope>provided</scope>
  214. </dependency>
  215. <dependency>
  216. <groupId>org.apache.shiro</groupId>
  217. <artifactId>shiro-core</artifactId>
  218. <version>${dependency.shiro.version}</version>
  219. <scope>provided</scope>
  220. </dependency>
  221. <dependency>
  222. <groupId>org.apache.shiro</groupId>
  223. <artifactId>shiro-web</artifactId>
  224. <version>${dependency.shiro.version}</version>
  225. </dependency>
  226. <dependency>
  227. <groupId>com.mattbertolini</groupId>
  228. <artifactId>liquibase-slf4j</artifactId>
  229. <version>${liquibase-slf4j.version}</version>
  230. <scope>provided</scope>
  231. </dependency>
  232. <dependency>
  233. <groupId>org.liquibase</groupId>
  234. <artifactId>liquibase-core</artifactId>
  235. <version>${liquibase.version}</version>
  236. <scope>provided</scope>
  237. </dependency>
  238. <dependency>
  239. <groupId>org.postgresql</groupId>
  240. <artifactId>postgresql</artifactId>
  241. <version>${postgresql.version}</version>
  242. <scope>provided</scope>
  243. </dependency>
  244. </dependencies>
  245. </dependencyManagement>
  246. <build>
  247. <pluginManagement>
  248. <plugins>
  249. <plugin>
  250. <groupId>org.apache.maven.plugins</groupId>
  251. <artifactId>maven-compiler-plugin</artifactId>
  252. <version>3.5.1</version>
  253. <configuration>
  254. <source>1.8</source>
  255. <target>1.8</target>
  256. </configuration>
  257. </plugin>
  258. <plugin>
  259. <groupId>org.apache.maven.plugins</groupId>
  260. <artifactId>maven-source-plugin</artifactId>
  261. <version>2.4</version>
  262. </plugin>
  263. <plugin>
  264. <groupId>org.apache.maven.plugins</groupId>
  265. <artifactId>maven-javadoc-plugin</artifactId>
  266. <version>2.10.2</version>
  267. </plugin>
  268. <plugin>
  269. <groupId>org.codehaus.mojo</groupId>
  270. <artifactId>cobertura-maven-plugin</artifactId>
  271. <version>2.7</version>
  272. </plugin>
  273. <plugin>
  274. <groupId>org.apache.felix</groupId>
  275. <artifactId>maven-bundle-plugin</artifactId>
  276. <version>${maven.bundle.plugin.version}</version>
  277. <configuration>
  278. <instructions>
  279. <!-- Enable processing of OSGI DS component annotations -->
  280. <_dsannotations>*</_dsannotations>
  281. <!-- Enable processing of OSGI metatype annotations -->
  282. <_metatypeannotations>*</_metatypeannotations>
  283. </instructions>
  284. </configuration>
  285. </plugin>
  286. <plugin>
  287. <groupId>org.apache.maven.plugins</groupId>
  288. <artifactId>maven-clean-plugin</artifactId>
  289. <version>3.0.0</version>
  290. <configuration>
  291. <filesets>
  292. <fileset>
  293. <directory>.</directory>
  294. <includes>
  295. <include>**/*.log</include>
  296. </includes>
  297. <followSymlinks>false</followSymlinks>
  298. </fileset>
  299. </filesets>
  300. </configuration>
  301. </plugin>
  302. <plugin>
  303. <groupId>org.apache.maven.plugins</groupId>
  304. <artifactId>maven-surefire-plugin</artifactId>
  305. <version>2.20</version>
  306. </plugin>
  307. <plugin>
  308. <groupId>org.eluder.coveralls</groupId>
  309. <artifactId>coveralls-maven-plugin</artifactId>
  310. <version>4.3.0</version>
  311. </plugin>
  312. <plugin>
  313. <groupId>org.apache.karaf.tooling</groupId>
  314. <artifactId>karaf-maven-plugin</artifactId>
  315. <version>${karaf.version}</version>
  316. <extensions>true</extensions>
  317. <configuration>
  318. <startLevel>80</startLevel>
  319. <includeTransitiveDependency>false</includeTransitiveDependency>
  320. <aggregateFeatures>false</aggregateFeatures>
  321. <includeProjectArtifact>true</includeProjectArtifact>
  322. </configuration>
  323. <executions>
  324. <execution>
  325. <id>generate-features-file</id>
  326. <phase>package</phase>
  327. <goals>
  328. <goal>features-generate-descriptor</goal>
  329. </goals>
  330. </execution>
  331. </executions>
  332. </plugin>
  333. <plugin>
  334. <groupId>com.github.cjnygard</groupId>
  335. <artifactId>rest-maven-plugin</artifactId>
  336. <version>${rest-maven-plugin-version}</version>
  337. <configuration>
  338. <endpoint>${ukelonn-server-url}</endpoint>
  339. <requestType>
  340. <type>application</type>
  341. <subtype>x-www-form-urlencoded</subtype>
  342. </requestType>
  343. <headers>
  344. <Authorization>Basic ${ukelonn-server-basic-auth-token}</Authorization>
  345. </headers>
  346. </configuration>
  347. <dependencies>
  348. <dependency>
  349. <groupId>com.github.cjnygard</groupId>
  350. <artifactId>rest-maven-plugin</artifactId>
  351. <version>${rest-maven-plugin-version}</version>
  352. </dependency>
  353. </dependencies>
  354. </plugin>
  355. <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
  356. <plugin>
  357. <groupId>org.eclipse.m2e</groupId>
  358. <artifactId>lifecycle-mapping</artifactId>
  359. <version>1.0.0</version>
  360. <configuration>
  361. <lifecycleMappingMetadata>
  362. <pluginExecutions>
  363. <pluginExecution>
  364. <pluginExecutionFilter>
  365. <groupId>ru.yaal.maven</groupId>
  366. <artifactId>write-text-files-maven-plugin</artifactId>
  367. <versionRange>[1.1,)</versionRange>
  368. <goals>
  369. <goal>
  370. write-text-files
  371. </goal>
  372. </goals>
  373. </pluginExecutionFilter>
  374. <action>
  375. <ignore></ignore>
  376. </action>
  377. </pluginExecution>
  378. </pluginExecutions>
  379. </lifecycleMappingMetadata>
  380. </configuration>
  381. </plugin>
  382. </plugins>
  383. </pluginManagement>
  384. <plugins>
  385. <plugin>
  386. <groupId>org.apache.maven.plugins</groupId>
  387. <artifactId>maven-dependency-plugin</artifactId>
  388. <dependencies>
  389. <dependency>
  390. <groupId>org.apache.felix</groupId>
  391. <artifactId>maven-bundle-plugin</artifactId>
  392. <version>${maven.bundle.plugin.version}</version>
  393. <type>maven-plugin</type>
  394. </dependency>
  395. </dependencies>
  396. <extensions>true</extensions>
  397. </plugin>
  398. <plugin>
  399. <groupId>org.apache.maven.plugins</groupId>
  400. <artifactId>maven-source-plugin</artifactId>
  401. <executions>
  402. <execution>
  403. <id>attach-sources</id>
  404. <goals>
  405. <goal>jar</goal>
  406. </goals>
  407. </execution>
  408. </executions>
  409. </plugin>
  410. <plugin>
  411. <groupId>org.apache.maven.plugins</groupId>
  412. <artifactId>maven-javadoc-plugin</artifactId>
  413. <configuration>
  414. <show>private</show>
  415. </configuration>
  416. <executions>
  417. <execution>
  418. <id>attach-javadocs</id>
  419. <goals>
  420. <goal>jar</goal>
  421. </goals>
  422. </execution>
  423. </executions>
  424. </plugin>
  425. <plugin>
  426. <groupId>org.codehaus.mojo</groupId>
  427. <artifactId>cobertura-maven-plugin</artifactId>
  428. <configuration>
  429. <outputDirectory>${basedir}/target</outputDirectory>
  430. <formats>
  431. <format>html</format>
  432. <format>xml</format>
  433. </formats>
  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. </build>
  472. <modules>
  473. <module>ukelonn.api</module>
  474. <module>ukelonn.bundle</module>
  475. <module>ukelonn.tests</module>
  476. <module>ukelonn.bundle.db.liquibase</module>
  477. <module>ukelonn.bundle.db.test</module>
  478. <module>ukelonn.bundle.db.postgresql</module>
  479. <module>ukelonn.karaf</module>
  480. </modules>
  481. <repositories>
  482. <repository>
  483. <id>vaadin-addons</id>
  484. <url>http://maven.vaadin.com/vaadin-addons</url>
  485. </repository>
  486. <repository>
  487. <id>bang-maven</id>
  488. <url>http://maven.bang.priv.no/repository</url>
  489. </repository>
  490. </repositories>
  491. <distributionManagement>
  492. <repository>
  493. <id>file-local-deploy</id>
  494. <url>file:///var/www-maven/repository</url>
  495. </repository>
  496. <snapshotRepository>
  497. <id>file-local-deploy</id>
  498. <url>file:///var/www-maven/repository</url>
  499. </snapshotRepository>
  500. </distributionManagement>
  501. </project>