pom.xml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>com.scytl.mixing</groupId>
  6. <artifactId>mixing</artifactId>
  7. <version>0.3.2</version>
  8. </parent>
  9. <artifactId>mixing-engine</artifactId>
  10. <name>Online Voting - Mixing - Engine</name>
  11. <properties>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. </properties>
  14. <dependencies>
  15. <!-- internal project dependencies-->
  16. <dependency>
  17. <groupId>com.scytl.mixing</groupId>
  18. <artifactId>mixing-verifier</artifactId>
  19. <version>${project.version}</version>
  20. </dependency>
  21. <dependency>
  22. <groupId>com.scytl.mixing</groupId>
  23. <artifactId>mixing-mixer</artifactId>
  24. <version>${project.version}</version>
  25. </dependency>
  26. <dependency>
  27. <groupId>com.scytl.cryptolib</groupId>
  28. <artifactId>cryptolib-proofs</artifactId>
  29. </dependency>
  30. <!-- other dependencies -->
  31. <dependency>
  32. <groupId>org.bouncycastle</groupId>
  33. <artifactId>bcpkix-jdk15on</artifactId>
  34. <scope>compile</scope>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.bouncycastle</groupId>
  38. <artifactId>bcprov-jdk15on</artifactId>
  39. <scope>compile</scope>
  40. </dependency>
  41. <dependency>
  42. <groupId>com.googlecode.jcsv</groupId>
  43. <artifactId>jcsv</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>com.scytl.math</groupId>
  47. <artifactId>scytl-math</artifactId>
  48. <scope>provided</scope>
  49. </dependency>
  50. <!-- testing dependencies -->
  51. <dependency>
  52. <groupId>org.hamcrest</groupId>
  53. <artifactId>hamcrest-all</artifactId>
  54. <scope>test</scope>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.mockito</groupId>
  58. <artifactId>mockito-core</artifactId>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.mockito</groupId>
  62. <artifactId>mockito-all</artifactId>
  63. <version>RELEASE</version>
  64. </dependency>
  65. </dependencies>
  66. <profiles>
  67. <profile>
  68. <id>skipTestRun</id>
  69. <activation>
  70. <property>
  71. <name>skipTests</name>
  72. <value>!true</value>
  73. </property>
  74. </activation>
  75. <dependencies>
  76. <dependency>
  77. <groupId>com.scytl.mixing</groupId>
  78. <artifactId>mixing-commons</artifactId>
  79. <version>${project.version}</version>
  80. <type>test-jar</type>
  81. <scope>test</scope>
  82. </dependency>
  83. </dependencies>
  84. </profile>
  85. </profiles>
  86. <build>
  87. <resources>
  88. <resource>
  89. <directory>src/main/resources</directory>
  90. <filtering>true</filtering>
  91. <includes>
  92. <include>**/version.txt</include>
  93. </includes>
  94. </resource>
  95. <resource>
  96. <directory>src/main/resources</directory>
  97. <filtering>false</filtering>
  98. <excludes>
  99. <exclude>**/version.txt</exclude>
  100. </excludes>
  101. </resource>
  102. </resources>
  103. <plugins>
  104. <plugin>
  105. <groupId>org.apache.maven.plugins</groupId>
  106. <artifactId>maven-assembly-plugin</artifactId>
  107. <configuration>
  108. <attach>true</attach>
  109. <descriptors>
  110. <descriptor>src/main/resources/distribution.xml</descriptor>
  111. </descriptors>
  112. </configuration>
  113. <executions>
  114. <execution>
  115. <id>create-archive</id>
  116. <!-- this is used for inheritance merges -->
  117. <phase>verify</phase>
  118. <!-- bind to the packaging phase -->
  119. <goals>
  120. <goal>single</goal>
  121. </goals>
  122. </execution>
  123. </executions>
  124. </plugin>
  125. <plugin>
  126. <groupId>org.codehaus.mojo</groupId>
  127. <artifactId>appassembler-maven-plugin</artifactId>
  128. <executions>
  129. <execution>
  130. <id>assemble-standalone-windows</id>
  131. <phase>package</phase>
  132. <goals>
  133. <goal>assemble</goal>
  134. </goals>
  135. <configuration>
  136. <extraJvmArguments>-Djava.library.path=%USER_NATIVE_LIBRARIES_DIRECTORY%</extraJvmArguments>
  137. <programs>
  138. <program>
  139. <platforms>
  140. <platform>windows</platform>
  141. </platforms>
  142. <name>mixnet</name>
  143. <mainClass>com.scytl.products.ov.mixnet.Application</mainClass>
  144. </program>
  145. </programs>
  146. <repositoryLayout>flat</repositoryLayout>
  147. <repositoryName>lib</repositoryName>
  148. <configurationDirectory>properties</configurationDirectory>
  149. <binFileExtensions>
  150. <unix>.sh</unix>
  151. </binFileExtensions>
  152. <copyConfigurationDirectory>true</copyConfigurationDirectory>
  153. <configurationSourceDirectory>src/main/resources</configurationSourceDirectory>
  154. </configuration>
  155. </execution>
  156. <execution>
  157. <id>assemble-standalone-unix</id>
  158. <phase>package</phase>
  159. <goals>
  160. <goal>assemble</goal>
  161. </goals>
  162. <configuration>
  163. <extraJvmArguments>-Djava.library.path=$USER_NATIVE_LIBRARIES_DIRECTORY</extraJvmArguments>
  164. <programs>
  165. <program>
  166. <platforms>
  167. <platform>unix</platform>
  168. </platforms>
  169. <name>mixnet</name>
  170. <mainClass>com.scytl.products.ov.mixnet.Application</mainClass>
  171. </program>
  172. </programs>
  173. <repositoryLayout>flat</repositoryLayout>
  174. <repositoryName>lib</repositoryName>
  175. <configurationDirectory>properties</configurationDirectory>
  176. <binFileExtensions>
  177. <unix>.sh</unix>
  178. </binFileExtensions>
  179. <copyConfigurationDirectory>true</copyConfigurationDirectory>
  180. <configurationSourceDirectory>src/main/resources</configurationSourceDirectory>
  181. </configuration>
  182. </execution>
  183. </executions>
  184. </plugin>
  185. <plugin>
  186. <groupId>org.codehaus.mojo</groupId>
  187. <artifactId>build-helper-maven-plugin</artifactId>
  188. <executions>
  189. <execution>
  190. <id>attach-distribution</id>
  191. <phase>package</phase>
  192. <goals>
  193. <goal>attach-artifact</goal>
  194. </goals>
  195. <configuration>
  196. <artifacts>
  197. <artifact>
  198. <file>target/${project.artifactId}-${project.version}-distribution.zip</file>
  199. <type>zip</type>
  200. </artifact>
  201. </artifacts>
  202. </configuration>
  203. </execution>
  204. </executions>
  205. </plugin>
  206. <plugin>
  207. <groupId>org.apache.maven.plugins</groupId>
  208. <artifactId>maven-failsafe-plugin</artifactId>
  209. <configuration>
  210. </configuration>
  211. </plugin>
  212. <plugin>
  213. <groupId>org.apache.maven.plugins</groupId>
  214. <artifactId>maven-surefire-plugin</artifactId>
  215. </plugin>
  216. </plugins>
  217. </build>
  218. </project>