pom.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. <?xml version="1.0"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>com.scytl.products.ov.sdm</groupId>
  7. <artifactId>ov-secure-data-manager-backend</artifactId>
  8. <version>2.1.6</version>
  9. </parent>
  10. <groupId>com.scytl.products.ov.sdm.ui</groupId>
  11. <artifactId>sdm-ws-rest</artifactId>
  12. <name>Secure Data Manager - Backend - Rest Webservices</name>
  13. <packaging>jar</packaging>
  14. <dependencies>
  15. <!-- Local dependencies -->
  16. <dependency>
  17. <groupId>com.scytl.products.ov.sdm.services</groupId>
  18. <artifactId>secure-data-manager-services</artifactId>
  19. <version>${project.version}</version>
  20. <exclusions>
  21. <exclusion>
  22. <groupId>org.codehaus.groovy</groupId>
  23. <artifactId>groovy</artifactId>
  24. </exclusion>
  25. <exclusion>
  26. <groupId>org.springframework</groupId>
  27. <artifactId>spring-tx</artifactId>
  28. </exclusion>
  29. <exclusion>
  30. <groupId>commons-collections</groupId>
  31. <artifactId>commons-collections</artifactId>
  32. </exclusion>
  33. </exclusions>
  34. </dependency>
  35. <dependency>
  36. <groupId>com.scytl.products.ov.channel.commons</groupId>
  37. <artifactId>ov-commons-dto</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.apache.tomcat</groupId>
  41. <artifactId>tomcat-juli</artifactId>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.codehaus.groovy</groupId>
  45. <artifactId>groovy</artifactId>
  46. </dependency>
  47. <dependency>
  48. <groupId>io.springfox</groupId>
  49. <artifactId>springfox-swagger2</artifactId>
  50. <version>${swagger.springfox.version}</version>
  51. <exclusions>
  52. <exclusion>
  53. <groupId>com.fasterxml.jackson.core</groupId>
  54. <artifactId>jackson-annotations</artifactId>
  55. </exclusion>
  56. </exclusions>
  57. </dependency>
  58. <dependency>
  59. <groupId>com.fasterxml.jackson.core</groupId>
  60. <artifactId>jackson-annotations</artifactId>
  61. </dependency>
  62. <dependency>
  63. <groupId>com.scytl.math</groupId>
  64. <artifactId>scytl-math</artifactId>
  65. <scope>runtime</scope>
  66. </dependency>
  67. <dependency>
  68. <groupId>com.scytl.cryptolib</groupId>
  69. <artifactId>cryptolib-certificates</artifactId>
  70. <type>test-jar</type>
  71. <scope>test</scope>
  72. </dependency>
  73. <!-- Used to allow pooling in spring rest client -->
  74. <dependency>
  75. <groupId>org.apache.httpcomponents</groupId>
  76. <artifactId>httpclient</artifactId>
  77. </dependency>
  78. <!-- Testing -->
  79. <dependency>
  80. <groupId>org.mockito</groupId>
  81. <artifactId>mockito-core</artifactId>
  82. <scope>test</scope>
  83. </dependency>
  84. <dependency>
  85. <groupId>junit</groupId>
  86. <artifactId>junit</artifactId>
  87. <scope>test</scope>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.springframework.boot</groupId>
  91. <artifactId>spring-boot-starter-web</artifactId>
  92. <exclusions>
  93. <exclusion>
  94. <groupId>com.fasterxml.jackson.core</groupId>
  95. <artifactId>jackson-databind</artifactId>
  96. </exclusion>
  97. <exclusion>
  98. <groupId>ch.qos.logback</groupId>
  99. <artifactId>logback-classic</artifactId>
  100. </exclusion>
  101. </exclusions>
  102. </dependency>
  103. <dependency>
  104. <groupId>ch.qos.logback</groupId>
  105. <artifactId>logback-classic</artifactId>
  106. </dependency>
  107. <dependency>
  108. <groupId>ch.qos.logback</groupId>
  109. <artifactId>logback-core</artifactId>
  110. </dependency>
  111. </dependencies>
  112. <build>
  113. <finalName>${project.artifactId}</finalName>
  114. <plugins>
  115. <plugin>
  116. <groupId>org.springframework.boot</groupId>
  117. <artifactId>spring-boot-maven-plugin</artifactId>
  118. <version>${spring-boot.version}</version>
  119. <configuration>
  120. <!-- The main class to start by executing java -jar -->
  121. <mainClass>com.scytl.products.ov.sdm.ui.ws.rs.application.Application</mainClass>
  122. </configuration>
  123. <executions>
  124. <execution>
  125. <goals>
  126. <goal>repackage</goal>
  127. </goals>
  128. </execution>
  129. </executions>
  130. </plugin>
  131. <plugin>
  132. <artifactId>maven-resources-plugin</artifactId>
  133. <version>2.7</version>
  134. <executions>
  135. <execution>
  136. <id>copy-resources</id>
  137. <!-- here the phase you need -->
  138. <phase>package</phase>
  139. <goals>
  140. <goal>copy-resources</goal>
  141. </goals>
  142. <configuration>
  143. <outputDirectory>${basedir}/target/sdmConfig</outputDirectory>
  144. <resources>
  145. <resource>
  146. <directory>sdmConfig</directory>
  147. </resource>
  148. </resources>
  149. </configuration>
  150. </execution>
  151. </executions>
  152. </plugin>
  153. <plugin>
  154. <artifactId>maven-assembly-plugin</artifactId>
  155. <configuration>
  156. <descriptor>assembly/package.xml</descriptor>
  157. <appendAssemblyId>false</appendAssemblyId>
  158. <finalName>sdmConfig</finalName>
  159. </configuration>
  160. <executions>
  161. <execution>
  162. <id>create-archive</id>
  163. <phase>package</phase>
  164. <goals>
  165. <goal>single</goal>
  166. </goals>
  167. </execution>
  168. </executions>
  169. </plugin>
  170. <!-- Cobertura Coverage -->
  171. <plugin>
  172. <groupId>org.codehaus.mojo</groupId>
  173. <artifactId>cobertura-maven-plugin</artifactId>
  174. <version>2.7</version>
  175. <configuration>
  176. <formats>
  177. <format>html</format>
  178. <format>xml</format>
  179. </formats>
  180. <check />
  181. </configuration>
  182. </plugin>
  183. <plugin>
  184. <groupId>com.github.kongchen</groupId>
  185. <artifactId>swagger-maven-plugin</artifactId>
  186. <version>${swagger.mavenplugin.version}</version>
  187. <configuration>
  188. <apiSources>
  189. <apiSource>
  190. <springmvc>true</springmvc>
  191. <locations>com.scytl.products.ov.sdm</locations>
  192. <schemes>http,https</schemes>
  193. <host>localhost:8090</host>
  194. <basePath />
  195. <info>
  196. <title>Secure Data Manager</title>
  197. <version>v1</version>
  198. <description>Secure Data Manager REST API</description>
  199. <termsOfService>
  200. http://www.scytl.com/terms-of-service
  201. </termsOfService>
  202. <contact>
  203. <email>product.ov@scytl.com</email>
  204. <name>Scytl Product - Online Voting Product</name>
  205. <url />
  206. </contact>
  207. <license>
  208. <url>http://www.scytl.com/licenses</url>
  209. <name>Scytl License</name>
  210. </license>
  211. </info>
  212. <swaggerDirectory>${basedir}/target/generated/swagger-ui</swaggerDirectory>
  213. </apiSource>
  214. </apiSources>
  215. </configuration>
  216. <executions>
  217. <execution>
  218. <phase>compile</phase>
  219. <goals>
  220. <goal>generate</goal>
  221. </goals>
  222. </execution>
  223. </executions>
  224. </plugin>
  225. </plugins>
  226. </build>
  227. </project>