pom.xml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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.4-SNAPSHOT</version>
  23. </parent>
  24. <modelVersion>4.0.0</modelVersion>
  25. <artifactId>dolphinscheduler-ui-next</artifactId>
  26. <name>${project.artifactId}</name>
  27. <properties>
  28. <node.version>v16.13.1</node.version>
  29. <npm.version>8.1.2</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</id>
  54. <goals>
  55. <goal>npm</goal>
  56. </goals>
  57. <phase>generate-resources</phase>
  58. <configuration>
  59. <arguments>install</arguments>
  60. </configuration>
  61. </execution>
  62. <execution>
  63. <id>npm run build:prod</id>
  64. <goals>
  65. <goal>npm</goal>
  66. </goals>
  67. <configuration>
  68. <arguments>run build:prod</arguments>
  69. </configuration>
  70. </execution>
  71. </executions>
  72. </plugin>
  73. </plugins>
  74. </build>
  75. </profile>
  76. </profiles>
  77. </project>