pom.xml 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns="http://maven.apache.org/POM/4.0.0"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>org.ssssssss</groupId>
  8. <artifactId>magic-api-plugins</artifactId>
  9. <version>2.1.1</version>
  10. </parent>
  11. <artifactId>magic-api-plugin-task</artifactId>
  12. <packaging>jar</packaging>
  13. <name>magic-api-plugin-task</name>
  14. <description>magic-api-plugin-task</description>
  15. <dependencies>
  16. <dependency>
  17. <groupId>org.springframework.boot</groupId>
  18. <artifactId>spring-boot-starter-web</artifactId>
  19. <scope>provided</scope>
  20. </dependency>
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-configuration-processor</artifactId>
  24. <optional>true</optional>
  25. </dependency>
  26. </dependencies>
  27. <build>
  28. <plugins>
  29. <!-- npm install && npm run build -->
  30. <plugin>
  31. <groupId>org.codehaus.mojo</groupId>
  32. <artifactId>exec-maven-plugin</artifactId>
  33. <version>1.6.0</version>
  34. <executions>
  35. <execution>
  36. <id>exec-npm-install</id>
  37. <phase>generate-resources</phase>
  38. <goals>
  39. <goal>exec</goal>
  40. </goals>
  41. <configuration>
  42. <executable>npm</executable>
  43. <arguments>
  44. <argument>install</argument>
  45. </arguments>
  46. <workingDirectory>${basedir}/src/console</workingDirectory>
  47. </configuration>
  48. </execution>
  49. <execution>
  50. <id>exec-npm-run-build</id>
  51. <phase>generate-resources</phase>
  52. <goals>
  53. <goal>exec</goal>
  54. </goals>
  55. <configuration>
  56. <executable>npm</executable>
  57. <arguments>
  58. <argument>run</argument>
  59. <argument>build</argument>
  60. </arguments>
  61. <workingDirectory>${basedir}/src/console</workingDirectory>
  62. </configuration>
  63. </execution>
  64. </executions>
  65. </plugin>
  66. <plugin>
  67. <artifactId>maven-resources-plugin</artifactId>
  68. <version>3.2.0</version>
  69. <executions>
  70. <execution>
  71. <id>copy-resource</id>
  72. <phase>generate-resources</phase>
  73. <goals>
  74. <goal>copy-resources</goal>
  75. </goals>
  76. <configuration>
  77. <outputDirectory>${basedir}/target/classes/magic-editor/plugins</outputDirectory>
  78. <resources>
  79. <resource>
  80. <directory>${basedir}/src/console/dist</directory>
  81. </resource>
  82. </resources>
  83. </configuration>
  84. </execution>
  85. </executions>
  86. </plugin>
  87. </plugins>
  88. </build>
  89. </project>