pom.xml 3.3 KB

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