pom.xml 6.6 KB

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