pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451
  1. <?xml version="1.0" encoding="UTF-8"?>
  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</groupId>
  7. <artifactId>maven-dependencies</artifactId>
  8. <version>1.3.2</version>
  9. </parent>
  10. <groupId>com.scytl.mixing</groupId>
  11. <artifactId>mixing</artifactId>
  12. <packaging>pom</packaging>
  13. <version>0.3.2</version>
  14. <name>Online Voting Mixing</name>
  15. <description>Bayer and Groth Mix-net</description>
  16. <scm>
  17. <connection>scm:git:ssh://git@scm.scytl.net:7999/comp/online-voting-mixing.git</connection>
  18. <developerConnection>scm:git:ssh://git@scm.scytl.net:7999/comp/online-voting-mixing.git
  19. </developerConnection>
  20. <url>https://scm.scytl.net/stash/projects/COMP/repos/online-voting-mixing/browse</url>
  21. <tag>HEAD</tag>
  22. </scm>
  23. <properties>
  24. <skip.jacoco>false</skip.jacoco>
  25. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  26. <surfire.version>2.17</surfire.version>
  27. <javac.version>1.8</javac.version>
  28. <maven.compiler.source>1.8</maven.compiler.source>
  29. <maven.compiler.target>1.8</maven.compiler.target>
  30. <cryptolib.version>2.1.5-4</cryptolib.version>
  31. <slf4j-api.version>1.7.10</slf4j-api.version>
  32. <logging.version>1.4.2</logging.version>
  33. <scytl-math.version>1.0.1</scytl-math.version>
  34. <bouncycastle.version>1.59</bouncycastle.version>
  35. <jackson.version>2.8.9</jackson.version>
  36. <spring.version>4.3.10.RELEASE</spring.version>
  37. </properties>
  38. <dependencyManagement>
  39. <dependencies>
  40. <!-- Logging -->
  41. <dependency>
  42. <groupId>org.slf4j</groupId>
  43. <artifactId>slf4j-api</artifactId>
  44. <version>${slf4j-api.version}</version>
  45. </dependency>
  46. <dependency>
  47. <groupId>com.scytl.products.oscore</groupId>
  48. <artifactId>logging-core</artifactId>
  49. <version>${logging.version}</version>
  50. </dependency>
  51. <!-- other dependencies -->
  52. <dependency>
  53. <groupId>org.apache.commons</groupId>
  54. <artifactId>commons-lang3</artifactId>
  55. <version>3.3.2</version>
  56. </dependency>
  57. <dependency>
  58. <groupId>commons-io</groupId>
  59. <artifactId>commons-io</artifactId>
  60. <version>2.4</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>commons-cli</groupId>
  64. <artifactId>commons-cli</artifactId>
  65. <version>1.2</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.openjdk.jmh</groupId>
  69. <artifactId>jmh-core</artifactId>
  70. <version>1.6.2</version>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.bouncycastle</groupId>
  74. <artifactId>bcprov-jdk15on</artifactId>
  75. <version>${bouncycastle.version}</version>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.bouncycastle</groupId>
  79. <artifactId>bcpkix-jdk15on</artifactId>
  80. <version>${bouncycastle.version}</version>
  81. <exclusions>
  82. <exclusion>
  83. <groupId>org.bouncycastle</groupId>
  84. <artifactId>bcprov-jdk15on</artifactId>
  85. </exclusion>
  86. </exclusions>
  87. </dependency>
  88. <dependency>
  89. <groupId>com.googlecode.jcsv</groupId>
  90. <artifactId>jcsv</artifactId>
  91. <version>1.4.0</version>
  92. </dependency>
  93. <dependency>
  94. <groupId>com.fasterxml.jackson.core</groupId>
  95. <artifactId>jackson-databind</artifactId>
  96. <version>${jackson.version}</version>
  97. </dependency>
  98. <dependency>
  99. <groupId>com.fasterxml.jackson.core</groupId>
  100. <artifactId>jackson-core</artifactId>
  101. <version>${jackson.version}</version>
  102. </dependency>
  103. <dependency>
  104. <groupId>com.fasterxml.jackson.core</groupId>
  105. <artifactId>jackson-annotations</artifactId>
  106. <version>${jackson.version}</version>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.apache.maven.surefire</groupId>
  110. <artifactId>surefire-junit47</artifactId>
  111. <version>2.18.1</version>
  112. </dependency>
  113. <dependency>
  114. <groupId>commons-configuration</groupId>
  115. <artifactId>commons-configuration</artifactId>
  116. <version>1.10</version>
  117. </dependency>
  118. <dependency>
  119. <groupId>com.scytl.math</groupId>
  120. <artifactId>scytl-math</artifactId>
  121. <version>${scytl-math.version}</version>
  122. </dependency>
  123. <dependency>
  124. <groupId>com.scytl.cryptolib</groupId>
  125. <artifactId>cryptolib-api-elgamal</artifactId>
  126. <version>${cryptolib.version}</version>
  127. </dependency>
  128. <dependency>
  129. <groupId>com.google.code.findbugs</groupId>
  130. <artifactId>jsr305</artifactId>
  131. <version>3.0.2</version>
  132. <scope>provided</scope>
  133. <optional>true</optional>
  134. </dependency>
  135. <!-- testing dependencies -->
  136. <dependency>
  137. <groupId>org.jmockit</groupId>
  138. <artifactId>jmockit</artifactId>
  139. <version>1.17</version>
  140. <scope>test</scope>
  141. </dependency>
  142. <dependency>
  143. <groupId>junit</groupId>
  144. <artifactId>junit</artifactId>
  145. <version>4.12</version>
  146. <scope>test</scope>
  147. </dependency>
  148. <dependency>
  149. <groupId>org.hamcrest</groupId>
  150. <artifactId>hamcrest-all</artifactId>
  151. <version>1.3</version>
  152. <scope>test</scope>
  153. </dependency>
  154. <dependency>
  155. <groupId>org.openjdk.jmh</groupId>
  156. <artifactId>jmh-generator-annprocess</artifactId>
  157. <version>1.6.2</version>
  158. <scope>provided</scope>
  159. </dependency>
  160. <dependency>
  161. <groupId>org.mockito</groupId>
  162. <artifactId>mockito-core</artifactId>
  163. <version>2.7.5</version>
  164. <scope>test</scope>
  165. </dependency>
  166. <!-- spring dependencies -->
  167. <dependency>
  168. <groupId>org.springframework</groupId>
  169. <artifactId>spring-context</artifactId>
  170. <version>${spring.version}</version>
  171. </dependency>
  172. <dependency>
  173. <groupId>org.springframework</groupId>
  174. <artifactId>spring-tx</artifactId>
  175. <version>${spring.version}</version>
  176. </dependency>
  177. <dependency>
  178. <groupId>org.springframework</groupId>
  179. <artifactId>spring-test</artifactId>
  180. <version>${spring.version}</version>
  181. </dependency>
  182. <dependency>
  183. <groupId>org.springframework</groupId>
  184. <artifactId>spring-aop</artifactId>
  185. <version>${spring.version}</version>
  186. </dependency>
  187. <dependency>
  188. <groupId>org.springframework</groupId>
  189. <artifactId>spring-beans</artifactId>
  190. <version>${spring.version}</version>
  191. </dependency>
  192. <dependency>
  193. <groupId>org.springframework</groupId>
  194. <artifactId>spring-core</artifactId>
  195. <version>${spring.version}</version>
  196. </dependency>
  197. <dependency>
  198. <groupId>org.springframework.batch</groupId>
  199. <artifactId>spring-batch-core</artifactId>
  200. <version>${spring.batch.version}</version>
  201. <exclusions>
  202. <exclusion>
  203. <groupId>org.springframework</groupId>
  204. <artifactId>spring-aop</artifactId>
  205. </exclusion>
  206. <exclusion>
  207. <groupId>org.springframework</groupId>
  208. <artifactId>spring-beans</artifactId>
  209. </exclusion>
  210. <exclusion>
  211. <groupId>org.springframework</groupId>
  212. <artifactId>spring-core</artifactId>
  213. </exclusion>
  214. <exclusion>
  215. <groupId>org.springframework</groupId>
  216. <artifactId>spring-context</artifactId>
  217. </exclusion>
  218. <exclusion>
  219. <groupId>org.springframework</groupId>
  220. <artifactId>spring-tx</artifactId>
  221. </exclusion>
  222. </exclusions>
  223. </dependency>
  224. <!-- CryptoLib dependencies -->
  225. <dependency>
  226. <artifactId>cryptolib-elgamal</artifactId>
  227. <groupId>com.scytl.cryptolib</groupId>
  228. <version>${cryptolib.version}</version>
  229. </dependency>
  230. <dependency>
  231. <artifactId>cryptolib-proofs</artifactId>
  232. <groupId>com.scytl.cryptolib</groupId>
  233. <version>${cryptolib.version}</version>
  234. </dependency>
  235. </dependencies>
  236. </dependencyManagement>
  237. <modules>
  238. <module>mixnet-commons</module>
  239. <module>mixnet-shuffler</module>
  240. <module>mixnet-prover</module>
  241. <module>mixnet-mixer</module>
  242. <module>mixnet-verifier</module>
  243. <module>mixnet-engine</module>
  244. <module>mixing-commons</module>
  245. <module>mixing-prover</module>
  246. <module>mixing-core</module>
  247. <module>mixnet-spring</module>
  248. <module>mixnet-tools</module>
  249. </modules>
  250. <build>
  251. <pluginManagement>
  252. <plugins>
  253. <plugin>
  254. <groupId>org.apache.maven.plugins</groupId>
  255. <artifactId>maven-site-plugin</artifactId>
  256. <version>3.4</version>
  257. </plugin>
  258. <plugin>
  259. <groupId>org.apache.maven.plugins</groupId>
  260. <artifactId>maven-release-plugin</artifactId>
  261. <version>2.5</version>
  262. <configuration>
  263. <preparationGoals>clean replacer:replace verify</preparationGoals>
  264. </configuration>
  265. </plugin>
  266. <plugin>
  267. <groupId>org.apache.maven.plugins</groupId>
  268. <artifactId>maven-failsafe-plugin</artifactId>
  269. <version>2.17</version>
  270. </plugin>
  271. <plugin>
  272. <groupId>org.apache.maven.plugins</groupId>
  273. <artifactId>maven-surefire-plugin</artifactId>
  274. <version>2.18.1</version>
  275. </plugin>
  276. <plugin>
  277. <groupId>org.apache.maven.plugins</groupId>
  278. <artifactId>maven-shade-plugin</artifactId>
  279. <version>2.2</version>
  280. </plugin>
  281. </plugins>
  282. </pluginManagement>
  283. <plugins>
  284. <plugin>
  285. <groupId>com.mycila.maven-license-plugin</groupId>
  286. <artifactId>maven-license-plugin</artifactId>
  287. <version>1.9.0</version>
  288. <configuration>
  289. <headerDefinitions>
  290. <headerDefinition>licensePattern.xml</headerDefinition>
  291. </headerDefinitions>
  292. <mapping>
  293. <javadoc_style>JAVADOC_STYLE</javadoc_style>
  294. </mapping>
  295. <header>${basedir}/LICENSE</header>
  296. <includes>
  297. <include>**/*.java</include>
  298. <include>**/*.xml</include>
  299. <include>**/*.properties</include>
  300. <include>**/*.js</include>
  301. </includes>
  302. <excludes>
  303. <exclude>**/.*/**</exclude>
  304. <exclude>target/**</exclude>
  305. <exclude>bower_components/**</exclude>
  306. <exclude>build/**</exclude>
  307. <exclude>dist/**</exclude>
  308. <exclude>node_modules/**</exclude>
  309. <exclude>release/**</exclude>
  310. </excludes>
  311. <properties>
  312. <currentYear>2018</currentYear>
  313. </properties>
  314. <useDefaultExcludes>true</useDefaultExcludes>
  315. <strictCheck>true</strictCheck>
  316. </configuration>
  317. <executions>
  318. <execution>
  319. <goals>
  320. <goal>check</goal>
  321. </goals>
  322. </execution>
  323. </executions>
  324. </plugin>
  325. </plugins>
  326. </build>
  327. <dependencies>
  328. <!-- Test dependencies -->
  329. <dependency>
  330. <groupId>org.jmockit</groupId>
  331. <artifactId>jmockit</artifactId>
  332. <scope>test</scope>
  333. </dependency>
  334. <dependency>
  335. <groupId>junit</groupId>
  336. <artifactId>junit</artifactId>
  337. <scope>test</scope>
  338. </dependency>
  339. </dependencies>
  340. <profiles>
  341. <profile>
  342. <id>all</id>
  343. <build>
  344. <plugins>
  345. <plugin>
  346. <groupId>org.apache.maven.plugins</groupId>
  347. <artifactId>maven-surefire-plugin</artifactId>
  348. <configuration>
  349. <includes>
  350. <include>**/*.java</include>
  351. </includes>
  352. </configuration>
  353. </plugin>
  354. </plugins>
  355. </build>
  356. </profile>
  357. <profile>
  358. <id>ultraSlow</id>
  359. <build>
  360. <plugins>
  361. <plugin>
  362. <groupId>org.apache.maven.plugins</groupId>
  363. <artifactId>maven-surefire-plugin</artifactId>
  364. <dependencies>
  365. <dependency>
  366. <groupId>org.apache.maven.surefire</groupId>
  367. <artifactId>surefire-junit47</artifactId>
  368. <version>2.18.1</version>
  369. </dependency>
  370. </dependencies>
  371. <configuration>
  372. <groups>com.scytl.products.ov.mixnet.commons.tests.categories.UltraSlowTest</groups>
  373. <includes>
  374. <include>**/*.java</include>
  375. </includes>
  376. </configuration>
  377. </plugin>
  378. </plugins>
  379. </build>
  380. </profile>
  381. <profile>
  382. <id>slow</id>
  383. <build>
  384. <plugins>
  385. <plugin>
  386. <groupId>org.apache.maven.plugins</groupId>
  387. <artifactId>maven-surefire-plugin</artifactId>
  388. <dependencies>
  389. <dependency>
  390. <groupId>org.apache.maven.surefire</groupId>
  391. <artifactId>surefire-junit47</artifactId>
  392. <version>2.18.1</version>
  393. </dependency>
  394. </dependencies>
  395. <configuration>
  396. <groups>com.scytl.products.ov.mixnet.commons.tests.categories.SlowTest</groups>
  397. <includes>
  398. <include>**/*.java</include>
  399. </includes>
  400. </configuration>
  401. </plugin>
  402. </plugins>
  403. </build>
  404. </profile>
  405. <profile>
  406. <activation>
  407. <activeByDefault>true</activeByDefault>
  408. </activation>
  409. <id>fast</id>
  410. <build>
  411. <plugins>
  412. <plugin>
  413. <groupId>org.apache.maven.plugins</groupId>
  414. <artifactId>maven-surefire-plugin</artifactId>
  415. <dependencies>
  416. <dependency>
  417. <groupId>org.apache.maven.surefire</groupId>
  418. <artifactId>surefire-junit47</artifactId>
  419. <version>2.18.1</version>
  420. </dependency>
  421. </dependencies>
  422. <configuration>
  423. <excludedGroups>
  424. com.scytl.products.ov.mixnet.commons.tests.categories.SlowTest,
  425. com.scytl.products.ov.mixnet.commons.tests.categories.UltraSlowTest
  426. </excludedGroups>
  427. <includes>
  428. <include>**/*.java</include>
  429. </includes>
  430. </configuration>
  431. </plugin>
  432. </plugins>
  433. </build>
  434. </profile>
  435. </profiles>
  436. </project>