2
0

pom.xml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>com.scytl.cryptolib</groupId>
  8. <artifactId>cryptolib</artifactId>
  9. <version>2.1.5-4</version>
  10. </parent>
  11. <artifactId>cryptolib-js-zkproof</artifactId>
  12. <name>CryptoLib JS Zero-Knowledge Proof</name>
  13. <description>Scytl's JavaScript zero-knowledge proof module</description>
  14. <properties>
  15. <sonar.sources>lib</sonar.sources>
  16. <sonar.tests>spec</sonar.tests>
  17. <sonar.javascript.lcov.reportPath>target/reports/coverage/lcov.info</sonar.javascript.lcov.reportPath>
  18. <sonar.genericcoverage.unitTestReportPaths>target/reports/junit</sonar.genericcoverage.unitTestReportPaths>
  19. </properties>
  20. <dependencies>
  21. <dependency>
  22. <groupId>com.scytl.cryptolib</groupId>
  23. <artifactId>cryptolib-js-buildtools</artifactId>
  24. <version>${project.version}</version>
  25. </dependency>
  26. <dependency>
  27. <groupId>com.scytl.cryptolib</groupId>
  28. <artifactId>cryptolib-js-codec</artifactId>
  29. <version>${project.version}</version>
  30. </dependency>
  31. <dependency>
  32. <groupId>com.scytl.cryptolib</groupId>
  33. <artifactId>cryptolib-js-policy</artifactId>
  34. <version>${project.version}</version>
  35. </dependency>
  36. <dependency>
  37. <groupId>com.scytl.cryptolib</groupId>
  38. <artifactId>cryptolib-js-messagedigest</artifactId>
  39. <version>${project.version}</version>
  40. </dependency>
  41. <dependency>
  42. <groupId>com.scytl.cryptolib</groupId>
  43. <artifactId>cryptolib-js-securerandom</artifactId>
  44. <version>${project.version}</version>
  45. </dependency>
  46. <dependency>
  47. <groupId>com.scytl.cryptolib</groupId>
  48. <artifactId>cryptolib-js-mathematical</artifactId>
  49. <version>${project.version}</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>com.scytl.cryptolib</groupId>
  53. <artifactId>cryptolib-js-elgamal</artifactId>
  54. <version>${project.version}</version>
  55. </dependency>
  56. </dependencies>
  57. <build>
  58. <plugins>
  59. <plugin>
  60. <groupId>org.codehaus.mojo</groupId>
  61. <artifactId>exec-maven-plugin</artifactId>
  62. <executions>
  63. <execution>
  64. <id>initialize</id>
  65. <goals>
  66. <goal>exec</goal>
  67. </goals>
  68. <phase>initialize</phase>
  69. <configuration>
  70. <executable>npm</executable>
  71. <arguments>
  72. <argument>install</argument>
  73. </arguments>
  74. </configuration>
  75. </execution>
  76. <execution>
  77. <id>compile</id>
  78. <goals>
  79. <goal>exec</goal>
  80. </goals>
  81. <phase>compile</phase>
  82. <configuration>
  83. <executable>npm</executable>
  84. <arguments>
  85. <argument>run</argument>
  86. <argument>compile</argument>
  87. </arguments>
  88. </configuration>
  89. </execution>
  90. <execution>
  91. <id>npm-publish</id>
  92. <goals>
  93. <goal>exec</goal>
  94. </goals>
  95. <phase>install</phase>
  96. <configuration>
  97. <executable>npm</executable>
  98. <arguments>
  99. <argument>run</argument>
  100. <argument>${npm-publish-type}</argument>
  101. </arguments>
  102. </configuration>
  103. </execution>
  104. </executions>
  105. </plugin>
  106. <plugin>
  107. <groupId>org.apache.maven.plugins</groupId>
  108. <artifactId>maven-release-plugin</artifactId>
  109. <configuration>
  110. <preparationGoals>clean verify</preparationGoals>
  111. </configuration>
  112. </plugin>
  113. <plugin>
  114. <groupId>org.apache.maven.plugins</groupId>
  115. <artifactId>maven-resources-plugin</artifactId>
  116. <executions>
  117. <execution>
  118. <id>copy-buildtools</id>
  119. <phase>generate-resources</phase>
  120. <goals>
  121. <goal>copy-resources</goal>
  122. </goals>
  123. <configuration>
  124. <outputDirectory>${basedir}/target/dependency</outputDirectory>
  125. <resources>
  126. <resource>
  127. <directory>${basedir}/../cryptolib-js-buildtools/src/main/js</directory>
  128. </resource>
  129. </resources>
  130. </configuration>
  131. </execution>
  132. </executions>
  133. </plugin>
  134. </plugins>
  135. </build>
  136. <profiles>
  137. <profile>
  138. <!-- This exists just to disable the run-tests profile -->
  139. <id>do-not-run-tests-1</id>
  140. <activation>
  141. <property>
  142. <name>skipTests</name>
  143. </property>
  144. </activation>
  145. </profile>
  146. <profile>
  147. <!-- This exists just to disable the run-tests profile -->
  148. <id>do-not-run-tests-2</id>
  149. <activation>
  150. <property>
  151. <name>maven.test.skip</name>
  152. <value>true</value>
  153. </property>
  154. </activation>
  155. </profile>
  156. <profile>
  157. <id>run-tests</id>
  158. <activation>
  159. <activeByDefault>true</activeByDefault>
  160. </activation>
  161. <build>
  162. <plugins>
  163. <plugin>
  164. <groupId>org.codehaus.mojo</groupId>
  165. <artifactId>exec-maven-plugin</artifactId>
  166. <executions>
  167. <execution>
  168. <id>test</id>
  169. <goals>
  170. <goal>exec</goal>
  171. </goals>
  172. <phase>test</phase>
  173. <configuration>
  174. <executable>npm</executable>
  175. <arguments>
  176. <argument>test</argument>
  177. </arguments>
  178. </configuration>
  179. </execution>
  180. </executions>
  181. </plugin>
  182. </plugins>
  183. </build>
  184. </profile>
  185. </profiles>
  186. </project>