pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  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>prod-line</artifactId>
  7. <groupId>com.huaxia</groupId>
  8. <version>1.0-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>prod-line-admin</artifactId>
  12. <dependencies>
  13. <dependency>
  14. <groupId>com.baomidou</groupId>
  15. <artifactId>mybatis-plus-core</artifactId>
  16. <version>${mybatis-plus.version}</version>
  17. <scope>compile</scope>
  18. </dependency>
  19. <dependency>
  20. <groupId>com.baomidou</groupId>
  21. <artifactId>mybatis-plus-extension</artifactId>
  22. <version>${mybatis-plus.version}</version>
  23. <scope>compile</scope>
  24. </dependency>
  25. <dependency>
  26. <groupId>com.huaxia</groupId>
  27. <artifactId>prod-line-bas</artifactId>
  28. <version>1.0-SNAPSHOT</version>
  29. <exclusions>
  30. <exclusion>
  31. <artifactId>mybatis</artifactId>
  32. <groupId>org.mybatis</groupId>
  33. </exclusion>
  34. <exclusion>
  35. <artifactId>ruoyi-framework</artifactId>
  36. <groupId>com.ruoyi</groupId>
  37. </exclusion>
  38. </exclusions>
  39. </dependency>
  40. <dependency>
  41. <groupId>com.huaxia</groupId>
  42. <artifactId>prod-line-imes</artifactId>
  43. <version>1.0-SNAPSHOT</version>
  44. <exclusions>
  45. <exclusion>
  46. <artifactId>mybatis</artifactId>
  47. <groupId>org.mybatis</groupId>
  48. </exclusion>
  49. </exclusions>
  50. </dependency>
  51. <dependency>
  52. <groupId>com.ruoyi</groupId>
  53. <artifactId>ruoyi-common</artifactId>
  54. <version>${ruoyi.version}</version>
  55. <exclusions>
  56. <exclusion>
  57. <artifactId>mybatis</artifactId>
  58. <groupId>org.mybatis</groupId>
  59. </exclusion>
  60. <exclusion>
  61. <groupId>com.ruoyi</groupId>
  62. <artifactId>ruoyi-framework</artifactId>
  63. </exclusion>
  64. </exclusions>
  65. </dependency>
  66. <dependency>
  67. <groupId>com.ruoyi</groupId>
  68. <artifactId>ruoyi-framework</artifactId>
  69. <version>${ruoyi.version}-erp</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>com.ruoyi</groupId>
  73. <artifactId>ruoyi-system</artifactId>
  74. <version>${ruoyi.version}</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>cmpt</groupId>
  78. <artifactId>cmpt-ruoyi</artifactId>
  79. <version>${ruoyi.version}</version>
  80. <exclusions>
  81. <exclusion>
  82. <artifactId>ruoyi-framework</artifactId>
  83. <groupId>com.ruoyi</groupId>
  84. </exclusion>
  85. </exclusions>
  86. </dependency>
  87. <dependency>
  88. <groupId>cmpt</groupId>
  89. <artifactId>cmpt-ruoyiplus</artifactId>
  90. <version>1.0.1-SNAPSHOT</version>
  91. <exclusions>
  92. <exclusion>
  93. <groupId>cmpt</groupId>
  94. <artifactId>cmpt-ruoyi</artifactId>
  95. </exclusion>
  96. </exclusions>
  97. </dependency>
  98. <!-- Lombok -->
  99. <dependency>
  100. <groupId>org.projectlombok</groupId>
  101. <artifactId>lombok</artifactId>
  102. </dependency>
  103. <!-- 测试 -->
  104. <dependency>
  105. <groupId>org.springframework.boot</groupId>
  106. <artifactId>spring-boot-test</artifactId>
  107. <scope>test</scope>
  108. </dependency>
  109. <dependency>
  110. <groupId>junit</groupId>
  111. <artifactId>junit</artifactId>
  112. <scope>test</scope>
  113. </dependency>
  114. <dependency>
  115. <groupId>org.springframework</groupId>
  116. <artifactId>spring-test</artifactId>
  117. <scope>test</scope>
  118. </dependency>
  119. <!-- Mysql驱动包 -->
  120. <dependency>
  121. <groupId>com.mysql</groupId>
  122. <artifactId>mysql-connector-j</artifactId>
  123. <version>8.2.0</version>
  124. </dependency>
  125. <!--sql server驱动-->
  126. <dependency>
  127. <groupId>com.microsoft.sqlserver</groupId>
  128. <artifactId>mssql-jdbc</artifactId>
  129. <version>9.2.1.jre8</version>
  130. </dependency>
  131. <dependency>
  132. <groupId>cmpt</groupId>
  133. <artifactId>cmpt-mbr-web</artifactId>
  134. <version>1.0.1-SNAPSHOT</version>
  135. </dependency>
  136. <!-- 文件上传 -->
  137. <dependency>
  138. <groupId>cmpt</groupId>
  139. <artifactId>cmpt-oss</artifactId>
  140. <version>1.0.1-SNAPSHOT</version>
  141. </dependency>
  142. <!-- 变动日志 -->
  143. <dependency>
  144. <groupId>cmpt</groupId>
  145. <artifactId>cmpt-changelog</artifactId>
  146. <version>1.0.1-SNAPSHOT</version>
  147. </dependency>
  148. <!-- &lt;!&ndash; 接入ruoyi-sync组织架构同步 &ndash;&gt;-->
  149. <!-- <dependency>-->
  150. <!-- <groupId>cmpt</groupId>-->
  151. <!-- <artifactId>cmpt-ruoyi-sync</artifactId>-->
  152. <!-- <version>1.0.1-SNAPSHOT</version>-->
  153. <!-- </dependency>-->
  154. <dependency>
  155. <groupId>com.soaringloong</groupId>
  156. <artifactId>jfrm-spring-boot-starter-web</artifactId>
  157. <version>1.0.1-jdk17-snapshot</version>
  158. </dependency>
  159. </dependencies>
  160. <build>
  161. <finalName>${project.artifactId}</finalName>
  162. <plugins>
  163. <!--<plugin>
  164. <groupId>org.springframework.boot</groupId>
  165. <artifactId>spring-boot-maven-plugin</artifactId>
  166. <version>${spring-boot.version}</version>
  167. <configuration>
  168. <fork>true</fork> &lt;!&ndash; 如果没有该配置,devtools不会生效 &ndash;&gt;
  169. </configuration>
  170. <executions>
  171. <execution>
  172. <goals>
  173. <goal>repackage</goal>
  174. </goals>
  175. </execution>
  176. </executions>
  177. </plugin>
  178. <plugin>
  179. <groupId>org.apache.maven.plugins</groupId>
  180. <artifactId>maven-war-plugin</artifactId>
  181. <version>3.1.0</version>
  182. <configuration>
  183. <failOnMissingWebXml>false</failOnMissingWebXml>
  184. <warName>${project.artifactId}</warName>
  185. </configuration>
  186. </plugin>-->
  187. <!-- 配置文件与资源文件 拷贝到config目录 -->
  188. <plugin>
  189. <groupId>org.apache.maven.plugins</groupId>
  190. <artifactId>maven-resources-plugin</artifactId>
  191. <version>2.6</version>
  192. <executions>
  193. <execution>
  194. <id>copy-resources</id>
  195. <phase>package</phase>
  196. <goals>
  197. <goal>copy-resources</goal>
  198. </goals>
  199. <configuration>
  200. <!-- 配置文件输出到单独的目录 config,这些文件最终不打包到jar中 -->
  201. <outputDirectory>${project.build.directory}/config</outputDirectory>
  202. <resources>
  203. <resource>
  204. <directory>src/main/resources</directory>
  205. <!-- 特殊的资源文件不输出到单独的目录,这些文件最终会打包到jar中 -->
  206. <excludes>
  207. <exclude>**/i18n/**</exclude>
  208. <exclude>**/mybatis/**</exclude>
  209. <exclude>**/public/**</exclude>
  210. <exclude>**/static/**</exclude>
  211. <exclude>**/templates/**</exclude>
  212. <exclude>**/db/**</exclude>
  213. <exclude>spy.properties</exclude>
  214. <exclude>rebel.xml</exclude>
  215. </excludes>
  216. </resource>
  217. </resources>
  218. </configuration>
  219. </execution>
  220. </executions>
  221. </plugin>
  222. <!-- 配置文件与资源文件 不打进主程序jar包
  223. 主程序jar包的META-INFO/MANIFEST文件写入依赖jar定义
  224. -->
  225. <plugin>
  226. <groupId>org.apache.maven.plugins</groupId>
  227. <artifactId>maven-jar-plugin</artifactId>
  228. <version>${maven-jar-plugin.version}</version>
  229. <configuration>
  230. <excludes>
  231. <exclude>**/application*.yml</exclude>
  232. <exclude>**/application*.properties</exclude>
  233. <exclude>**/logback*.xml</exclude>
  234. <exclude>**/log4j*.xml</exclude>
  235. <exclude>**/bootstrap.yml</exclude>
  236. <exclude>**/setting.properties</exclude>
  237. <exclude>**/rebel.xml</exclude>
  238. </excludes>
  239. <archive>
  240. <manifest>
  241. <addClasspath>true</addClasspath>
  242. <classpathPrefix>lib/</classpathPrefix>
  243. <useUniqueVersions>false</useUniqueVersions>
  244. </manifest>
  245. </archive>
  246. </configuration>
  247. </plugin>
  248. <!-- 依赖库单独输出到 lib 目录,不打进主程序 -->
  249. <plugin>
  250. <groupId>org.apache.maven.plugins</groupId>
  251. <artifactId>maven-dependency-plugin</artifactId>
  252. <version>3.6.1</version>
  253. <executions>
  254. <execution>
  255. <id>copy-dependencies</id>
  256. <phase>package</phase>
  257. <goals>
  258. <goal>copy-dependencies</goal>
  259. </goals>
  260. <configuration>
  261. <!--
  262. 各子模块按照实际层级定义各模块对应的属性值,检查所有微服务模块依赖jar文件合并复制到同一个目录
  263. 详见各子模块中 boot-jar-output 属性定义
  264. -->
  265. <!--
  266. <outputDirectory>${boot-jar-output}/lib</outputDirectory>
  267. -->
  268. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  269. <includeScope>runtime</includeScope>
  270. <excludeTransitive>false</excludeTransitive>
  271. <stripVersion>false</stripVersion>
  272. <!--<silent>true</silent>-->
  273. <overWriteReleases>false</overWriteReleases>
  274. <overWriteSnapshots>false</overWriteSnapshots>
  275. <overWriteIfNewer>true</overWriteIfNewer>
  276. </configuration>
  277. </execution>
  278. </executions>
  279. </plugin>
  280. <!-- springboot 重新打主程序jar包,排除所有maven依赖jar -->
  281. <plugin>
  282. <groupId>org.springframework.boot</groupId>
  283. <artifactId>spring-boot-maven-plugin</artifactId>
  284. <version>${spring-boot.version}</version>
  285. <configuration>
  286. <includeSystemScope>true</includeSystemScope>
  287. <mainClass>com.huaxia.ProdApplication</mainClass>
  288. <!-- 排除所有maven依赖jar -->
  289. <includes>
  290. <include>
  291. <groupId>null</groupId>
  292. <artifactId>null</artifactId>
  293. </include>
  294. </includes>
  295. <layout>ZIP</layout>
  296. <!--<outputDirectory>${boot-jar-output}</outputDirectory>-->
  297. </configuration>
  298. <executions>
  299. <execution>
  300. <goals>
  301. <goal>repackage</goal><!-- 重新打包成springboot的可运行jar包 -->
  302. </goals>
  303. </execution>
  304. </executions>
  305. </plugin>
  306. </plugins>
  307. </build>
  308. </project>