2
0

pom.xml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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.mixing</groupId>
  7. <artifactId>mixing</artifactId>
  8. <version>0.3.2</version>
  9. </parent>
  10. <artifactId>mixing-spring</artifactId>
  11. <name>Online Voting - Mixnet - Spring</name>
  12. <properties>
  13. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  14. </properties>
  15. <dependencies>
  16. <!-- internal project dependencies -->
  17. <dependency>
  18. <groupId>com.scytl.mixing</groupId>
  19. <artifactId>mixing-engine</artifactId>
  20. <version>${project.version}</version>
  21. </dependency>
  22. <dependency>
  23. <groupId>com.scytl.mixing</groupId>
  24. <artifactId>mixing-commons</artifactId>
  25. <version>${project.version}</version>
  26. </dependency>
  27. <dependency>
  28. <groupId>com.scytl.math</groupId>
  29. <artifactId>scytl-math</artifactId>
  30. <scope>provided</scope>
  31. </dependency>
  32. <dependency>
  33. <groupId>com.scytl.mixing</groupId>
  34. <artifactId>mixing-commons</artifactId>
  35. <version>${project.version}</version>
  36. <type>test-jar</type>
  37. <scope>test</scope>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.springframework</groupId>
  41. <artifactId>spring-context</artifactId>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.springframework</groupId>
  45. <artifactId>spring-test</artifactId>
  46. <scope>test</scope>
  47. </dependency>
  48. </dependencies>
  49. <build>
  50. <resources>
  51. <resource>
  52. <directory>src/main/resources</directory>
  53. <filtering>true</filtering>
  54. <includes>
  55. <include>**/version.txt</include>
  56. </includes>
  57. </resource>
  58. <resource>
  59. <directory>src/main/resources</directory>
  60. <filtering>false</filtering>
  61. <excludes>
  62. <exclude>**/version.txt</exclude>
  63. </excludes>
  64. </resource>
  65. </resources>
  66. <plugins>
  67. <plugin>
  68. <groupId>org.apache.maven.plugins</groupId>
  69. <artifactId>maven-assembly-plugin</artifactId>
  70. <configuration>
  71. <attach>true</attach>
  72. <descriptors>
  73. <descriptor>src/main/resources/distribution.xml</descriptor>
  74. </descriptors>
  75. </configuration>
  76. <executions>
  77. <execution>
  78. <id>create-archive</id>
  79. <!-- this is used for inheritance merges -->
  80. <phase>verify</phase>
  81. <!-- bind to the packaging phase -->
  82. <goals>
  83. <goal>single</goal>
  84. </goals>
  85. </execution>
  86. </executions>
  87. </plugin>
  88. <plugin>
  89. <groupId>org.codehaus.mojo</groupId>
  90. <artifactId>appassembler-maven-plugin</artifactId>
  91. <executions>
  92. <execution>
  93. <id>assemble-standalone-windows</id>
  94. <phase>package</phase>
  95. <goals>
  96. <goal>assemble</goal>
  97. </goals>
  98. <configuration>
  99. <extraJvmArguments>-Djava.library.path=%USER_NATIVE_LIBRARIES_DIRECTORY%</extraJvmArguments>
  100. <programs>
  101. <program>
  102. <platforms>
  103. <platform>windows</platform>
  104. </platforms>
  105. <name>mixnet</name>
  106. <mainClass>com.scytl.products.ov.mixnet.Application</mainClass>
  107. </program>
  108. </programs>
  109. <repositoryLayout>flat</repositoryLayout>
  110. <repositoryName>lib</repositoryName>
  111. <configurationDirectory>properties</configurationDirectory>
  112. <binFileExtensions>
  113. <unix>.sh</unix>
  114. </binFileExtensions>
  115. <copyConfigurationDirectory>true</copyConfigurationDirectory>
  116. <configurationSourceDirectory>src/main/resources</configurationSourceDirectory>
  117. </configuration>
  118. </execution>
  119. <execution>
  120. <id>assemble-standalone-unix</id>
  121. <phase>package</phase>
  122. <goals>
  123. <goal>assemble</goal>
  124. </goals>
  125. <configuration>
  126. <extraJvmArguments>-Djava.library.path=$USER_NATIVE_LIBRARIES_DIRECTORY</extraJvmArguments>
  127. <programs>
  128. <program>
  129. <platforms>
  130. <platform>unix</platform>
  131. </platforms>
  132. <name>mixnet</name>
  133. <mainClass>com.scytl.products.ov.mixnet.Application</mainClass>
  134. </program>
  135. </programs>
  136. <repositoryLayout>flat</repositoryLayout>
  137. <repositoryName>lib</repositoryName>
  138. <configurationDirectory>properties</configurationDirectory>
  139. <binFileExtensions>
  140. <unix>.sh</unix>
  141. </binFileExtensions>
  142. <copyConfigurationDirectory>true</copyConfigurationDirectory>
  143. <configurationSourceDirectory>src/main/resources</configurationSourceDirectory>
  144. </configuration>
  145. </execution>
  146. </executions>
  147. </plugin>
  148. <plugin>
  149. <groupId>org.codehaus.mojo</groupId>
  150. <artifactId>build-helper-maven-plugin</artifactId>
  151. <executions>
  152. <execution>
  153. <id>attach-distribution</id>
  154. <phase>package</phase>
  155. <goals>
  156. <goal>attach-artifact</goal>
  157. </goals>
  158. <configuration>
  159. <artifacts>
  160. <artifact>
  161. <file>target/${project.artifactId}-${project.version}-distribution.zip</file>
  162. <type>zip</type>
  163. </artifact>
  164. </artifacts>
  165. </configuration>
  166. </execution>
  167. </executions>
  168. </plugin>
  169. <plugin>
  170. <groupId>org.apache.maven.plugins</groupId>
  171. <artifactId>maven-failsafe-plugin</artifactId>
  172. <configuration>
  173. </configuration>
  174. </plugin>
  175. <plugin>
  176. <groupId>org.apache.maven.plugins</groupId>
  177. <artifactId>maven-surefire-plugin</artifactId>
  178. </plugin>
  179. </plugins>
  180. </build>
  181. </project>