pom.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>com.github.microservice</groupId>
  7. <artifactId>MSRunnable</artifactId>
  8. <version>1.0.0-SNAPSHOT</version>
  9. <relativePath>../../super/MSRunnable</relativePath>
  10. </parent>
  11. <groupId>com.github.microservice</groupId>
  12. <artifactId>BuildHelper</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>helper</name>
  15. <description>编译助手</description>
  16. <dependencies>
  17. <dependency>
  18. <groupId>com.github.microservice</groupId>
  19. <artifactId>PCore</artifactId>
  20. <version>1.0.0-SNAPSHOT</version>
  21. </dependency>
  22. <!--thymeleaf 依赖-->
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  26. <version>${spring-boot.version}</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.dom4j</groupId>
  30. <artifactId>dom4j</artifactId>
  31. <version>2.1.4</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.eclipse.jgit</groupId>
  35. <artifactId>org.eclipse.jgit</artifactId>
  36. <version>6.9.0.202403050737-r</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.apache.maven.shared</groupId>
  40. <artifactId>maven-invoker</artifactId>
  41. <version>3.3.0</version>
  42. </dependency>
  43. </dependencies>
  44. <build>
  45. <plugins>
  46. <plugin>
  47. <groupId>org.apache.maven.plugins</groupId>
  48. <artifactId>maven-resources-plugin</artifactId>
  49. <version>3.1.0</version>
  50. <executions>
  51. <execution>
  52. <phase>validate</phase>
  53. <goals>
  54. <goal>copy-resources</goal>
  55. </goals>
  56. <configuration>
  57. <!-- 输出目录 -->
  58. <outputDirectory>${project.build.outputDirectory}/tools</outputDirectory>
  59. <resources>
  60. <resource>
  61. <!-- 资源目录 -->
  62. <directory>${project.basedir}/tools</directory>
  63. <includes>
  64. <include>*.*</include>
  65. </includes>
  66. </resource>
  67. </resources>
  68. </configuration>
  69. </execution>
  70. </executions>
  71. <configuration>
  72. <nonFilteredFileExtensions>
  73. <nonFilteredFileExtension>com</nonFilteredFileExtension>
  74. <nonFilteredFileExtension>exe</nonFilteredFileExtension>
  75. <nonFilteredFileExtension>zip</nonFilteredFileExtension>
  76. <nonFilteredFileExtension>ttf</nonFilteredFileExtension>
  77. <nonFilteredFileExtension>woff</nonFilteredFileExtension>
  78. <nonFilteredFileExtension>woff2</nonFilteredFileExtension>
  79. </nonFilteredFileExtensions>
  80. </configuration>
  81. </plugin>
  82. <plugin>
  83. <groupId>org.apache.maven.plugins</groupId>
  84. <artifactId>maven-jar-plugin</artifactId>
  85. <configuration>
  86. <excludes>
  87. <!-- This is where the exclusion occurs -->
  88. <exclude>**/application-*.yml</exclude>
  89. </excludes>
  90. </configuration>
  91. </plugin>
  92. </plugins>
  93. <resources>
  94. <resource>
  95. <directory>src/main/resources</directory>
  96. <filtering>true</filtering>
  97. <excludes>
  98. <exclude>**/*.woff</exclude>
  99. <exclude>**/*.ttf</exclude>
  100. </excludes>
  101. </resource>
  102. <resource>
  103. <directory>src/main/resources</directory>
  104. <filtering>false</filtering>
  105. <includes>
  106. <include>**/*.woff</include>
  107. <include>**/*.ttf</include>
  108. </includes>
  109. </resource>
  110. </resources>
  111. </build>
  112. </project>