pom.xml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  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>jjt</artifactId>
  7. <groupId>com.jjt</groupId>
  8. <version>3.8.7</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <packaging>jar</packaging>
  12. <artifactId>jjt-admin</artifactId>
  13. <description>
  14. web服务入口
  15. </description>
  16. <dependencies>
  17. <!-- cloud extends start -->
  18. <dependency>
  19. <groupId>com.huaweicloud</groupId>
  20. <artifactId>spring-cloud-starter-huawei-servicecomb-discovery</artifactId>
  21. </dependency>
  22. <dependency>
  23. <groupId>com.alibaba.cloud</groupId>
  24. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>com.alibaba.cloud</groupId>
  28. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-actuator</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.springframework.cloud</groupId>
  36. <artifactId>spring-cloud-context</artifactId>
  37. </dependency>
  38. <!-- cloud extends end -->
  39. <!-- spring-boot-devtools -->
  40. <dependency>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-devtools</artifactId>
  43. <optional>true</optional> <!-- 表示依赖不会传递 -->
  44. </dependency>
  45. <!-- swagger3 -->
  46. <dependency>
  47. <groupId>io.springfox</groupId>
  48. <artifactId>springfox-boot-starter</artifactId>
  49. </dependency>
  50. <!-- 防止进入swagger页面报类型转换错误,排除3.0.0中的引用,手动增加1.6.2版本 -->
  51. <dependency>
  52. <groupId>io.swagger</groupId>
  53. <artifactId>swagger-models</artifactId>
  54. <version>1.6.2</version>
  55. </dependency>
  56. <!-- Mysql驱动包 -->
  57. <dependency>
  58. <groupId>com.mysql</groupId>
  59. <artifactId>mysql-connector-j</artifactId>
  60. <version>8.0.33</version>
  61. </dependency>
  62. <!-- 核心模块 -->
  63. <dependency>
  64. <groupId>com.jjt</groupId>
  65. <artifactId>jjt-framework</artifactId>
  66. </dependency>
  67. <!-- 定时任务 -->
  68. <dependency>
  69. <groupId>com.jjt</groupId>
  70. <artifactId>jjt-quartz</artifactId>
  71. </dependency>
  72. <!-- 业务模块 -->
  73. <dependency>
  74. <groupId>com.jjt</groupId>
  75. <artifactId>jjt-biz</artifactId>
  76. </dependency>
  77. <!-- 代码生成 -->
  78. <dependency>
  79. <groupId>com.jjt</groupId>
  80. <artifactId>jjt-generator</artifactId>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.springframework.boot</groupId>
  84. <artifactId>spring-boot-starter-test</artifactId>
  85. <scope>test</scope>
  86. </dependency>
  87. </dependencies>
  88. <build>
  89. <plugins>
  90. <plugin>
  91. <groupId>org.springframework.boot</groupId>
  92. <artifactId>spring-boot-maven-plugin</artifactId>
  93. <version>2.5.15</version>
  94. <configuration>
  95. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  96. </configuration>
  97. <executions>
  98. <execution>
  99. <goals>
  100. <goal>repackage</goal>
  101. </goals>
  102. </execution>
  103. </executions>
  104. </plugin>
  105. <plugin>
  106. <groupId>org.apache.maven.plugins</groupId>
  107. <artifactId>maven-war-plugin</artifactId>
  108. <version>3.1.0</version>
  109. <configuration>
  110. <failOnMissingWebXml>false</failOnMissingWebXml>
  111. <warName>${project.artifactId}</warName>
  112. </configuration>
  113. </plugin>
  114. <!--下面这段是分离打包 -->
  115. <!-- <plugin> -->
  116. <!-- <groupId>org.springframework.boot</groupId> -->
  117. <!-- <artifactId>spring-boot-maven-plugin</artifactId> -->
  118. <!-- <version>2.5.15</version> -->
  119. <!-- <configuration> -->
  120. <!-- <fork>true</fork> &lt;!&ndash; 如果没有该配置,devtools不会生效 &ndash;&gt; -->
  121. <!-- <executable>true</executable> -->
  122. <!-- <layout>ZIP</layout> -->
  123. <!-- &lt;!&ndash;这里是填写需要包含进去的jar, -->
  124. <!-- 必须项目中的某些模块,会经常变动,那么就应该将其坐标写进来 -->
  125. <!-- 如果没有则nothing ,表示不打包依赖 &ndash;&gt; -->
  126. <!-- <includes> -->
  127. <!-- &lt;!&ndash; 定时任务&ndash;&gt; -->
  128. <!-- <include> -->
  129. <!-- <groupId>com.jjt</groupId> -->
  130. <!-- <artifactId>jjt-quartz</artifactId> -->
  131. <!-- </include> -->
  132. <!-- &lt;!&ndash; 代码生成&ndash;&gt; -->
  133. <!-- <include> -->
  134. <!-- <groupId>com.jjt</groupId> -->
  135. <!-- <artifactId>jjt-generator</artifactId> -->
  136. <!-- </include> -->
  137. <!-- &lt;!&ndash; 核心模块&ndash;&gt; -->
  138. <!-- <include> -->
  139. <!-- <groupId>com.jjt</groupId> -->
  140. <!-- <artifactId>jjt-framework</artifactId> -->
  141. <!-- </include> -->
  142. <!-- &lt;!&ndash; 系统模块&ndash;&gt; -->
  143. <!-- <include> -->
  144. <!-- <groupId>com.jjt</groupId> -->
  145. <!-- <artifactId>jjt-system</artifactId> -->
  146. <!-- </include> -->
  147. <!-- &lt;!&ndash; 通用工具&ndash;&gt; -->
  148. <!-- <include> -->
  149. <!-- <groupId>com.jjt</groupId> -->
  150. <!-- <artifactId>jjt-common</artifactId> -->
  151. <!-- </include> -->
  152. <!-- &lt;!&ndash; 业务模块&ndash;&gt; -->
  153. <!-- <include> -->
  154. <!-- <groupId>com.jjt</groupId> -->
  155. <!-- <artifactId>jjt-biz</artifactId> -->
  156. <!-- </include> -->
  157. <!-- </includes> -->
  158. <!-- </configuration> -->
  159. <!-- <executions> -->
  160. <!-- <execution> -->
  161. <!-- <goals> -->
  162. <!-- <goal>repackage</goal> -->
  163. <!-- </goals> -->
  164. <!-- </execution> -->
  165. <!-- </executions> -->
  166. <!-- </plugin> -->
  167. <!-- &lt;!&ndash;拷贝依赖到jar外面的lib目录&ndash;&gt; -->
  168. <!-- <plugin> -->
  169. <!-- <groupId>org.apache.maven.plugins</groupId> -->
  170. <!-- <artifactId>maven-dependency-plugin</artifactId> -->
  171. <!-- <executions> -->
  172. <!-- <execution> -->
  173. <!-- <id>copy</id> -->
  174. <!-- <phase>package</phase> -->
  175. <!-- <goals> -->
  176. <!-- <goal>copy-dependencies</goal> -->
  177. <!-- </goals> -->
  178. <!-- <configuration> -->
  179. <!-- &lt;!&ndash;指定的依赖路径&ndash;&gt; -->
  180. <!-- <outputDirectory>${project.build.directory}/lib</outputDirectory> -->
  181. <!-- &lt;!&ndash;排除的ArtifactId&ndash;&gt; -->
  182. <!-- <excludeArtifactIds>jjt-framework,jjt-system,jjt-quartz,jjt-generator,jjt-common,jjt-biz -->
  183. <!-- </excludeArtifactIds> -->
  184. <!-- </configuration> -->
  185. <!-- </execution> -->
  186. <!-- </executions> -->
  187. <!-- </plugin> -->
  188. </plugins>
  189. <finalName>jy2024</finalName>
  190. </build>
  191. </project>