pom.xml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" 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">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <artifactId>cryptolib</artifactId>
  6. <groupId>com.scytl.cryptolib</groupId>
  7. <version>2.1.5-4</version>
  8. </parent>
  9. <artifactId>cryptolib-js</artifactId>
  10. <packaging>pom</packaging>
  11. <name>Cryptolib JS</name>
  12. <description>Cryptolib JavaScript Library</description>
  13. <properties>
  14. <sonar.sources>lib</sonar.sources>
  15. <sonar.tests>spec</sonar.tests>
  16. <sonar.javascript.lcov.reportPath>target/reports/coverage/lcov.info</sonar.javascript.lcov.reportPath>
  17. <sonar.genericcoverage.unitTestReportPaths>target/reports/junit</sonar.genericcoverage.unitTestReportPaths>
  18. </properties>
  19. <build>
  20. <plugins>
  21. <plugin>
  22. <groupId>org.codehaus.mojo</groupId>
  23. <artifactId>exec-maven-plugin</artifactId>
  24. <executions>
  25. <execution>
  26. <id>initialize</id>
  27. <goals>
  28. <goal>exec</goal>
  29. </goals>
  30. <phase>initialize</phase>
  31. <configuration>
  32. <executable>npm</executable>
  33. <arguments>
  34. <argument>install</argument>
  35. </arguments>
  36. </configuration>
  37. </execution>
  38. <execution>
  39. <id>compile</id>
  40. <goals>
  41. <goal>exec</goal>
  42. </goals>
  43. <phase>compile</phase>
  44. <configuration>
  45. <executable>node</executable>
  46. <arguments>
  47. <argument>${basedir}/node_modules/grunt-cli/bin/grunt</argument>
  48. <argument>compile</argument>
  49. </arguments>
  50. </configuration>
  51. </execution>
  52. <execution>
  53. <id>package</id>
  54. <goals>
  55. <goal>exec</goal>
  56. </goals>
  57. <phase>package</phase>
  58. <configuration>
  59. <executable>node</executable>
  60. <arguments>
  61. <argument>${basedir}/node_modules/grunt-cli/bin/grunt</argument>
  62. <argument>package</argument>
  63. </arguments>
  64. </configuration>
  65. </execution>
  66. <execution>
  67. <id>deploy</id>
  68. <goals>
  69. <goal>exec</goal>
  70. </goals>
  71. <phase>deploy</phase>
  72. <configuration>
  73. <executable>node</executable>
  74. <arguments>
  75. <argument>${basedir}/node_modules/grunt-cli/bin/grunt</argument>
  76. <argument>deploy</argument>
  77. </arguments>
  78. </configuration>
  79. </execution>
  80. </executions>
  81. </plugin>
  82. <plugin>
  83. <groupId>org.apache.maven.plugins</groupId>
  84. <artifactId>maven-release-plugin</artifactId>
  85. <configuration>
  86. <preparationGoals>clean verify</preparationGoals>
  87. </configuration>
  88. </plugin>
  89. </plugins>
  90. </build>
  91. <profiles>
  92. <profile>
  93. <!-- This exists just to disable the run-tests profile -->
  94. <id>do-not-run-tests-1</id>
  95. <activation>
  96. <property>
  97. <name>skipTests</name>
  98. </property>
  99. </activation>
  100. </profile>
  101. <profile>
  102. <!-- This exists just to disable the run-tests profile -->
  103. <id>do-not-run-tests-2</id>
  104. <activation>
  105. <property>
  106. <name>maven.test.skip</name>
  107. <value>true</value>
  108. </property>
  109. </activation>
  110. </profile>
  111. <profile>
  112. <id>run-tests</id>
  113. <activation>
  114. <activeByDefault>true</activeByDefault>
  115. </activation>
  116. <build>
  117. <plugins>
  118. <plugin>
  119. <groupId>org.codehaus.mojo</groupId>
  120. <artifactId>exec-maven-plugin</artifactId>
  121. <executions>
  122. <execution>
  123. <id>test</id>
  124. <goals>
  125. <goal>exec</goal>
  126. </goals>
  127. <phase>test</phase>
  128. <configuration>
  129. <executable>node</executable>
  130. <arguments>
  131. <argument>
  132. ${basedir}/node_modules/grunt-cli/bin/grunt
  133. </argument>
  134. <argument>test</argument>
  135. </arguments>
  136. </configuration>
  137. </execution>
  138. </executions>
  139. </plugin>
  140. </plugins>
  141. </build>
  142. </profile>
  143. </profiles>
  144. </project>