pom.xml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.1.4.RELEASE</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.shcd</groupId>
  12. <artifactId>supervision</artifactId>
  13. <name>supervision</name>
  14. <packaging>jar</packaging>
  15. <description>Demo project for Supervision</description>
  16. <dependencyManagement>
  17. <dependencies>
  18. <dependency>
  19. <groupId>org.springframework.boot</groupId>
  20. <artifactId>spring-boot-dependencies</artifactId>
  21. <version>2.1.4.RELEASE</version>
  22. <type>pom</type>
  23. <scope>import</scope>
  24. </dependency>
  25. </dependencies>
  26. </dependencyManagement>
  27. <properties>
  28. <java.version>1.8</java.version>
  29. <commons-lang3.version>3.4</commons-lang3.version>
  30. <skipTests>true</skipTests> <!--mvn命令打包跳过test-->
  31. <!--版本号-->
  32. <axis2.version>1.6.2</axis2.version>
  33. </properties>
  34. <dependencies>
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter-jdbc</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.springframework.boot</groupId>
  41. <artifactId>spring-boot-starter-mail</artifactId>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.springframework.boot</groupId>
  45. <artifactId>spring-boot-starter-web</artifactId>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.mybatis.spring.boot</groupId>
  49. <artifactId>mybatis-spring-boot-starter</artifactId>
  50. <version>2.1.1</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>com.baomidou</groupId>
  54. <artifactId>mybatis-plus-boot-starter</artifactId>
  55. <version>3.4.1</version>
  56. </dependency>
  57. <!-- <dependency>-->
  58. <!-- <groupId>com.shanghaigeography</groupId>-->
  59. <!-- <artifactId>Infrastructure</artifactId>-->
  60. <!-- <version>1.1-SNAPSHOT</version>-->
  61. <!-- <scope>system</scope>-->
  62. <!-- <systemPath>${project.basedir}/libs/Infrastructure-1.1-SNAPSHOT.jar</systemPath>-->
  63. <!-- </dependency>-->
  64. <!--数据库连接驱动 连接配置修改时间-->
  65. <!--模板引擎-->
  66. <dependency>
  67. <groupId>org.apache.velocity</groupId>
  68. <artifactId>velocity-engine-core</artifactId>
  69. <version>2.2</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>com.baomidou</groupId>
  73. <artifactId>mybatis-plus-generator</artifactId>
  74. <version>3.3.0</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.springframework.boot</groupId>
  78. <artifactId>spring-boot-starter-freemarker</artifactId>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.springframework.boot</groupId>
  82. <artifactId>spring-boot-devtools</artifactId>
  83. <scope>runtime</scope>
  84. <optional>true</optional>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.projectlombok</groupId>
  88. <artifactId>lombok</artifactId>
  89. <optional>true</optional>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.springframework.boot</groupId>
  93. <artifactId>spring-boot-starter-test</artifactId>
  94. <scope>test</scope>
  95. </dependency>
  96. <dependency>
  97. <groupId>com.github.pagehelper</groupId>
  98. <artifactId>pagehelper-spring-boot-starter</artifactId>
  99. <version>1.2.13</version>
  100. </dependency>
  101. <dependency>
  102. <groupId>com.alibaba</groupId>
  103. <artifactId>fastjson</artifactId>
  104. <version>1.2.83</version>
  105. </dependency>
  106. <!--swagger-->
  107. <dependency>
  108. <groupId>io.springfox</groupId>
  109. <artifactId>springfox-swagger-ui</artifactId>
  110. <version>2.9.2</version>
  111. <scope>test</scope>
  112. </dependency>
  113. <dependency>
  114. <groupId>io.swagger</groupId>
  115. <artifactId>swagger-annotations</artifactId>
  116. <version>1.5.20</version>
  117. <scope>compile</scope>
  118. </dependency>
  119. <dependency>
  120. <groupId>io.springfox</groupId>
  121. <artifactId>springfox-swagger2</artifactId>
  122. <version>2.9.2</version>
  123. <scope>compile</scope>
  124. </dependency>
  125. <!--jwt权限控制-->
  126. <dependency>
  127. <groupId>com.auth0</groupId>
  128. <artifactId>java-jwt</artifactId>
  129. <version>3.2.0</version>
  130. </dependency>
  131. <!--日志-->
  132. <dependency>
  133. <groupId>log4j</groupId>
  134. <artifactId>log4j</artifactId>
  135. <version>1.2.17</version>
  136. </dependency>
  137. <!--移除内嵌的Tomcat-->
  138. <dependency>
  139. <groupId>org.springframework.boot</groupId>
  140. <artifactId>spring-boot-starter-tomcat</artifactId>
  141. </dependency>
  142. <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
  143. <dependency>
  144. <groupId>org.apache.commons</groupId>
  145. <artifactId>commons-lang3</artifactId>
  146. <version>${commons-lang3.version}</version>
  147. </dependency>
  148. <dependency>
  149. <groupId>cn.hutool</groupId>
  150. <artifactId>hutool-all</artifactId>
  151. <version>5.5.2</version>
  152. </dependency>
  153. <dependency>
  154. <groupId>org.apache.httpcomponents</groupId>
  155. <artifactId>httpmime</artifactId>
  156. <version>4.5</version>
  157. </dependency>
  158. <dependency>
  159. <groupId>org.jetbrains</groupId>
  160. <artifactId>annotations</artifactId>
  161. <version>19.0.0</version>
  162. <scope>compile</scope>
  163. </dependency>
  164. <dependency>
  165. <groupId>com.dm</groupId>
  166. <artifactId>DmJdbcDriver17</artifactId>
  167. <version>1.7</version>
  168. </dependency>
  169. <dependency>
  170. <groupId>org.projectlombok</groupId>
  171. <artifactId>lombok</artifactId>
  172. <optional>true</optional>
  173. </dependency>
  174. <dependency>
  175. <groupId>org.springframework.boot</groupId>
  176. <artifactId>spring-boot-starter-test</artifactId>
  177. <scope>test</scope>
  178. </dependency>
  179. </dependencies>
  180. <build>
  181. <finalName>supervision</finalName>
  182. <plugins>
  183. <plugin>
  184. <groupId>org.springframework.boot</groupId>
  185. <artifactId>spring-boot-maven-plugin</artifactId>
  186. <configuration>
  187. <includeSystemScope>true</includeSystemScope>
  188. <mainClass>com.shcd.SupervisionApplication</mainClass>
  189. <excludes>
  190. <exclude>
  191. <groupId>org.projectlombok</groupId>
  192. <artifactId>lombok</artifactId>
  193. </exclude>
  194. </excludes>
  195. </configuration>
  196. </plugin>
  197. <plugin>
  198. <groupId>org.apache.maven.plugins</groupId>
  199. <artifactId>maven-dependency-plugin</artifactId>
  200. <version>2.10</version>
  201. <executions>
  202. <execution>
  203. <id>copy-dependencies</id>
  204. <phase>compile</phase>
  205. <goals>
  206. <goal>copy-dependencies</goal>
  207. </goals>
  208. <configuration>
  209. <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/lib</outputDirectory>
  210. <includeScope>system</includeScope>
  211. </configuration>
  212. </execution>
  213. </executions>
  214. </plugin>
  215. </plugins>
  216. <resources>
  217. <resource>
  218. <directory>src/main/java</directory>
  219. <!-- 此配置不可缺,否则mybatis的Mapper.xml将会丢失 -->
  220. <includes>
  221. <include>**/*.xml</include>
  222. </includes>
  223. </resource>
  224. <resource>
  225. <!--打包时先排除不必要的文件,想要指定加入的再下面的resource指定-->
  226. <directory>${project.basedir}/src/main/resources</directory>
  227. <excludes>
  228. <exclude>profile/**</exclude>
  229. </excludes>
  230. </resource>
  231. </resources>
  232. </build>
  233. </project>