You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

124 lines
4.4 KiB

6 days ago
  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>chenhai</artifactId>
  7. <groupId>com.chenhai</groupId>
  8. <version>3.9.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <packaging>jar</packaging>
  12. <artifactId>chenhai-admin</artifactId>
  13. <description>
  14. web服务入口
  15. </description>
  16. <dependencies>
  17. <!-- spring-boot-devtools -->
  18. <dependency>
  19. <groupId>org.springframework.boot</groupId>
  20. <artifactId>spring-boot-devtools</artifactId>
  21. <optional>true</optional> <!-- 表示依赖不会传递 -->
  22. </dependency>
  23. <!-- spring-doc -->
  24. <dependency>
  25. <groupId>org.springdoc</groupId>
  26. <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
  27. </dependency>
  28. <!-- Mysql驱动包 -->
  29. <dependency>
  30. <groupId>com.mysql</groupId>
  31. <artifactId>mysql-connector-j</artifactId>
  32. </dependency>
  33. <!-- 核心模块-->
  34. <dependency>
  35. <groupId>com.chenhai</groupId>
  36. <artifactId>chenhai-framework</artifactId>
  37. </dependency>
  38. <!-- 定时任务-->
  39. <dependency>
  40. <groupId>com.chenhai</groupId>
  41. <artifactId>chenhai-quartz</artifactId>
  42. </dependency>
  43. <!-- 代码生成-->
  44. <dependency>
  45. <groupId>com.chenhai</groupId>
  46. <artifactId>chenhai-generator</artifactId>
  47. </dependency>
  48. <!-- ai-->
  49. <dependency>
  50. <groupId>com.chenhai</groupId>
  51. <artifactId>chenhai-ai</artifactId>
  52. </dependency>
  53. </dependencies>
  54. <build>
  55. <plugins>
  56. <plugin>
  57. <groupId>org.springframework.boot</groupId>
  58. <artifactId>spring-boot-maven-plugin</artifactId>
  59. <version>3.5.4</version>
  60. <configuration>
  61. <addResources>true</addResources>
  62. </configuration>
  63. <executions>
  64. <execution>
  65. <goals>
  66. <goal>repackage</goal>
  67. </goals>
  68. </execution>
  69. </executions>
  70. </plugin>
  71. <!-- ==================== 我添加的配置开始 ==================== -->
  72. <!-- 资源解压插件:将chenhai-ai模块的提示词文件解压到当前模块 -->
  73. <plugin>
  74. <groupId>org.apache.maven.plugins</groupId>
  75. <artifactId>maven-dependency-plugin</artifactId>
  76. <executions>
  77. <execution>
  78. <id>unpack-ai-resources</id>
  79. <phase>generate-resources</phase>
  80. <goals>
  81. <goal>unpack</goal>
  82. </goals>
  83. <configuration>
  84. <artifactItems>
  85. <artifactItem>
  86. <groupId>com.chenhai</groupId>
  87. <artifactId>chenhai-ai</artifactId>
  88. <type>jar</type>
  89. <overWrite>true</overWrite>
  90. <outputDirectory>${project.build.outputDirectory}</outputDirectory>
  91. <includes>**/prompts/**</includes>
  92. </artifactItem>
  93. </artifactItems>
  94. </configuration>
  95. </execution>
  96. </executions>
  97. </plugin>
  98. <!-- ==================== 我添加的配置结束 ==================== -->
  99. <plugin>
  100. <groupId>org.apache.maven.plugins</groupId>
  101. <artifactId>maven-war-plugin</artifactId>
  102. <version>3.1.0</version>
  103. <configuration>
  104. <failOnMissingWebXml>false</failOnMissingWebXml>
  105. <warName>${project.artifactId}</warName>
  106. </configuration>
  107. </plugin>
  108. </plugins>
  109. <finalName>${project.artifactId}</finalName>
  110. </build>
  111. </project>