2
0

pom.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project
  3. xmlns="http://maven.apache.org/POM/4.0.0"
  4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_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-symmetric</artifactId>
  12. <name>CryptoLib JS Symmetric Cryptography</name>
  13. <description>Scytl's JavaScript symmetric cryptography 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-bitwise</artifactId>
  29. <version>${project.version}</version>
  30. </dependency>
  31. <dependency>
  32. <groupId>com.scytl.cryptolib</groupId>
  33. <artifactId>cryptolib-js-codec</artifactId>
  34. <version>${project.version}</version>
  35. </dependency>
  36. <dependency>
  37. <groupId>com.scytl.cryptolib</groupId>
  38. <artifactId>cryptolib-js-policy</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. </dependencies>
  47. <build>
  48. <plugins>
  49. <plugin>
  50. <groupId>org.codehaus.mojo</groupId>
  51. <artifactId>exec-maven-plugin</artifactId>
  52. <executions>
  53. <execution>
  54. <id>initialize</id>
  55. <goals>
  56. <goal>exec</goal>
  57. </goals>
  58. <phase>initialize</phase>
  59. <configuration>
  60. <executable>npm</executable>
  61. <arguments>
  62. <argument>install</argument>
  63. </arguments>
  64. </configuration>
  65. </execution>
  66. <execution>
  67. <id>compile</id>
  68. <goals>
  69. <goal>exec</goal>
  70. </goals>
  71. <phase>compile</phase>
  72. <configuration>
  73. <executable>npm</executable>
  74. <arguments>
  75. <argument>run</argument>
  76. <argument>compile</argument>
  77. </arguments>
  78. </configuration>
  79. </execution>
  80. <execution>
  81. <id>npm-publish</id>
  82. <goals>
  83. <goal>exec</goal>
  84. </goals>
  85. <phase>install</phase>
  86. <configuration>
  87. <executable>npm</executable>
  88. <arguments>
  89. <argument>run</argument>
  90. <argument>${npm-publish-type}</argument>
  91. </arguments>
  92. </configuration>
  93. </execution>
  94. </executions>
  95. </plugin>
  96. <plugin>
  97. <groupId>org.apache.maven.plugins</groupId>
  98. <artifactId>maven-release-plugin</artifactId>
  99. <configuration>
  100. <preparationGoals>clean verify</preparationGoals>
  101. </configuration>
  102. </plugin>
  103. <plugin>
  104. <groupId>org.apache.maven.plugins</groupId>
  105. <artifactId>maven-resources-plugin</artifactId>
  106. <executions>
  107. <execution>
  108. <id>copy-buildtools</id>
  109. <phase>generate-resources</phase>
  110. <goals>
  111. <goal>copy-resources</goal>
  112. </goals>
  113. <configuration>
  114. <outputDirectory>${basedir}/target/dependency</outputDirectory>
  115. <resources>
  116. <resource>
  117. <directory>${basedir}/../cryptolib-js-buildtools/src/main/js</directory>
  118. </resource>
  119. </resources>
  120. </configuration>
  121. </execution>
  122. </executions>
  123. </plugin>
  124. </plugins>
  125. </build>
  126. <profiles>
  127. <profile>
  128. <!-- This exists just to disable the run-tests profile -->
  129. <id>do-not-run-tests-1</id>
  130. <activation>
  131. <property>
  132. <name>skipTests</name>
  133. </property>
  134. </activation>
  135. </profile>
  136. <profile>
  137. <!-- This exists just to disable the run-tests profile -->
  138. <id>do-not-run-tests-2</id>
  139. <activation>
  140. <property>
  141. <name>maven.test.skip</name>
  142. <value>true</value>
  143. </property>
  144. </activation>
  145. </profile>
  146. <profile>
  147. <id>run-tests</id>
  148. <activation>
  149. <activeByDefault>true</activeByDefault>
  150. </activation>
  151. <build>
  152. <plugins>
  153. <plugin>
  154. <groupId>org.codehaus.mojo</groupId>
  155. <artifactId>exec-maven-plugin</artifactId>
  156. <executions>
  157. <execution>
  158. <id>test</id>
  159. <goals>
  160. <goal>exec</goal>
  161. </goals>
  162. <phase>test</phase>
  163. <configuration>
  164. <executable>npm</executable>
  165. <arguments>
  166. <argument>test</argument>
  167. </arguments>
  168. </configuration>
  169. </execution>
  170. </executions>
  171. </plugin>
  172. </plugins>
  173. </build>
  174. </profile>
  175. </profiles>
  176. </project>