2
0

pom.xml 6.2 KB

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