pom.xml 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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>ruoyi</artifactId>
  7. <groupId>com.ruoyi</groupId>
  8. <version>3.8.1</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <packaging>jar</packaging>
  12. <artifactId>ruoyi-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>mysql</groupId>
  37. <artifactId>mysql-connector-java</artifactId>
  38. </dependency>
  39. <!-- 单元测试 -->
  40. <dependency>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-starter-test</artifactId>
  43. </dependency>
  44. <dependency>
  45. <groupId>junit</groupId>
  46. <artifactId>junit</artifactId>
  47. <scope>test</scope>
  48. </dependency>
  49. <!-- 单元测试 -->
  50. <!-- 核心模块-->
  51. <dependency>
  52. <groupId>com.ruoyi</groupId>
  53. <artifactId>ruoyi-framework</artifactId>
  54. </dependency>
  55. <!-- 定时任务-->
  56. <dependency>
  57. <groupId>com.ruoyi</groupId>
  58. <artifactId>ruoyi-quartz</artifactId>
  59. </dependency>
  60. <!-- 代码生成-->
  61. <dependency>
  62. <groupId>com.ruoyi</groupId>
  63. <artifactId>ruoyi-generator</artifactId>
  64. </dependency>
  65. <!-- 基础信息-->
  66. <dependency>
  67. <groupId>com.ruoyi</groupId>
  68. <artifactId>warewms-base</artifactId>
  69. </dependency>
  70. <dependency>
  71. <groupId>com.ruoyi</groupId>
  72. <artifactId>warewms-ams</artifactId>
  73. </dependency>
  74. <dependency>
  75. <groupId>com.ruoyi</groupId>
  76. <artifactId>warewms-hard</artifactId>
  77. </dependency>
  78. <dependency>
  79. <groupId>com.ruoyi</groupId>
  80. <artifactId>ruoyi-dongfangyaiye</artifactId>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.springframework.boot</groupId>
  84. <artifactId>spring-boot-starter-actuator</artifactId>
  85. </dependency>
  86. </dependencies>
  87. <!-- <build>-->
  88. <!-- <plugins>-->
  89. <!-- <plugin>-->
  90. <!-- <groupId>org.springframework.boot</groupId>-->
  91. <!-- <artifactId>spring-boot-maven-plugin</artifactId>-->
  92. <!-- <version>2.1.1.RELEASE</version>-->
  93. <!-- <configuration>-->
  94. <!-- <fork>true</fork> &lt;!&ndash; 如果没有该配置,devtools不会生效 &ndash;&gt;-->
  95. <!-- </configuration>-->
  96. <!-- <executions>-->
  97. <!-- <execution>-->
  98. <!-- <goals>-->
  99. <!-- <goal>repackage</goal>-->
  100. <!-- </goals>-->
  101. <!-- </execution>-->
  102. <!-- </executions>-->
  103. <!-- </plugin>-->
  104. <!-- <plugin>-->
  105. <!-- <groupId>org.apache.maven.plugins</groupId>-->
  106. <!-- <artifactId>maven-war-plugin</artifactId>-->
  107. <!-- <version>3.1.0</version>-->
  108. <!-- <configuration>-->
  109. <!-- <failOnMissingWebXml>false</failOnMissingWebXml>-->
  110. <!-- <warName>${project.artifactId}</warName>-->
  111. <!-- </configuration>-->
  112. <!-- </plugin>-->
  113. <!-- </plugins>-->
  114. <!-- <finalName>${project.artifactId}</finalName>-->
  115. <!-- </build>-->
  116. <build>
  117. <plugins>
  118. <plugin>
  119. <groupId>org.apache.maven.plugins</groupId>
  120. <artifactId>maven-compiler-plugin</artifactId>
  121. <version>3.6.1</version>
  122. <configuration>
  123. <source>1.8</source>
  124. <target>1.8</target>
  125. <encoding>UTF-8</encoding>
  126. <!-- java8 保留参数名编译参数 -->
  127. <compilerArgument>-parameters</compilerArgument>
  128. <compilerArguments>
  129. <verbose />
  130. </compilerArguments>
  131. </configuration>
  132. </plugin>
  133. <!-- jar 包中的配置文件优先级高于 config 目录下的 "同名文件" 因此,打包时需要排除掉 jar 包中来自 src/main/resources
  134. 目录的 配置文件,否则部署时 config 目录中的同名配置文件不会生效 -->
  135. <plugin>
  136. <groupId>org.apache.maven.plugins</groupId>
  137. <artifactId>maven-jar-plugin</artifactId>
  138. <version>2.6</version>
  139. <configuration>
  140. <excludes>
  141. <exclude>*.txt</exclude>
  142. <!--juniorRay 修改不要忽略所有xml,否则mybatis找不到映射-->
  143. <!--<exclude>*.xml</exclude>-->
  144. <exclude>/*.xml</exclude><!-- ‘/’ 只过滤根目录下的xml,子文件不进行遍历 -->
  145. <!--JuniorRay 或者直接不用上面的,用下面这个指定具体文件-->
  146. <!-- <exclude>ehcache.xml</exclude>
  147. <exclude>logback.xml</exclude>-->
  148. <exclude>*.yml</exclude>
  149. <exclude>*.properties</exclude>
  150. </excludes>
  151. </configuration>
  152. </plugin>
  153. <!-- 使用 mvn clean package 打包 更多配置可参考官司方文档:http://maven.apache.org/plugins/maven-assembly-plugin/single-mojo.html -->
  154. <plugin>
  155. <groupId>org.apache.maven.plugins</groupId>
  156. <artifactId>maven-assembly-plugin</artifactId>
  157. <version>3.1.0</version>
  158. <executions>
  159. <execution>
  160. <id>make-assembly</id>
  161. <phase>package</phase>
  162. <goals>
  163. <goal>single</goal>
  164. </goals>
  165. <configuration>
  166. <!-- 打包生成的文件名 -->
  167. <finalName>${project.artifactId}</finalName>
  168. <!-- jar 等压缩文件在被打包进入 zip、tar.gz 时是否压缩,设置为 false 可加快打包速度 -->
  169. <recompressZippedFiles>false</recompressZippedFiles>
  170. <!-- 打包生成的文件是否要追加 release.xml 中定义的 id 值 -->
  171. <appendAssemblyId>true</appendAssemblyId>
  172. <!-- 指向打包描述文件 package.xml -->
  173. <descriptors>
  174. <descriptor>package.xml</descriptor>
  175. </descriptors>
  176. <!-- 打包结果输出的基础目录 -->
  177. <outputDirectory>${project.build.directory}/</outputDirectory>
  178. </configuration>
  179. </execution>
  180. </executions>
  181. </plugin>
  182. <plugin>
  183. <groupId>org.apache.maven.plugins</groupId>
  184. <artifactId>maven-surefire-plugin</artifactId>
  185. <version>2.18.1</version>
  186. <configuration>
  187. <skipTests>true</skipTests>
  188. </configuration>
  189. </plugin>
  190. </plugins>
  191. </build>
  192. </project>