2
0

pom.xml 7.2 KB

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