pom.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <artifactId>yun-teng-iot</artifactId>
  7. <groupId>com.codeez</groupId>
  8. <version>0.0.1</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <packaging>jar</packaging>
  12. <artifactId>yun-teng-iot-ui</artifactId>
  13. <properties>
  14. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  15. <main.dir>${basedir}/..</main.dir>
  16. </properties>
  17. <build>
  18. <resources>
  19. <resource>
  20. <directory>${project.build.directory}/generated-resources</directory>
  21. </resource>
  22. </resources>
  23. <plugins>
  24. <plugin>
  25. <groupId>com.github.eirslett</groupId>
  26. <artifactId>frontend-maven-plugin</artifactId>
  27. <version>1.7.5</version>
  28. <configuration>
  29. <installDirectory>target</installDirectory>
  30. <workingDirectory>${basedir}</workingDirectory>
  31. </configuration>
  32. <executions>
  33. <execution>
  34. <id>install node and npm</id>
  35. <goals>
  36. <goal>install-node-and-yarn</goal>
  37. </goals>
  38. <configuration>
  39. <nodeVersion>v12.16.1</nodeVersion>
  40. <yarnVersion>v1.22.4</yarnVersion>
  41. </configuration>
  42. </execution>
  43. <execution>
  44. <id>yarn install</id>
  45. <goals>
  46. <goal>yarn</goal>
  47. </goals>
  48. <configuration>
  49. <arguments>install</arguments>
  50. </configuration>
  51. </execution>
  52. </executions>
  53. </plugin>
  54. </plugins>
  55. </build>
  56. <profiles>
  57. <profile>
  58. <id>yarn-build</id>
  59. <activation>
  60. <activeByDefault>true</activeByDefault>
  61. </activation>
  62. <build>
  63. <plugins>
  64. <plugin>
  65. <groupId>com.github.eirslett</groupId>
  66. <artifactId>frontend-maven-plugin</artifactId>
  67. <version>1.7.5</version>
  68. <configuration>
  69. <installDirectory>target</installDirectory>
  70. <workingDirectory>${basedir}</workingDirectory>
  71. </configuration>
  72. <executions>
  73. <execution>
  74. <id>yarn build</id>
  75. <goals>
  76. <goal>yarn</goal>
  77. </goals>
  78. <configuration>
  79. <arguments>build</arguments>
  80. </configuration>
  81. </execution>
  82. </executions>
  83. </plugin>
  84. </plugins>
  85. </build>
  86. </profile>
  87. <!-- <profile>-->
  88. <!-- <id>yarn-serve</id>-->
  89. <!-- <activation>-->
  90. <!-- <property>-->
  91. <!-- <name>yarn-serve</name>-->
  92. <!-- </property>-->
  93. <!-- </activation>-->
  94. <!-- <build>-->
  95. <!-- <plugins>-->
  96. <!-- <plugin>-->
  97. <!-- <groupId>com.github.eirslett</groupId>-->
  98. <!-- <artifactId>frontend-maven-plugin</artifactId>-->
  99. <!-- <version>1.7.5</version>-->
  100. <!-- <configuration>-->
  101. <!-- <installDirectory>target</installDirectory>-->
  102. <!-- <workingDirectory>${basedir}</workingDirectory>-->
  103. <!-- </configuration>-->
  104. <!-- <executions>-->
  105. <!-- <execution>-->
  106. <!-- <id>yarn serve</id>-->
  107. <!-- <goals>-->
  108. <!-- <goal>yarn</goal>-->
  109. <!-- </goals>-->
  110. <!-- <configuration>-->
  111. <!-- <arguments>serve</arguments>-->
  112. <!-- </configuration>-->
  113. <!-- </execution>-->
  114. <!-- </executions>-->
  115. <!-- </plugin>-->
  116. <!-- </plugins>-->
  117. <!-- </build>-->
  118. <!-- </profile>-->
  119. </profiles>
  120. </project>