pom.xml 8.3 KB

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