2
0

pom.xml 6.4 KB

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