pom.xml 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637
  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 2018-2020 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.handlereg</groupId>
  16. <artifactId>handlereg</artifactId>
  17. <version>1.0.0-SNAPSHOT</version>
  18. <packaging>pom</packaging>
  19. <name>Handleregistrering</name>
  20. <modules>
  21. <module>handlereg.db.liquibase</module>
  22. <module>handlereg.db.liquibase.test</module>
  23. <module>handlereg.db.liquibase.production</module>
  24. <module>handlereg.services</module>
  25. <module>handlereg.backend</module>
  26. <module>handlereg.backend.testdata</module>
  27. <module>handlereg.web.security</module>
  28. <module>handlereg.web.api</module>
  29. <module>handlereg.web.frontend</module>
  30. </modules>
  31. <properties>
  32. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  33. <maven.bundle.plugin.version>3.5.1</maven.bundle.plugin.version>
  34. <karaf.version>4.2.5</karaf.version>
  35. <junit.jupiter.version>5.5.2</junit.jupiter.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.10</postgresql.version>
  41. <dependency.osgi.version>6.0.0</dependency.osgi.version>
  42. <osgi.service.version>1.3.0</osgi.service.version>
  43. <osgi.log.version>1.3.0</osgi.log.version>
  44. <osgi.jdbc.version>1.0.0</osgi.jdbc.version>
  45. <osgi-service.version>1.5.0</osgi-service.version>
  46. <osgi-service-adaptors.version>1.0.1</osgi-service-adaptors.version>
  47. <bang-servlet.version>1.1.3</bang-servlet.version>
  48. <pax.web.version>7.2.14</pax.web.version>
  49. <pax.exam.version>4.10.0</pax.exam.version>
  50. <pax.jdbc.version>1.3.1</pax.jdbc.version>
  51. <authservice.version>1.11.7</authservice.version>
  52. <shiro.version>1.5.1</shiro.version>
  53. <beans.version>1.0.0</beans.version>
  54. <jackson.version>2.10.3</jackson.version>
  55. <jersey.version>2.30.1</jersey.version>
  56. <open-iconic.version>1.1.1</open-iconic.version>
  57. <sonar.cpd.exclusions>
  58. **/HandleregDerbyTestDatabase.java,
  59. **/HandleregPostgresqlDatabase.java,
  60. </sonar.cpd.exclusions>
  61. </properties>
  62. <dependencyManagement>
  63. <dependencies>
  64. <dependency>
  65. <groupId>org.junit.jupiter</groupId>
  66. <artifactId>junit-jupiter-api</artifactId>
  67. <version>${junit.jupiter.version}</version>
  68. <scope>test</scope>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.junit.jupiter</groupId>
  72. <artifactId>junit-jupiter-engine</artifactId>
  73. <version>${junit.jupiter.version}</version>
  74. <scope>test</scope>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.junit.vintage</groupId>
  78. <artifactId>junit-vintage-engine</artifactId>
  79. <version>${junit.jupiter.version}</version>
  80. <scope>test</scope>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.assertj</groupId>
  84. <artifactId>assertj-core</artifactId>
  85. <version>3.9.0</version>
  86. <scope>test</scope>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.mockito</groupId>
  90. <artifactId>mockito-core</artifactId>
  91. <version>1.10.19</version>
  92. <scope>test</scope>
  93. </dependency>
  94. <dependency>
  95. <groupId>com.mockrunner</groupId>
  96. <artifactId>mockrunner-servlet</artifactId>
  97. <version>${mockrunner.version}</version>
  98. <scope>test</scope>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.osgi</groupId>
  102. <artifactId>org.osgi.core</artifactId>
  103. <version>${dependency.osgi.version}</version>
  104. <scope>provided</scope>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.osgi</groupId>
  108. <artifactId>org.osgi.service.component.annotations</artifactId>
  109. <version>${osgi.service.version}</version>
  110. <scope>provided</scope>
  111. </dependency>
  112. <dependency>
  113. <groupId>org.osgi</groupId>
  114. <artifactId>org.osgi.service.log</artifactId>
  115. <version>${osgi.log.version}</version>
  116. <scope>provided</scope>
  117. </dependency>
  118. <dependency>
  119. <groupId>no.priv.bang.osgi.service.adapters</groupId>
  120. <artifactId>logservice</artifactId>
  121. <version>${osgi-service-adaptors.version}</version>
  122. <scope>provided</scope>
  123. </dependency>
  124. <dependency>
  125. <groupId>no.priv.bang.osgi.service.adapters</groupId>
  126. <artifactId>service-mocks</artifactId>
  127. <version>${osgi-service-adaptors.version}</version>
  128. <scope>test</scope>
  129. </dependency>
  130. <dependency>
  131. <groupId>org.osgi</groupId>
  132. <artifactId>org.osgi.service.jdbc</artifactId>
  133. <version>${osgi.jdbc.version}</version>
  134. <scope>provided</scope>
  135. </dependency>
  136. <dependency>
  137. <groupId>no.priv.bang.osgiservice</groupId>
  138. <artifactId>osgiservice.users</artifactId>
  139. <version>${osgi-service.version}</version>
  140. <scope>provided</scope>
  141. </dependency>
  142. <dependency>
  143. <groupId>org.ops4j.pax.web</groupId>
  144. <artifactId>pax-web-api</artifactId>
  145. <version>${pax.web.version}</version>
  146. <scope>provided</scope>
  147. </dependency>
  148. <dependency>
  149. <groupId>org.ops4j.pax.web</groupId>
  150. <artifactId>pax-web-runtime</artifactId>
  151. <version>${pax.web.version}</version>
  152. <scope>provided</scope>
  153. </dependency>
  154. <dependency>
  155. <groupId>org.ops4j.pax.web</groupId>
  156. <artifactId>pax-web-extender-whiteboard</artifactId>
  157. <version>${pax.web.version}</version>
  158. <scope>provided</scope>
  159. </dependency>
  160. <dependency>
  161. <groupId>javax.servlet</groupId>
  162. <artifactId>javax.servlet-api</artifactId>
  163. <version>3.1.0</version>
  164. <scope>provided</scope>
  165. </dependency>
  166. <dependency>
  167. <groupId>no.priv.bang.servlet</groupId>
  168. <artifactId>servlet.frontend</artifactId>
  169. <version>${bang-servlet.version}</version>
  170. <scope>provided</scope>
  171. </dependency>
  172. <dependency>
  173. <groupId>no.priv.bang.servlet</groupId>
  174. <artifactId>servlet.jersey</artifactId>
  175. <version>${bang-servlet.version}</version>
  176. <scope>provided</scope>
  177. </dependency>
  178. <dependency>
  179. <groupId>org.apache.karaf.shell</groupId>
  180. <artifactId>org.apache.karaf.shell.console</artifactId>
  181. <version>${karaf.version}</version>
  182. <scope>provided</scope>
  183. </dependency>
  184. <dependency>
  185. <groupId>org.ops4j.pax.exam</groupId>
  186. <artifactId>pax-exam-container-karaf</artifactId>
  187. <version>${pax.exam.version}</version>
  188. <scope>test</scope>
  189. </dependency>
  190. <dependency>
  191. <groupId>org.apache.karaf</groupId>
  192. <artifactId>apache-karaf-minimal</artifactId>
  193. <version>${karaf.version}</version>
  194. <type>zip</type>
  195. <scope>test</scope>
  196. <exclusions>
  197. <exclusion>
  198. <groupId>*</groupId>
  199. <artifactId>*</artifactId>
  200. </exclusion>
  201. </exclusions>
  202. </dependency>
  203. <dependency>
  204. <groupId>org.apache.karaf.features</groupId>
  205. <artifactId>standard</artifactId>
  206. <version>${karaf.version}</version>
  207. <type>xml</type>
  208. <classifier>features</classifier>
  209. <scope>test</scope>
  210. </dependency>
  211. <dependency>
  212. <groupId>org.ops4j.pax.exam</groupId>
  213. <artifactId>pax-exam-junit4</artifactId>
  214. <version>${pax.exam.version}</version>
  215. <scope>test</scope>
  216. </dependency>
  217. <dependency>
  218. <groupId>org.ops4j.pax.exam</groupId>
  219. <artifactId>pax-exam-link-mvn</artifactId>
  220. <version>${pax.exam.version}</version>
  221. <scope>test</scope>
  222. </dependency>
  223. <dependency>
  224. <groupId>org.ops4j.pax.url</groupId>
  225. <artifactId>pax-url-reference</artifactId>
  226. <version>${dependency.pax.url.version}</version>
  227. </dependency>
  228. <dependency>
  229. <groupId>org.ops4j.pax.jdbc</groupId>
  230. <artifactId>pax-jdbc</artifactId>
  231. <version>${pax.jdbc.version}</version>
  232. <scope>provided</scope>
  233. </dependency>
  234. <dependency>
  235. <groupId>org.ops4j.pax.jdbc</groupId>
  236. <artifactId>pax-jdbc-config</artifactId>
  237. <version>${pax.jdbc.version}</version>
  238. <scope>provided</scope>
  239. </dependency>
  240. <dependency>
  241. <groupId>org.ops4j.pax.jdbc</groupId>
  242. <artifactId>pax-jdbc-pool-common</artifactId>
  243. <version>${pax.jdbc.version}</version>
  244. <scope>provided</scope>
  245. </dependency>
  246. <dependency>
  247. <groupId>org.ops4j.pax.jdbc</groupId>
  248. <artifactId>pax-jdbc-derby</artifactId>
  249. <version>${pax.jdbc.version}</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>${shiro.version}</version>
  262. <scope>provided</scope>
  263. </dependency>
  264. <dependency>
  265. <groupId>org.apache.shiro</groupId>
  266. <artifactId>shiro-web</artifactId>
  267. <version>${shiro.version}</version>
  268. <scope>provided</scope>
  269. </dependency>
  270. <dependency>
  271. <groupId>no.priv.bang.beans</groupId>
  272. <artifactId>beans.immutable</artifactId>
  273. <version>${beans.version}</version>
  274. <scope>provided</scope>
  275. </dependency>
  276. <dependency>
  277. <groupId>org.apache.commons</groupId>
  278. <artifactId>commons-lang3</artifactId>
  279. <version>3.9</version>
  280. </dependency>
  281. <dependency>
  282. <groupId>com.fasterxml.jackson.datatype</groupId>
  283. <artifactId>jackson-datatype-jsr310</artifactId>
  284. <version>${jackson.version}</version>
  285. <scope>provided</scope>
  286. </dependency>
  287. <dependency>
  288. <groupId>org.glassfish.jersey.containers</groupId>
  289. <artifactId>jersey-container-servlet</artifactId>
  290. <version>${jersey.version}</version>
  291. <scope>provided</scope>
  292. </dependency>
  293. <dependency>
  294. <groupId>org.apache.servicemix.bundles</groupId>
  295. <artifactId>org.apache.servicemix.bundles.javax-inject</artifactId>
  296. <version>1_3</version>
  297. <scope>provided</scope>
  298. </dependency>
  299. <dependency>
  300. <groupId>org.glassfish.jersey.inject</groupId>
  301. <artifactId>jersey-hk2</artifactId>
  302. <version>${jersey.version}</version>
  303. <scope>provided</scope>
  304. </dependency>
  305. <dependency>
  306. <groupId>org.glassfish.jersey.media</groupId>
  307. <artifactId>jersey-media-moxy</artifactId>
  308. <version>${jersey.version}</version>
  309. <scope>provided</scope>
  310. </dependency>
  311. <dependency>
  312. <groupId>org.glassfish.jersey.media</groupId>
  313. <artifactId>jersey-media-json-jackson</artifactId>
  314. <version>${jersey.version}</version>
  315. <scope>provided</scope>
  316. </dependency>
  317. <dependency>
  318. <groupId>javax.xml.bind</groupId>
  319. <artifactId>jaxb-api</artifactId>
  320. <version>2.3.1</version>
  321. </dependency>
  322. <dependency>
  323. <groupId>org.slf4j</groupId>
  324. <artifactId>slf4j-simple</artifactId>
  325. <version>1.7.25</version>
  326. <scope>test</scope>
  327. </dependency>
  328. <dependency>
  329. <groupId>org.liquibase</groupId>
  330. <artifactId>liquibase-core</artifactId>
  331. <version>${liquibase.version}</version>
  332. <scope>provided</scope>
  333. </dependency>
  334. <dependency>
  335. <groupId>org.postgresql</groupId>
  336. <artifactId>postgresql</artifactId>
  337. <version>${postgresql.version}</version>
  338. <scope>provided</scope>
  339. </dependency>
  340. <dependency>
  341. <groupId>org.webjars.bower</groupId>
  342. <artifactId>open-iconic</artifactId>
  343. <version>${open-iconic.version}</version>
  344. </dependency>
  345. </dependencies>
  346. </dependencyManagement>
  347. <build>
  348. <pluginManagement>
  349. <plugins>
  350. <plugin>
  351. <groupId>org.apache.maven.plugins</groupId>
  352. <artifactId>maven-compiler-plugin</artifactId>
  353. <version>3.8.1</version>
  354. <configuration>
  355. <source>1.8</source>
  356. <target>1.8</target>
  357. </configuration>
  358. </plugin>
  359. <plugin>
  360. <groupId>org.apache.maven.plugins</groupId>
  361. <artifactId>maven-source-plugin</artifactId>
  362. <version>2.4</version>
  363. </plugin>
  364. <plugin>
  365. <groupId>org.apache.maven.plugins</groupId>
  366. <artifactId>maven-javadoc-plugin</artifactId>
  367. <version>2.10.2</version>
  368. </plugin>
  369. <plugin>
  370. <groupId>org.codehaus.mojo</groupId>
  371. <artifactId>cobertura-maven-plugin</artifactId>
  372. <version>2.7</version>
  373. </plugin>
  374. <plugin>
  375. <groupId>org.apache.felix</groupId>
  376. <artifactId>maven-bundle-plugin</artifactId>
  377. <version>${maven.bundle.plugin.version}</version>
  378. <configuration>
  379. <supportedProjectTypes>
  380. <supportedProjectType>jar</supportedProjectType>
  381. <supportedProjectType>bundle</supportedProjectType>
  382. <supportedProjectType>war</supportedProjectType>
  383. </supportedProjectTypes>
  384. <instructions>
  385. <!-- Enable processing of OSGI DS component annotations -->
  386. <_dsannotations>*</_dsannotations>
  387. <!-- Inherit service injections from base class -->
  388. <_dsannotations-options>inherit</_dsannotations-options>
  389. <!-- Enable processing of OSGI metatype annotations -->
  390. <_metatypeannotations>*</_metatypeannotations>
  391. </instructions>
  392. </configuration>
  393. <executions>
  394. <execution>
  395. <id>bundle</id>
  396. <goals>
  397. <goal>bundle</goal>
  398. </goals>
  399. </execution>
  400. </executions>
  401. </plugin>
  402. <plugin>
  403. <groupId>org.apache.maven.plugins</groupId>
  404. <artifactId>maven-clean-plugin</artifactId>
  405. <version>3.1.0</version>
  406. <configuration>
  407. <filesets>
  408. <fileset>
  409. <directory>.</directory>
  410. <includes>
  411. <include>**/*.log</include>
  412. </includes>
  413. <followSymlinks>false</followSymlinks>
  414. </fileset>
  415. </filesets>
  416. </configuration>
  417. </plugin>
  418. <plugin>
  419. <groupId>org.apache.maven.plugins</groupId>
  420. <artifactId>maven-surefire-plugin</artifactId>
  421. <version>2.22.2</version>
  422. <configuration>
  423. <useSystemClassLoader>false</useSystemClassLoader>
  424. </configuration>
  425. </plugin>
  426. <plugin>
  427. <groupId>org.eluder.coveralls</groupId>
  428. <artifactId>coveralls-maven-plugin</artifactId>
  429. <version>4.3.0</version>
  430. </plugin>
  431. <plugin>
  432. <groupId>org.apache.karaf.tooling</groupId>
  433. <artifactId>karaf-maven-plugin</artifactId>
  434. <version>${karaf.version}</version>
  435. <extensions>true</extensions>
  436. <configuration>
  437. <startLevel>80</startLevel>
  438. <includeTransitiveDependency>false</includeTransitiveDependency>
  439. <aggregateFeatures>false</aggregateFeatures>
  440. <includeProjectArtifact>true</includeProjectArtifact>
  441. <primaryFeatureName>${karaf-feature-name}</primaryFeatureName>
  442. </configuration>
  443. <executions>
  444. <execution>
  445. <id>generate-features-file</id>
  446. <phase>package</phase>
  447. <goals>
  448. <goal>features-generate-descriptor</goal>
  449. </goals>
  450. </execution>
  451. </executions>
  452. </plugin>
  453. <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
  454. <plugin>
  455. <groupId>org.eclipse.m2e</groupId>
  456. <artifactId>lifecycle-mapping</artifactId>
  457. <version>1.0.0</version>
  458. <configuration>
  459. <lifecycleMappingMetadata>
  460. <pluginExecutions>
  461. <pluginExecution>
  462. <pluginExecutionFilter>
  463. <groupId>ru.yaal.maven</groupId>
  464. <artifactId>write-text-files-maven-plugin</artifactId>
  465. <versionRange>[1.1,)</versionRange>
  466. <goals>
  467. <goal>
  468. write-text-files
  469. </goal>
  470. </goals>
  471. </pluginExecutionFilter>
  472. <action>
  473. <ignore></ignore>
  474. </action>
  475. </pluginExecution>
  476. </pluginExecutions>
  477. </lifecycleMappingMetadata>
  478. </configuration>
  479. </plugin>
  480. </plugins>
  481. </pluginManagement>
  482. <plugins>
  483. <plugin>
  484. <artifactId>maven-resources-plugin</artifactId>
  485. <version>3.1.0</version>
  486. <executions>
  487. <execution>
  488. <id>filter-resources</id>
  489. <phase>validate</phase>
  490. <goals>
  491. <goal>resources</goal>
  492. </goals>
  493. <configuration>
  494. <resources>
  495. <resource>
  496. <directory>src/main/filtered-resources</directory>
  497. <filtering>true</filtering>
  498. </resource>
  499. </resources>
  500. </configuration>
  501. </execution>
  502. </executions>
  503. </plugin>
  504. <plugin>
  505. <groupId>org.codehaus.mojo</groupId>
  506. <artifactId>build-helper-maven-plugin</artifactId>
  507. <version>3.0.0</version>
  508. <inherited>false</inherited>
  509. <executions>
  510. <execution>
  511. <id>attach-karaf-feature</id>
  512. <phase>package</phase>
  513. <goals>
  514. <goal>attach-artifact</goal>
  515. </goals>
  516. <configuration>
  517. <artifacts>
  518. <artifact>
  519. <file>target/classes/feature.xml</file>
  520. <type>xml</type>
  521. <classifier>features</classifier>
  522. </artifact>
  523. </artifacts>
  524. </configuration>
  525. </execution>
  526. </executions>
  527. </plugin>
  528. <plugin>
  529. <groupId>org.apache.maven.plugins</groupId>
  530. <artifactId>maven-source-plugin</artifactId>
  531. <executions>
  532. <execution>
  533. <id>attach-sources</id>
  534. <goals>
  535. <goal>jar</goal>
  536. </goals>
  537. </execution>
  538. </executions>
  539. </plugin>
  540. <plugin>
  541. <groupId>org.apache.maven.plugins</groupId>
  542. <artifactId>maven-javadoc-plugin</artifactId>
  543. <configuration>
  544. <source>8</source>
  545. <show>private</show>
  546. </configuration>
  547. <executions>
  548. <execution>
  549. <id>attach-javadocs</id>
  550. <goals>
  551. <goal>jar</goal>
  552. </goals>
  553. </execution>
  554. </executions>
  555. </plugin>
  556. <plugin>
  557. <groupId>org.codehaus.mojo</groupId>
  558. <artifactId>cobertura-maven-plugin</artifactId>
  559. <configuration>
  560. <outputDirectory>${basedir}/target</outputDirectory>
  561. <formats>
  562. <format>html</format>
  563. <format>xml</format>
  564. </formats>
  565. <aggregate>true</aggregate>
  566. </configuration>
  567. </plugin>
  568. <plugin>
  569. <groupId>org.eluder.coveralls</groupId>
  570. <artifactId>coveralls-maven-plugin</artifactId>
  571. <configuration>
  572. <coberturaReports>
  573. <coberturaReport>${basedir}/target/coverage.xml</coberturaReport>
  574. </coberturaReports>
  575. </configuration>
  576. </plugin>
  577. </plugins>
  578. <extensions>
  579. <extension>
  580. <groupId>org.apache.maven.wagon</groupId>
  581. <artifactId>wagon-ssh</artifactId>
  582. <version>3.2.0</version>
  583. </extension>
  584. </extensions>
  585. </build>
  586. <distributionManagement>
  587. <repository>
  588. <id>ssh-maven-travis</id>
  589. <url>sftp://maven.bang.priv.no/repository</url>
  590. </repository>
  591. <snapshotRepository>
  592. <id>ssh-maven-travis</id>
  593. <url>sftp://maven.bang.priv.no/repository</url>
  594. </snapshotRepository>
  595. </distributionManagement>
  596. <profiles>
  597. <profile>
  598. <id>release-sign-artifact</id>
  599. <build>
  600. <plugins>
  601. <plugin>
  602. <groupId>org.apache.maven.plugins</groupId>
  603. <artifactId>maven-gpg-plugin</artifactId>
  604. <version>1.6</version>
  605. <executions>
  606. <execution>
  607. <id>sign-artifacts</id>
  608. <phase>verify</phase>
  609. <goals>
  610. <goal>sign</goal>
  611. </goals>
  612. <configuration>
  613. <gpgArguments>
  614. <arg>--pinentry-mode</arg>
  615. <arg>loopback</arg>
  616. </gpgArguments>
  617. </configuration>
  618. </execution>
  619. </executions>
  620. </plugin>
  621. </plugins>
  622. </build>
  623. </profile>
  624. </profiles>
  625. </project>