2
0

pom.xml 6.8 KB

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