pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  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/maven-v4_0_0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>com.scytl</groupId>
  7. <artifactId>maven-generic-conf</artifactId>
  8. <version>1.5.6</version>
  9. </parent>
  10. <groupId>com.scytl.cryptolib</groupId>
  11. <artifactId>cryptolib</artifactId>
  12. <version>2.1.5-4</version>
  13. <packaging>pom</packaging>
  14. <name>CryptoLib</name>
  15. <description>
  16. CryptoLib is a cryptography library for Java, developed by the dev-security team, which provides a relatively high-level API of cryptographic functionality.
  17. It is important to realize that CryptoLib does not "know" anything about e-voting or elections. CryptoLib is only concerned with cryptography.
  18. </description>
  19. <scm>
  20. <connection>scm:git:ssh://git@scm.scytl.net:7999/comm/scytl-cryptolib.git</connection>
  21. <developerConnection>scm:git:ssh://git@scm.scytl.net:7999/comm/scytl-cryptolib.git</developerConnection>
  22. <url>https://scm.scytl.net/stash/projects/COMM/repos/scytl-cryptolib/browse</url>
  23. <tag>HEAD</tag>
  24. </scm>
  25. <properties>
  26. <bcprov-jdk15on.version>1.59</bcprov-jdk15on.version>
  27. <jackson-annotations.version>2.5.1</jackson-annotations.version>
  28. <commons-pool2.version>2.2</commons-pool2.version>
  29. <slf4j-api.version>1.7.10</slf4j-api.version>
  30. <npm-publish-type>unpublished</npm-publish-type>
  31. </properties>
  32. <dependencyManagement>
  33. <dependencies>
  34. <dependency>
  35. <groupId>com.fasterxml.jackson.core</groupId>
  36. <artifactId>jackson-annotations</artifactId>
  37. <version>${jackson-annotations.version}</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>com.fasterxml.jackson.core</groupId>
  41. <artifactId>jackson-core</artifactId>
  42. <version>${jackson-annotations.version}</version>
  43. </dependency>
  44. <dependency>
  45. <groupId>com.fasterxml.jackson.core</groupId>
  46. <artifactId>jackson-databind</artifactId>
  47. <version>${jackson-annotations.version}</version>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.codehaus.jackson</groupId>
  51. <artifactId>jackson-mapper-asl</artifactId>
  52. <version>1.9.13</version>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.apache.commons</groupId>
  56. <artifactId>commons-pool2</artifactId>
  57. <version>${commons-pool2.version}</version>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.slf4j</groupId>
  61. <artifactId>slf4j-api</artifactId>
  62. <version>${slf4j-api.version}</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>com.scytl.math</groupId>
  66. <artifactId>scytl-math</artifactId>
  67. <version>1.0.1</version>
  68. <!-- The scope is provided because the most of the clients are likely
  69. to be web-applications to be deployed in Tomcat or alike. In such cases scytl-math
  70. should not be included into web-archives. Standalone applications can add explicit
  71. dependency on scytl-math to their pom.xml to include scytl-math into distribution
  72. automatically -->
  73. <scope>provided</scope>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.bouncycastle</groupId>
  77. <artifactId>bcprov-jdk15on</artifactId>
  78. <version>${bcprov-jdk15on.version}</version>
  79. <!-- The scope is provided because it is deployed as a JVM extension
  80. as described in JCA documentation. -->
  81. <scope>provided</scope>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.bouncycastle</groupId>
  85. <artifactId>bcpkix-jdk15on</artifactId>
  86. <version>${bcprov-jdk15on.version}</version>
  87. <exclusions>
  88. <exclusion>
  89. <!-- BC provider should not be included into dependencies
  90. transitively, it is deployed as a JVM extension. -->
  91. <groupId>org.bouncycastle</groupId>
  92. <artifactId>bcprov-jdk15on</artifactId>
  93. </exclusion>
  94. </exclusions>
  95. </dependency>
  96. <!-- mainly test dependencies -->
  97. <dependency>
  98. <groupId>org.jmockit</groupId>
  99. <artifactId>jmockit</artifactId>
  100. <version>1.20</version>
  101. <scope>test</scope>
  102. </dependency>
  103. <dependency>
  104. <groupId>com.google.guava</groupId>
  105. <artifactId>guava-testlib</artifactId>
  106. <version>15.0</version>
  107. <scope>test</scope>
  108. </dependency>
  109. <dependency>
  110. <groupId>junit</groupId>
  111. <artifactId>junit</artifactId>
  112. <version>4.11</version>
  113. <scope>test</scope>
  114. </dependency>
  115. <dependency>
  116. <groupId>pl.pragmatists</groupId>
  117. <artifactId>JUnitParams</artifactId>
  118. <version>1.0.4</version>
  119. <scope>test</scope>
  120. </dependency>
  121. <dependency>
  122. <groupId>org.slf4j</groupId>
  123. <artifactId>slf4j-simple</artifactId>
  124. <version>${slf4j-api.version}</version>
  125. <scope>test</scope>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.mockito</groupId>
  129. <artifactId>mockito-core</artifactId>
  130. <version>2.8.47</version>
  131. <scope>test</scope>
  132. </dependency>
  133. </dependencies>
  134. </dependencyManagement>
  135. <profiles>
  136. <profile>
  137. <id>default</id>
  138. <activation>
  139. <activeByDefault>true</activeByDefault>
  140. </activation>
  141. <modules>
  142. <module>cryptolib-mathematical</module>
  143. <module>cryptolib-api-commons</module>
  144. <module>cryptolib-api-primitives</module>
  145. <module>cryptolib-api-symmetric</module>
  146. <module>cryptolib-api-asymmetric</module>
  147. <module>cryptolib-api-certificates</module>
  148. <module>cryptolib-api-elgamal</module>
  149. <module>cryptolib-api-proofs</module>
  150. <module>cryptolib-api-stores</module>
  151. <module>cryptolib-api-scytl-keystore</module>
  152. <module>cryptolib-api-digital-envelope</module>
  153. <module>cryptolib-commons</module>
  154. <module>cryptolib-primitives</module>
  155. <module>cryptolib-symmetric</module>
  156. <module>cryptolib-asymmetric</module>
  157. <module>cryptolib-certificates</module>
  158. <module>cryptolib-elgamal</module>
  159. <module>cryptolib-proofs</module>
  160. <module>cryptolib-stores</module>
  161. <module>cryptolib-scytl-keystore</module>
  162. <module>cryptolib-digital-envelope</module>
  163. <module>cryptolib-default-policies</module>
  164. <module>cryptolib-test-tools</module>
  165. <module>cryptolib-js</module>
  166. <module>cryptolib-interoperation</module>
  167. <module>cryptolib-js-buildtools</module>
  168. <module>cryptolib-js-bitwise</module>
  169. <module>cryptolib-js-codec</module>
  170. <module>cryptolib-js-policy</module>
  171. <module>cryptolib-js-securerandom</module>
  172. <module>cryptolib-js-messagedigest</module>
  173. <module>cryptolib-js-pbkdf</module>
  174. <module>cryptolib-js-symmetric</module>
  175. <module>cryptolib-js-asymmetric</module>
  176. <module>cryptolib-js-certificate</module>
  177. <module>cryptolib-js-digitalenvelope</module>
  178. <module>cryptolib-js-mathematical</module>
  179. <module>cryptolib-js-elgamal</module>
  180. <module>cryptolib-js-keystore</module>
  181. <module>cryptolib-js-zkproof</module>
  182. </modules>
  183. </profile>
  184. <profile>
  185. <id>npm-modules</id>
  186. <modules>
  187. <module>cryptolib-js-buildtools</module>
  188. <module>cryptolib-js-bitwise</module>
  189. <module>cryptolib-js-codec</module>
  190. <module>cryptolib-js-policy</module>
  191. <module>cryptolib-js-securerandom</module>
  192. <module>cryptolib-js-messagedigest</module>
  193. <module>cryptolib-js-pbkdf</module>
  194. <module>cryptolib-js-symmetric</module>
  195. <module>cryptolib-js-asymmetric</module>
  196. <module>cryptolib-js-certificate</module>
  197. <module>cryptolib-js-digitalenvelope</module>
  198. <module>cryptolib-js-mathematical</module>
  199. <module>cryptolib-js-elgamal</module>
  200. <module>cryptolib-js-keystore</module>
  201. <module>cryptolib-js-zkproof</module>
  202. </modules>
  203. </profile>
  204. </profiles>
  205. <build>
  206. <pluginManagement>
  207. <plugins>
  208. <plugin>
  209. <groupId>org.apache.maven.plugins</groupId>
  210. <artifactId>maven-compiler-plugin</artifactId>
  211. <version>3.6.1</version>
  212. <configuration>
  213. <source>1.8</source>
  214. <target>1.8</target>
  215. <encoding>UTF-8</encoding>
  216. <debug>true</debug>
  217. <optimize>true</optimize>
  218. <compilerArgs>
  219. <arg>-Werror</arg>
  220. <arg>-Xlint:all</arg>
  221. </compilerArgs>
  222. <showWarnings>true</showWarnings>
  223. <showDeprecation>true</showDeprecation>
  224. </configuration>
  225. </plugin>
  226. <plugin>
  227. <groupId>org.apache.maven.plugins</groupId>
  228. <artifactId>maven-failsafe-plugin</artifactId>
  229. <version>2.20</version>
  230. <executions>
  231. <execution>
  232. <goals>
  233. <goal>integration-test</goal>
  234. <goal>verify</goal>
  235. </goals>
  236. </execution>
  237. </executions>
  238. </plugin>
  239. <plugin>
  240. <groupId>org.apache.maven.plugins</groupId>
  241. <artifactId>maven-jar-plugin</artifactId>
  242. <version>3.0.2</version>
  243. </plugin>
  244. <plugin>
  245. <groupId>org.apache.maven.plugins</groupId>
  246. <artifactId>maven-resources-plugin</artifactId>
  247. <version>3.0.2</version>
  248. </plugin>
  249. <plugin>
  250. <groupId>org.apache.maven.plugins</groupId>
  251. <artifactId>maven-release-plugin</artifactId>
  252. <version>2.5.3</version>
  253. </plugin>
  254. <plugin>
  255. <groupId>org.codehaus.mojo</groupId>
  256. <artifactId>exec-maven-plugin</artifactId>
  257. <version>1.6.0</version>
  258. </plugin>
  259. </plugins>
  260. </pluginManagement>
  261. <plugins>
  262. <plugin>
  263. <groupId>com.mycila.maven-license-plugin</groupId>
  264. <artifactId>maven-license-plugin</artifactId>
  265. <version>1.9.0</version>
  266. <configuration>
  267. <headerDefinitions>
  268. <headerDefinition>licensePattern.xml</headerDefinition>
  269. </headerDefinitions>
  270. <mapping>
  271. <javadoc_style>JAVADOC_STYLE</javadoc_style>
  272. </mapping>
  273. <header>${basedir}/LICENSE</header>
  274. <includes>
  275. <include>**/*.java</include>
  276. <include>**/*.properties</include>
  277. <include>**/*.js</include>
  278. </includes>
  279. <excludes>
  280. <exclude>**/.*/**</exclude>
  281. <exclude>target/**</exclude>
  282. <exclude>bower_components/**</exclude>
  283. <exclude>build/**</exclude>
  284. <exclude>dist/**</exclude>
  285. <exclude>node_modules/**</exclude>
  286. <exclude>release/**</exclude>
  287. </excludes>
  288. <properties>
  289. <currentYear>2018</currentYear>
  290. </properties>
  291. <useDefaultExcludes>true</useDefaultExcludes>
  292. <strictCheck>true</strictCheck>
  293. </configuration>
  294. <executions>
  295. <execution>
  296. <goals>
  297. <goal>check</goal>
  298. </goals>
  299. </execution>
  300. </executions>
  301. </plugin>
  302. </plugins>
  303. </build>
  304. <dependencies>
  305. <!-- Test dependencies -->
  306. <dependency>
  307. <groupId>org.jmockit</groupId>
  308. <artifactId>jmockit</artifactId>
  309. <scope>test</scope>
  310. </dependency>
  311. <dependency>
  312. <groupId>junit</groupId>
  313. <artifactId>junit</artifactId>
  314. <scope>test</scope>
  315. </dependency>
  316. <dependency>
  317. <groupId>pl.pragmatists</groupId>
  318. <artifactId>JUnitParams</artifactId>
  319. <scope>test</scope>
  320. </dependency>
  321. <dependency>
  322. <groupId>com.google.guava</groupId>
  323. <artifactId>guava-testlib</artifactId>
  324. <scope>test</scope>
  325. </dependency>
  326. </dependencies>
  327. </project>