pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  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. <artifactId>cryptolib</artifactId>
  6. <groupId>com.scytl.cryptolib</groupId>
  7. <version>2.1.5-4</version>
  8. </parent>
  9. <artifactId>cryptolib-interoperation</artifactId>
  10. <name>Interoperation</name>
  11. <description>Tests interoperation of cryptoLib with other libraries</description>
  12. <properties>
  13. <maven.download.version>1.2.0</maven.download.version>
  14. <log4j.version>1.2.17</log4j.version>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>org.bouncycastle</groupId>
  19. <artifactId>bcprov-jdk15on</artifactId>
  20. </dependency>
  21. <dependency>
  22. <groupId>org.bouncycastle</groupId>
  23. <artifactId>bcpkix-jdk15on</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.slf4j</groupId>
  27. <artifactId>slf4j-api</artifactId>
  28. </dependency>
  29. <dependency>
  30. <groupId>org.slf4j</groupId>
  31. <artifactId>slf4j-simple</artifactId>
  32. <scope>runtime</scope>
  33. </dependency>
  34. <dependency>
  35. <groupId>com.scytl.cryptolib</groupId>
  36. <artifactId>cryptolib-primitives</artifactId>
  37. <version>${project.version}</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>com.scytl.cryptolib</groupId>
  41. <artifactId>cryptolib-symmetric</artifactId>
  42. <version>${project.version}</version>
  43. </dependency>
  44. <dependency>
  45. <groupId>com.scytl.cryptolib</groupId>
  46. <artifactId>cryptolib-asymmetric</artifactId>
  47. <version>${project.version}</version>
  48. </dependency>
  49. <dependency>
  50. <groupId>com.scytl.cryptolib</groupId>
  51. <artifactId>cryptolib-certificates</artifactId>
  52. <version>${project.version}</version>
  53. </dependency>
  54. <dependency>
  55. <groupId>com.scytl.cryptolib</groupId>
  56. <artifactId>cryptolib-stores</artifactId>
  57. <version>${project.version}</version>
  58. </dependency>
  59. <dependency>
  60. <groupId>com.scytl.cryptolib</groupId>
  61. <artifactId>cryptolib-scytl-keystore</artifactId>
  62. <version>${project.version}</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>com.scytl.cryptolib</groupId>
  66. <artifactId>cryptolib-mathematical</artifactId>
  67. <version>${project.version}</version>
  68. </dependency>
  69. <dependency>
  70. <groupId>com.scytl.cryptolib</groupId>
  71. <artifactId>cryptolib-elgamal</artifactId>
  72. <version>${project.version}</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>com.scytl.cryptolib</groupId>
  76. <artifactId>cryptolib-proofs</artifactId>
  77. <version>${project.version}</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>com.scytl.cryptolib</groupId>
  81. <artifactId>cryptolib-digital-envelope</artifactId>
  82. <version>${project.version}</version>
  83. </dependency>
  84. <dependency>
  85. <artifactId>cryptolib-default-policies</artifactId>
  86. <groupId>com.scytl.cryptolib</groupId>
  87. <version>${project.version}</version>
  88. </dependency>
  89. <dependency>
  90. <artifactId>cryptolib-test-tools</artifactId>
  91. <groupId>com.scytl.cryptolib</groupId>
  92. <version>${project.version}</version>
  93. </dependency>
  94. <dependency>
  95. <artifactId>cryptolib-primitives</artifactId>
  96. <groupId>com.scytl.cryptolib</groupId>
  97. <version>${project.version}</version>
  98. <type>test-jar</type>
  99. </dependency>
  100. <dependency>
  101. <artifactId>cryptolib-symmetric</artifactId>
  102. <groupId>com.scytl.cryptolib</groupId>
  103. <version>${project.version}</version>
  104. <type>test-jar</type>
  105. </dependency>
  106. <dependency>
  107. <artifactId>cryptolib-asymmetric</artifactId>
  108. <groupId>com.scytl.cryptolib</groupId>
  109. <version>${project.version}</version>
  110. <type>test-jar</type>
  111. </dependency>
  112. <dependency>
  113. <artifactId>cryptolib-certificates</artifactId>
  114. <groupId>com.scytl.cryptolib</groupId>
  115. <version>${project.version}</version>
  116. <type>test-jar</type>
  117. </dependency>
  118. <dependency>
  119. <artifactId>cryptolib-mathematical</artifactId>
  120. <groupId>com.scytl.cryptolib</groupId>
  121. <version>${project.version}</version>
  122. <type>test-jar</type>
  123. </dependency>
  124. <dependency>
  125. <artifactId>cryptolib-elgamal</artifactId>
  126. <groupId>com.scytl.cryptolib</groupId>
  127. <version>${project.version}</version>
  128. <type>test-jar</type>
  129. </dependency>
  130. <dependency>
  131. <artifactId>cryptolib-proofs</artifactId>
  132. <groupId>com.scytl.cryptolib</groupId>
  133. <version>${project.version}</version>
  134. <type>test-jar</type>
  135. </dependency>
  136. <dependency>
  137. <artifactId>cryptolib-scytl-keystore</artifactId>
  138. <groupId>com.scytl.cryptolib</groupId>
  139. <version>${project.version}</version>
  140. <type>test-jar</type>
  141. </dependency>
  142. <dependency>
  143. <groupId>com.scytl.math</groupId>
  144. <artifactId>scytl-math</artifactId>
  145. <scope>test</scope>
  146. </dependency>
  147. </dependencies>
  148. <profiles>
  149. <profile>
  150. <!-- This exists just to disable the run-tests profile -->
  151. <id>do-not-run-tests</id>
  152. <activation>
  153. <property>
  154. <name>skipTests</name>
  155. </property>
  156. </activation>
  157. </profile>
  158. <profile>
  159. <!-- This exists just to disable the run-tests profile -->
  160. <id>compile-tests</id>
  161. <activation>
  162. <property>
  163. <name>maven.test.skip</name>
  164. <value>true</value>
  165. </property>
  166. </activation>
  167. </profile>
  168. <profile>
  169. <id>run-tests</id>
  170. <activation>
  171. <activeByDefault>true</activeByDefault>
  172. </activation>
  173. <build>
  174. <plugins>
  175. <plugin>
  176. <groupId>org.apache.maven.plugins</groupId>
  177. <artifactId>maven-resources-plugin</artifactId>
  178. <executions>
  179. <execution>
  180. <id>prepare-java-js-interoperation-tester
  181. </id>
  182. <phase>generate-resources</phase>
  183. <goals>
  184. <goal>copy-resources</goal>
  185. </goals>
  186. <configuration>
  187. <outputDirectory>
  188. ${project.build.outputDirectory}/js/lib
  189. </outputDirectory>
  190. <resources>
  191. <resource>
  192. <directory>
  193. ${basedir}/../cryptolib-js/target/package/lib
  194. </directory>
  195. </resource>
  196. <resource>
  197. <directory>
  198. ${basedir}/../cryptolib-js/node_modules/node-forge/dist
  199. </directory>
  200. </resource>
  201. <resource>
  202. <directory>
  203. ${basedir}/../cryptolib-js/node_modules/sjcl
  204. </directory>
  205. </resource>
  206. </resources>
  207. </configuration>
  208. </execution>
  209. </executions>
  210. </plugin>
  211. <plugin>
  212. <groupId>org.codehaus.mojo</groupId>
  213. <artifactId>exec-maven-plugin</artifactId>
  214. <executions>
  215. <execution>
  216. <id>java-js-interoperation-tester</id>
  217. <phase>integration-test</phase>
  218. <goals>
  219. <goal>java</goal>
  220. </goals>
  221. <configuration>
  222. <mainClass>
  223. com.scytl.cryptolib.interoperation.js.JavaJsInteroperationTester
  224. </mainClass>
  225. <classpathScope>test</classpathScope>
  226. <systemProperties>
  227. <systemProperty>
  228. <key>
  229. org.slf4j.simpleLogger.showLogName
  230. </key>
  231. <value>false</value>
  232. </systemProperty>
  233. <systemProperty>
  234. <key>
  235. org.slf4j.simpleLogger.showThreadName
  236. </key>
  237. <value>false</value>
  238. </systemProperty>
  239. </systemProperties>
  240. <arguments>
  241. <argument>
  242. ${project.build.directory}/data
  243. </argument>
  244. </arguments>
  245. </configuration>
  246. </execution>
  247. </executions>
  248. </plugin>
  249. </plugins>
  250. </build>
  251. </profile>
  252. </profiles>
  253. </project>