pom.xml 6.9 KB

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