pom.xml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>org.ssssssss</groupId>
  8. <artifactId>magic-api-plugins</artifactId>
  9. <version>2.0.2</version>
  10. </parent>
  11. <artifactId>magic-api-plugin-component</artifactId>
  12. <packaging>jar</packaging>
  13. <name>magic-api-plugin-component</name>
  14. <description>magic-api-plugin-component</description>
  15. <build>
  16. <plugins>
  17. <!-- npm install && npm run build -->
  18. <plugin>
  19. <groupId>org.codehaus.mojo</groupId>
  20. <artifactId>exec-maven-plugin</artifactId>
  21. <version>1.6.0</version>
  22. <executions>
  23. <execution>
  24. <id>exec-npm-install</id>
  25. <phase>generate-resources</phase>
  26. <goals>
  27. <goal>exec</goal>
  28. </goals>
  29. <configuration>
  30. <executable>npm</executable>
  31. <arguments>
  32. <argument>install</argument>
  33. </arguments>
  34. <workingDirectory>${basedir}/src/console</workingDirectory>
  35. </configuration>
  36. </execution>
  37. <execution>
  38. <id>exec-npm-run-build</id>
  39. <phase>generate-resources</phase>
  40. <goals>
  41. <goal>exec</goal>
  42. </goals>
  43. <configuration>
  44. <executable>npm</executable>
  45. <arguments>
  46. <argument>run</argument>
  47. <argument>build</argument>
  48. </arguments>
  49. <workingDirectory>${basedir}/src/console</workingDirectory>
  50. </configuration>
  51. </execution>
  52. </executions>
  53. </plugin>
  54. <plugin>
  55. <artifactId>maven-resources-plugin</artifactId>
  56. <version>3.2.0</version>
  57. <executions>
  58. <execution>
  59. <id>copy-resource</id>
  60. <phase>generate-resources</phase>
  61. <goals>
  62. <goal>copy-resources</goal>
  63. </goals>
  64. <configuration>
  65. <outputDirectory>${basedir}/target/classes/magic-editor/plugins</outputDirectory>
  66. <resources>
  67. <resource>
  68. <directory>${basedir}/src/console/dist</directory>
  69. </resource>
  70. </resources>
  71. </configuration>
  72. </execution>
  73. </executions>
  74. </plugin>
  75. </plugins>
  76. </build>
  77. </project>