pom.xml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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. </dependencies>
  75. <!-- <build>-->
  76. <!-- <plugins>-->
  77. <!-- <plugin>-->
  78. <!-- <groupId>org.springframework.boot</groupId>-->
  79. <!-- <artifactId>spring-boot-maven-plugin</artifactId>-->
  80. <!-- <version>2.1.1.RELEASE</version>-->
  81. <!-- <configuration>-->
  82. <!-- <fork>true</fork> &lt;!&ndash; 如果没有该配置,devtools不会生效 &ndash;&gt;-->
  83. <!-- </configuration>-->
  84. <!-- <executions>-->
  85. <!-- <execution>-->
  86. <!-- <goals>-->
  87. <!-- <goal>repackage</goal>-->
  88. <!-- </goals>-->
  89. <!-- </execution>-->
  90. <!-- </executions>-->
  91. <!-- </plugin>-->
  92. <!-- <plugin>-->
  93. <!-- <groupId>org.apache.maven.plugins</groupId>-->
  94. <!-- <artifactId>maven-war-plugin</artifactId>-->
  95. <!-- <version>3.1.0</version>-->
  96. <!-- <configuration>-->
  97. <!-- <failOnMissingWebXml>false</failOnMissingWebXml>-->
  98. <!-- <warName>${project.artifactId}</warName>-->
  99. <!-- </configuration>-->
  100. <!-- </plugin>-->
  101. <!-- </plugins>-->
  102. <!-- <finalName>${project.artifactId}</finalName>-->
  103. <!-- </build>-->
  104. <build>
  105. <plugins>
  106. <plugin>
  107. <groupId>org.apache.maven.plugins</groupId>
  108. <artifactId>maven-compiler-plugin</artifactId>
  109. <version>3.6.1</version>
  110. <configuration>
  111. <source>1.8</source>
  112. <target>1.8</target>
  113. <encoding>UTF-8</encoding>
  114. <!-- java8 保留参数名编译参数 -->
  115. <compilerArgument>-parameters</compilerArgument>
  116. <compilerArguments>
  117. <verbose />
  118. </compilerArguments>
  119. </configuration>
  120. </plugin>
  121. <!-- jar 包中的配置文件优先级高于 config 目录下的 "同名文件" 因此,打包时需要排除掉 jar 包中来自 src/main/resources
  122. 目录的 配置文件,否则部署时 config 目录中的同名配置文件不会生效 -->
  123. <plugin>
  124. <groupId>org.apache.maven.plugins</groupId>
  125. <artifactId>maven-jar-plugin</artifactId>
  126. <version>2.6</version>
  127. <configuration>
  128. <excludes>
  129. <exclude>*.txt</exclude>
  130. <!--juniorRay 修改不要忽略所有xml,否则mybatis找不到映射-->
  131. <!--<exclude>*.xml</exclude>-->
  132. <exclude>/*.xml</exclude><!-- ‘/’ 只过滤根目录下的xml,子文件不进行遍历 -->
  133. <!--JuniorRay 或者直接不用上面的,用下面这个指定具体文件-->
  134. <!-- <exclude>ehcache.xml</exclude>
  135. <exclude>logback.xml</exclude>-->
  136. <exclude>*.yml</exclude>
  137. <exclude>*.properties</exclude>
  138. </excludes>
  139. </configuration>
  140. </plugin>
  141. <!-- 使用 mvn clean package 打包 更多配置可参考官司方文档:http://maven.apache.org/plugins/maven-assembly-plugin/single-mojo.html -->
  142. <plugin>
  143. <groupId>org.apache.maven.plugins</groupId>
  144. <artifactId>maven-assembly-plugin</artifactId>
  145. <version>3.1.0</version>
  146. <executions>
  147. <execution>
  148. <id>make-assembly</id>
  149. <phase>package</phase>
  150. <goals>
  151. <goal>single</goal>
  152. </goals>
  153. <configuration>
  154. <!-- 打包生成的文件名 -->
  155. <finalName>${project.artifactId}</finalName>
  156. <!-- jar 等压缩文件在被打包进入 zip、tar.gz 时是否压缩,设置为 false 可加快打包速度 -->
  157. <recompressZippedFiles>false</recompressZippedFiles>
  158. <!-- 打包生成的文件是否要追加 release.xml 中定义的 id 值 -->
  159. <appendAssemblyId>true</appendAssemblyId>
  160. <!-- 指向打包描述文件 package.xml -->
  161. <descriptors>
  162. <descriptor>package.xml</descriptor>
  163. </descriptors>
  164. <!-- 打包结果输出的基础目录 -->
  165. <outputDirectory>${project.build.directory}/</outputDirectory>
  166. </configuration>
  167. </execution>
  168. </executions>
  169. </plugin>
  170. <plugin>
  171. <groupId>org.apache.maven.plugins</groupId>
  172. <artifactId>maven-surefire-plugin</artifactId>
  173. <version>2.18.1</version>
  174. <configuration>
  175. <skipTests>true</skipTests>
  176. </configuration>
  177. </plugin>
  178. </plugins>
  179. </build>
  180. </project>