pom.xml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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>2.0.0-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>v14.15.1</node.version>
  29. <npm.version>6.14.11</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. </profiles>
  87. </project>