pom.xml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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-keystore</artifactId>
  12. <name>CryptoLib JS Key Store</name>
  13. <description>Scytl's JavaScript key store 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-pbkdf</artifactId>
  39. <version>${project.version}</version>
  40. </dependency>
  41. <dependency>
  42. <groupId>com.scytl.cryptolib</groupId>
  43. <artifactId>cryptolib-js-certificate</artifactId>
  44. <version>${project.version}</version>
  45. </dependency>
  46. <dependency>
  47. <groupId>com.scytl.cryptolib</groupId>
  48. <artifactId>cryptolib-js-symmetric</artifactId>
  49. <version>${project.version}</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>com.scytl.cryptolib</groupId>
  53. <artifactId>cryptolib-js-mathematical</artifactId>
  54. <version>${project.version}</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>com.scytl.cryptolib</groupId>
  58. <artifactId>cryptolib-js-elgamal</artifactId>
  59. <version>${project.version}</version>
  60. </dependency>
  61. </dependencies>
  62. <build>
  63. <plugins>
  64. <plugin>
  65. <groupId>org.codehaus.mojo</groupId>
  66. <artifactId>exec-maven-plugin</artifactId>
  67. <executions>
  68. <execution>
  69. <id>initialize</id>
  70. <goals>
  71. <goal>exec</goal>
  72. </goals>
  73. <phase>initialize</phase>
  74. <configuration>
  75. <executable>npm</executable>
  76. <arguments>
  77. <argument>install</argument>
  78. </arguments>
  79. </configuration>
  80. </execution>
  81. <execution>
  82. <id>compile</id>
  83. <goals>
  84. <goal>exec</goal>
  85. </goals>
  86. <phase>compile</phase>
  87. <configuration>
  88. <executable>npm</executable>
  89. <arguments>
  90. <argument>run</argument>
  91. <argument>compile</argument>
  92. </arguments>
  93. </configuration>
  94. </execution>
  95. <execution>
  96. <id>npm-publish</id>
  97. <goals>
  98. <goal>exec</goal>
  99. </goals>
  100. <phase>install</phase>
  101. <configuration>
  102. <executable>npm</executable>
  103. <arguments>
  104. <argument>run</argument>
  105. <argument>${npm-publish-type}</argument>
  106. </arguments>
  107. </configuration>
  108. </execution>
  109. </executions>
  110. </plugin>
  111. <plugin>
  112. <groupId>org.apache.maven.plugins</groupId>
  113. <artifactId>maven-release-plugin</artifactId>
  114. <configuration>
  115. <preparationGoals>clean verify</preparationGoals>
  116. </configuration>
  117. </plugin>
  118. <plugin>
  119. <groupId>org.apache.maven.plugins</groupId>
  120. <artifactId>maven-resources-plugin</artifactId>
  121. <executions>
  122. <execution>
  123. <id>copy-buildtools</id>
  124. <phase>generate-resources</phase>
  125. <goals>
  126. <goal>copy-resources</goal>
  127. </goals>
  128. <configuration>
  129. <outputDirectory>${basedir}/target/dependency</outputDirectory>
  130. <resources>
  131. <resource>
  132. <directory>${basedir}/../cryptolib-js-buildtools/src/main/js</directory>
  133. </resource>
  134. </resources>
  135. </configuration>
  136. </execution>
  137. </executions>
  138. </plugin>
  139. </plugins>
  140. </build>
  141. <profiles>
  142. <profile>
  143. <!-- This exists just to disable the run-tests profile -->
  144. <id>do-not-run-tests-1</id>
  145. <activation>
  146. <property>
  147. <name>skipTests</name>
  148. </property>
  149. </activation>
  150. </profile>
  151. <profile>
  152. <!-- This exists just to disable the run-tests profile -->
  153. <id>do-not-run-tests-2</id>
  154. <activation>
  155. <property>
  156. <name>maven.test.skip</name>
  157. <value>true</value>
  158. </property>
  159. </activation>
  160. </profile>
  161. <profile>
  162. <id>run-tests</id>
  163. <activation>
  164. <activeByDefault>true</activeByDefault>
  165. </activation>
  166. <build>
  167. <plugins>
  168. <plugin>
  169. <groupId>org.codehaus.mojo</groupId>
  170. <artifactId>exec-maven-plugin</artifactId>
  171. <executions>
  172. <execution>
  173. <id>test</id>
  174. <goals>
  175. <goal>exec</goal>
  176. </goals>
  177. <phase>test</phase>
  178. <configuration>
  179. <executable>npm</executable>
  180. <arguments>
  181. <argument>test</argument>
  182. </arguments>
  183. </configuration>
  184. </execution>
  185. </executions>
  186. </plugin>
  187. </plugins>
  188. </build>
  189. </profile>
  190. </profiles>
  191. </project>