pom.xml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. </properties>
  31. <build>
  32. <plugins>
  33. <plugin>
  34. <groupId>com.github.eirslett</groupId>
  35. <artifactId>frontend-maven-plugin</artifactId>
  36. <version>${frontend-maven-plugin.version}</version>
  37. <executions>
  38. <execution>
  39. <id>install node and npm</id>
  40. <goals>
  41. <goal>install-node-and-npm</goal>
  42. </goals>
  43. <configuration>
  44. <nodeVersion>${node.version}</nodeVersion>
  45. <npmVersion>${npm.version}</npmVersion>
  46. </configuration>
  47. </execution>
  48. <execution>
  49. <id>npm install node-sass --unsafe-perm</id>
  50. <goals>
  51. <goal>npm</goal>
  52. </goals>
  53. <phase>generate-resources</phase>
  54. <configuration>
  55. <arguments>install node-sass --unsafe-perm</arguments>
  56. </configuration>
  57. </execution>
  58. <execution>
  59. <id>npm install</id>
  60. <goals>
  61. <goal>npm</goal>
  62. </goals>
  63. <phase>generate-resources</phase>
  64. <configuration>
  65. <arguments>install</arguments>
  66. </configuration>
  67. </execution>
  68. <execution>
  69. <id>npm run build:release</id>
  70. <goals>
  71. <goal>npm</goal>
  72. </goals>
  73. <configuration>
  74. <arguments>run build:release</arguments>
  75. </configuration>
  76. </execution>
  77. </executions>
  78. </plugin>
  79. </plugins>
  80. </build>
  81. </project>