2
0

pom.xml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  2. <modelVersion>4.0.0</modelVersion>
  3. <parent>
  4. <artifactId>config-generator</artifactId>
  5. <groupId>com.scytl.products.ov</groupId>
  6. <version>2.1.6</version>
  7. </parent>
  8. <artifactId>config-platformroot</artifactId>
  9. <name>Secure Data Manager - Configuration Generator - Platformroot</name>
  10. <properties>
  11. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  12. </properties>
  13. <!-- -->
  14. <dependencies>
  15. <!-- ONLINE VOTING -->
  16. <dependency>
  17. <groupId>com.scytl.products.ov</groupId>
  18. <artifactId>config-commons</artifactId>
  19. <version>${project.version}</version>
  20. </dependency>
  21. <dependency>
  22. <groupId>com.scytl.products.ov</groupId>
  23. <artifactId>config-shares</artifactId>
  24. <version>${project.version}</version>
  25. </dependency>
  26. <dependency>
  27. <groupId>com.scytl.products.ov.channel.commons</groupId>
  28. <artifactId>ov-commons-infrastructure</artifactId>
  29. </dependency>
  30. <!-- retrofit -->
  31. <dependency>
  32. <groupId>com.squareup.retrofit2</groupId>
  33. <artifactId>retrofit</artifactId>
  34. </dependency>
  35. <dependency>
  36. <groupId>com.squareup.retrofit2</groupId>
  37. <artifactId>converter-jackson</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>com.squareup.okhttp3</groupId>
  41. <artifactId>okhttp</artifactId>
  42. <version>${okhttp.version}</version>
  43. </dependency>
  44. <!-- other dependencies -->
  45. <dependency>
  46. <groupId>commons-cli</groupId>
  47. <artifactId>commons-cli</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>com.fasterxml.jackson.core</groupId>
  51. <artifactId>jackson-databind</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>com.scytl.math</groupId>
  55. <artifactId>scytl-math</artifactId>
  56. <scope>runtime</scope>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.bouncycastle</groupId>
  60. <artifactId>bcpkix-jdk15on</artifactId>
  61. </dependency>
  62. <!-- testing dependencies -->
  63. <dependency>
  64. <groupId>com.scytl.products.ov.channel.commons</groupId>
  65. <artifactId>ov-commons-infrastructure</artifactId>
  66. <version>${ov-channel.version}</version>
  67. <type>test-jar</type>
  68. <scope>test</scope>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.jmockit</groupId>
  72. <artifactId>jmockit</artifactId>
  73. <scope>test</scope>
  74. </dependency>
  75. <dependency>
  76. <groupId>junit</groupId>
  77. <artifactId>junit</artifactId>
  78. <scope>test</scope>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.mockito</groupId>
  82. <artifactId>mockito-core</artifactId>
  83. <scope>test</scope>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.bouncycastle</groupId>
  87. <artifactId>bcprov-jdk15on</artifactId>
  88. <scope>test</scope>
  89. </dependency>
  90. </dependencies>
  91. <build>
  92. <resources>
  93. <resource>
  94. <directory>src/main/resources</directory>
  95. <filtering>true</filtering>
  96. <includes>
  97. <include>**/version.txt</include>
  98. </includes>
  99. </resource>
  100. <resource>
  101. <directory>src/main/resources</directory>
  102. <filtering>false</filtering>
  103. <excludes>
  104. <exclude>**/version.txt</exclude>
  105. </excludes>
  106. </resource>
  107. </resources>
  108. <plugins>
  109. <plugin>
  110. <groupId>org.apache.maven.plugins</groupId>
  111. <artifactId>maven-assembly-plugin</artifactId>
  112. <configuration>
  113. <attach>true</attach>
  114. <descriptors>
  115. <descriptor>src/main/resources/distribution.xml</descriptor>
  116. </descriptors>
  117. </configuration>
  118. <executions>
  119. <execution>
  120. <id>create-archive</id>
  121. <!-- this is used for inheritance merges -->
  122. <phase>verify</phase>
  123. <!-- bind to the packaging phase -->
  124. <goals>
  125. <goal>single</goal>
  126. </goals>
  127. </execution>
  128. </executions>
  129. </plugin>
  130. <plugin>
  131. <groupId>org.codehaus.mojo</groupId>
  132. <artifactId>appassembler-maven-plugin</artifactId>
  133. <executions>
  134. <execution>
  135. <id>assemble-standalone</id>
  136. <phase>package</phase>
  137. <goals>
  138. <goal>assemble</goal>
  139. </goals>
  140. <configuration>
  141. <programs>
  142. <program>
  143. <name>configPlatformRoot</name>
  144. <mainClass>com.scytl.products.ov.config.Application</mainClass>
  145. </program>
  146. </programs>
  147. <binFileExtensions>
  148. <unix>.sh</unix>
  149. </binFileExtensions>
  150. <repositoryLayout>flat</repositoryLayout>
  151. <repositoryName>lib</repositoryName>
  152. <configurationDirectory>properties</configurationDirectory>
  153. <copyConfigurationDirectory>true</copyConfigurationDirectory>
  154. <!--<configurationSourceDirectory>../config-engine/src/main/resources/properties</configurationSourceDirectory>-->
  155. </configuration>
  156. </execution>
  157. </executions>
  158. </plugin>
  159. <plugin>
  160. <groupId>org.codehaus.mojo</groupId>
  161. <artifactId>build-helper-maven-plugin</artifactId>
  162. <executions>
  163. <execution>
  164. <id>attach-distribution</id>
  165. <phase>package</phase>
  166. <goals>
  167. <goal>attach-artifact</goal>
  168. </goals>
  169. <configuration>
  170. <artifacts>
  171. <artifact>
  172. <file>target/${project.artifactId}-${project.version}-distribution.zip</file>
  173. <type>zip</type>
  174. </artifact>
  175. </artifacts>
  176. </configuration>
  177. </execution>
  178. </executions>
  179. </plugin>
  180. </plugins>
  181. </build>
  182. </project>