pom.xml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Licensed to the Apache Software Foundation (ASF) under one or more
  4. ~ contributor license agreements. See the NOTICE file distributed with
  5. ~ this work for additional information regarding copyright ownership.
  6. ~ The ASF licenses this file to You under the Apache License, Version 2.0
  7. ~ (the "License"); you may not use this file except in compliance with
  8. ~ the License. You may obtain a copy of the License at
  9. ~
  10. ~ http://www.apache.org/licenses/LICENSE-2.0
  11. ~
  12. ~ Unless required by applicable law or agreed to in writing, software
  13. ~ distributed under the License is distributed on an "AS IS" BASIS,
  14. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. ~ See the License for the specific language governing permissions and
  16. ~ limitations under the License.
  17. -->
  18. <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/xsd/maven-4.0.0.xsd">
  19. <parent>
  20. <artifactId>dolphinscheduler</artifactId>
  21. <groupId>org.apache.dolphinscheduler</groupId>
  22. <version>1.2.1-SNAPSHOT</version>
  23. </parent>
  24. <modelVersion>4.0.0</modelVersion>
  25. <artifactId>dolphinscheduler-ui</artifactId>
  26. <name>${project.artifactId}</name>
  27. <properties>
  28. <node.version>v12.12.0</node.version>
  29. <npm.version>6.11.3</npm.version>
  30. <sonar.sources>src</sonar.sources>
  31. </properties>
  32. <profiles>
  33. <profile>
  34. <id>release</id>
  35. <build>
  36. <plugins>
  37. <plugin>
  38. <groupId>com.github.eirslett</groupId>
  39. <artifactId>frontend-maven-plugin</artifactId>
  40. <version>${frontend-maven-plugin.version}</version>
  41. <executions>
  42. <execution>
  43. <id>install node and npm</id>
  44. <goals>
  45. <goal>install-node-and-npm</goal>
  46. </goals>
  47. <configuration>
  48. <nodeVersion>${node.version}</nodeVersion>
  49. <npmVersion>${npm.version}</npmVersion>
  50. </configuration>
  51. </execution>
  52. <execution>
  53. <id>npm install node-sass --unsafe-perm</id>
  54. <goals>
  55. <goal>npm</goal>
  56. </goals>
  57. <phase>generate-resources</phase>
  58. <configuration>
  59. <arguments>install node-sass --unsafe-perm</arguments>
  60. </configuration>
  61. </execution>
  62. <execution>
  63. <id>npm install</id>
  64. <goals>
  65. <goal>npm</goal>
  66. </goals>
  67. <phase>generate-resources</phase>
  68. <configuration>
  69. <arguments>install</arguments>
  70. </configuration>
  71. </execution>
  72. <execution>
  73. <id>npm run build:release</id>
  74. <goals>
  75. <goal>npm</goal>
  76. </goals>
  77. <configuration>
  78. <arguments>run build:release</arguments>
  79. </configuration>
  80. </execution>
  81. </executions>
  82. </plugin>
  83. </plugins>
  84. </build>
  85. </profile>
  86. <profile>
  87. <id>rpmbuild</id>
  88. <build>
  89. <plugins>
  90. <plugin>
  91. <groupId>com.github.eirslett</groupId>
  92. <artifactId>frontend-maven-plugin</artifactId>
  93. <version>${frontend-maven-plugin.version}</version>
  94. <executions>
  95. <execution>
  96. <id>install node and npm</id>
  97. <goals>
  98. <goal>install-node-and-npm</goal>
  99. </goals>
  100. <configuration>
  101. <nodeVersion>${node.version}</nodeVersion>
  102. <npmVersion>${npm.version}</npmVersion>
  103. </configuration>
  104. </execution>
  105. <execution>
  106. <id>npm install node-sass --unsafe-perm</id>
  107. <goals>
  108. <goal>npm</goal>
  109. </goals>
  110. <phase>generate-resources</phase>
  111. <configuration>
  112. <arguments>install node-sass --unsafe-perm</arguments>
  113. </configuration>
  114. </execution>
  115. <execution>
  116. <id>npm install</id>
  117. <goals>
  118. <goal>npm</goal>
  119. </goals>
  120. <phase>generate-resources</phase>
  121. <configuration>
  122. <arguments>install</arguments>
  123. </configuration>
  124. </execution>
  125. <execution>
  126. <id>npm run build:release</id>
  127. <goals>
  128. <goal>npm</goal>
  129. </goals>
  130. <configuration>
  131. <arguments>run build:release</arguments>
  132. </configuration>
  133. </execution>
  134. </executions>
  135. </plugin>
  136. </plugins>
  137. </build>
  138. </profile>
  139. <profile>
  140. <id>nginx</id>
  141. <build>
  142. <plugins>
  143. <plugin>
  144. <groupId>com.github.eirslett</groupId>
  145. <artifactId>frontend-maven-plugin</artifactId>
  146. <version>${frontend-maven-plugin.version}</version>
  147. <executions>
  148. <execution>
  149. <id>install node and npm</id>
  150. <goals>
  151. <goal>install-node-and-npm</goal>
  152. </goals>
  153. <configuration>
  154. <nodeVersion>${node.version}</nodeVersion>
  155. <npmVersion>${npm.version}</npmVersion>
  156. </configuration>
  157. </execution>
  158. <execution>
  159. <id>npm install node-sass --unsafe-perm</id>
  160. <goals>
  161. <goal>npm</goal>
  162. </goals>
  163. <phase>generate-resources</phase>
  164. <configuration>
  165. <arguments>install node-sass --unsafe-perm</arguments>
  166. </configuration>
  167. </execution>
  168. <execution>
  169. <id>npm install</id>
  170. <goals>
  171. <goal>npm</goal>
  172. </goals>
  173. <phase>generate-resources</phase>
  174. <configuration>
  175. <arguments>install</arguments>
  176. </configuration>
  177. </execution>
  178. <execution>
  179. <id>npm run build</id>
  180. <goals>
  181. <goal>npm</goal>
  182. </goals>
  183. <configuration>
  184. <arguments>run build</arguments>
  185. </configuration>
  186. </execution>
  187. </executions>
  188. </plugin>
  189. </plugins>
  190. </build>
  191. </profile>
  192. </profiles>
  193. </project>