pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.example</groupId>
  6. <artifactId>springboot_v2</artifactId>
  7. <version>3.4</version>
  8. <packaging>jar</packaging>
  9. <name>springboot_v2</name>
  10. <description>springbootv2系统</description>
  11. <parent>
  12. <groupId>org.springframework.boot</groupId>
  13. <artifactId>spring-boot-starter-parent</artifactId>
  14. <version>2.3.7.RELEASE</version>
  15. <relativePath/> <!-- 从存储库查找父级 -->
  16. </parent>
  17. <properties>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  20. <java.version>1.8</java.version>
  21. <commons.fileupload.version>1.3.3</commons.fileupload.version>
  22. <commons.io.version>2.5</commons.io.version>
  23. </properties>
  24. <!-- https://mvnrepository.com/ 查找jar网站 -->
  25. <dependencies>
  26. <!-- SpringBoot Web容器 -->
  27. <dependency>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-starter-web</artifactId>
  30. </dependency>
  31. <!-- SpringBoot集成mybatis框架 -->
  32. <!--<dependency>-->
  33. <!--<groupId>org.mybatis.spring.boot</groupId>-->
  34. <!--<artifactId>mybatis-spring-boot-starter</artifactId>-->
  35. <!--<version>1.3.2</version>-->
  36. <!--</dependency>-->
  37. <!-- By Wang jiawen 从本地类库引入阿里巴巴 fastjson 版本1.27 系统级别 路径根目录lib文件夹下 云地址 https://mvnrepository.com/artifact/com.alibaba/fastjson -->
  38. <!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
  39. <dependency>
  40. <groupId>com.alibaba</groupId>
  41. <artifactId>fastjson</artifactId>
  42. <version>1.2.17</version>
  43. </dependency>
  44. <!--By Wang jiawen lombok 从云引入 目的提供get set方法-->
  45. <dependency>
  46. <groupId>org.projectlombok</groupId>
  47. <artifactId>lombok</artifactId>
  48. <version>1.18.12</version>
  49. </dependency>
  50. <!-- SpringBoot 测试 -->
  51. <dependency>
  52. <groupId>org.springframework.boot</groupId>
  53. <artifactId>spring-boot-starter-test</artifactId>
  54. <scope>test</scope>
  55. </dependency>
  56. <!--GSON -->
  57. <dependency>
  58. <groupId>com.google.code.gson</groupId>
  59. <artifactId>gson</artifactId>
  60. </dependency>
  61. <!-- pageHelper -->
  62. <!-- <dependency>-->
  63. <!-- <groupId>com.github.pagehelper</groupId>-->
  64. <!-- <artifactId>pagehelper-spring-boot-starter</artifactId>-->
  65. <!-- <version>1.2.5</version>-->
  66. <!-- </dependency>-->
  67. <!-- mysql驱动7.0-->
  68. <dependency>
  69. <groupId>mysql</groupId>
  70. <artifactId>mysql-connector-java</artifactId>
  71. </dependency>
  72. <!-- <dependency>-->
  73. <!-- <groupId>com.oracle</groupId>-->
  74. <!-- <artifactId>ojdbc6</artifactId>-->
  75. <!-- <version>11.2.0.3</version>-->
  76. <!-- <scope>runtime</scope>-->
  77. <!-- </dependency>-->
  78. <!-- <dependency>-->
  79. <!-- <groupId>oracle</groupId>-->
  80. <!-- <artifactId>oracle</artifactId>-->
  81. <!-- <version>11.2.0.3</version>-->
  82. <!-- <scope>system</scope>-->
  83. <!-- <systemPath>${project.basedir}/src/main/resources/lib/ojdbc6.jar</systemPath>-->
  84. <!-- </dependency>-->
  85. <dependency>
  86. <groupId>com.oracle</groupId>
  87. <artifactId>ojdbc6</artifactId>
  88. <version>11.2.0.3</version>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.springframework.boot</groupId>
  92. <artifactId>spring-boot-starter-jdbc</artifactId>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.springframework.boot</groupId>
  96. <artifactId>spring-boot-starter-websocket</artifactId>
  97. </dependency>
  98. <!-- mysql驱动8.0
  99. <dependency>
  100. <groupId>mysql</groupId>
  101. <artifactId>mysql-connector-java</artifactId>
  102. <version>8.0.11</version>
  103. </dependency>
  104. -->
  105. <!--druid 数据源监控-->
  106. <!-- https://mvnrepository.com/artifact/com.alibaba/druid-spring-boot-starter -->
  107. <dependency>
  108. <groupId>com.alibaba</groupId>
  109. <artifactId>druid-spring-boot-starter</artifactId>
  110. <version>1.1.10</version>
  111. </dependency>
  112. <dependency>
  113. <groupId>org.springframework.boot</groupId>
  114. <artifactId>spring-boot-starter-aop</artifactId>
  115. </dependency>
  116. <!--常用工具类 -->
  117. <dependency>
  118. <groupId>org.apache.commons</groupId>
  119. <artifactId>commons-lang3</artifactId>
  120. </dependency>
  121. <dependency>
  122. <groupId>commons-lang</groupId>
  123. <artifactId>commons-lang</artifactId>
  124. <version>2.4</version>
  125. </dependency>
  126. <!-- 热部署 -->
  127. <dependency>
  128. <groupId>org.springframework.boot</groupId>
  129. <artifactId>spring-boot-devtools</artifactId>
  130. <optional>true</optional>
  131. </dependency>
  132. <!-- websocket -->
  133. <dependency>
  134. <groupId>org.springframework.boot</groupId>
  135. <artifactId>spring-boot-starter-websocket</artifactId>
  136. </dependency>
  137. <!-- 配置文件读取 -->
  138. <dependency>
  139. <groupId>commons-configuration</groupId>
  140. <artifactId>commons-configuration</artifactId>
  141. <version>1.10</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>org.springframework.boot</groupId>
  145. <artifactId>spring-boot-configuration-processor</artifactId>
  146. <optional>true</optional>
  147. </dependency>
  148. <!--百度UEditor依赖的jar包 -->
  149. <!-- <dependency>
  150. <groupId>org.json</groupId>
  151. <artifactId>json</artifactId>
  152. <version>20180813</version>
  153. </dependency>-->
  154. <dependency>
  155. <groupId>commons-codec</groupId>
  156. <artifactId>commons-codec</artifactId>
  157. <version>1.9</version>
  158. </dependency>
  159. <dependency>
  160. <groupId>ueditor</groupId>
  161. <artifactId>1.1.2</artifactId>
  162. <version>1.8</version>
  163. <scope>system</scope>
  164. <systemPath>${project.basedir}/src/main/resources/lib/ueditor-1.1.2.jar</systemPath>
  165. </dependency>
  166. <!--quartz依赖-->
  167. <dependency>
  168. <groupId>org.quartz-scheduler</groupId>
  169. <artifactId>quartz</artifactId>
  170. </dependency>
  171. <!-- 七牛云 -->
  172. <dependency>
  173. <groupId>com.qiniu</groupId>
  174. <artifactId>qiniu-java-sdk</artifactId>
  175. <version>[7.2.0, 7.2.99]</version>
  176. </dependency>
  177. <dependency>
  178. <groupId>org.springframework.boot</groupId>
  179. <artifactId>spring-boot-configuration-processor</artifactId>
  180. <optional>true</optional>
  181. </dependency>
  182. <dependency>
  183. <groupId>org.springframework.boot</groupId>
  184. <artifactId>spring-boot-starter-data-redis</artifactId>
  185. </dependency>
  186. <dependency>
  187. <groupId>redis.clients</groupId>
  188. <artifactId>jedis</artifactId>
  189. <version>2.9.0</version>
  190. </dependency>
  191. <dependency>
  192. <groupId>com.baomidou</groupId>
  193. <artifactId>mybatis-plus-boot-starter</artifactId>
  194. <version>3.2.0</version>
  195. </dependency>
  196. <dependency>
  197. <groupId>com.baomidou</groupId>
  198. <artifactId>mybatis-plus-generator</artifactId>
  199. <version>3.3.2</version>
  200. </dependency>
  201. <dependency>
  202. <groupId>org.freemarker</groupId>
  203. <artifactId>freemarker</artifactId>
  204. <version>2.3.28</version>
  205. </dependency>
  206. <dependency>
  207. <groupId>org.apache.poi</groupId>
  208. <artifactId>poi</artifactId>
  209. <version>3.9</version>
  210. </dependency>
  211. <dependency>
  212. <groupId>org.apache.poi</groupId>
  213. <artifactId>poi-ooxml</artifactId>
  214. <version>3.9</version>
  215. </dependency>
  216. <dependency>
  217. <groupId>org.apache.poi</groupId>
  218. <artifactId>poi-ooxml-schemas</artifactId>
  219. <version>3.9</version>
  220. </dependency>
  221. <!-- 添加swagger2 -->
  222. <dependency>
  223. <groupId>io.springfox</groupId>
  224. <artifactId>springfox-swagger2</artifactId>
  225. <version>2.7.0</version>
  226. </dependency>
  227. <dependency>
  228. <groupId>com.microsoft.sqlserver</groupId>
  229. <artifactId>sqljdbc4</artifactId>
  230. <version>4.0</version>
  231. </dependency>
  232. <!-- web Services -->
  233. <!-- <dependency>-->
  234. <!-- <groupId>org.jetbrains</groupId>-->
  235. <!-- <artifactId>annotations</artifactId>-->
  236. <!-- <version>3.4</version>-->
  237. <!-- <scope>compile</scope>-->
  238. <!-- </dependency>-->
  239. <!-- <dependency>-->
  240. <!-- <groupId>cxf</groupId>-->
  241. <!-- <artifactId>cxf</artifactId>-->
  242. <!-- <version>3.1.12</version>-->
  243. <!-- <scope>system</scope>-->
  244. <!-- <systemPath>${project.basedir}/src/main/resources/lib/cxf-jaxws.jar</systemPath>-->
  245. <!-- </dependency>-->
  246. <!-- <dependency>-->
  247. <!-- <groupId>cxf</groupId>-->
  248. <!-- <artifactId>cxf</artifactId>-->
  249. <!-- <version>3.1.12</version>-->
  250. <!-- <scope>system</scope>-->
  251. <!-- <systemPath>${project.basedir}/src/main/resources/lib/cxt-http.jar</systemPath>-->
  252. <!-- </dependency>-->
  253. </dependencies>
  254. <!--<build>
  255. &lt;!&ndash; 打包不带版本号 &ndash;&gt;
  256. &lt;!&ndash; <finalName>springboot_v2</finalName> &ndash;&gt;
  257. <plugins>
  258. &lt;!&ndash; JUnit 配置 &ndash;&gt;
  259. <plugin>
  260. <groupId>org.apache.maven.plugins</groupId>
  261. <artifactId>maven-surefire-plugin</artifactId>
  262. &lt;!&ndash;忽略测试启动类 &ndash;&gt;
  263. <configuration>
  264. <skip>true</skip>
  265. </configuration>
  266. </plugin>
  267. &lt;!&ndash; generator 配置&ndash;&gt;
  268. <plugin>
  269. <groupId>org.mybatis.generator</groupId>
  270. <artifactId>mybatis-generator-maven-plugin</artifactId>
  271. <version>1.3.7</version>
  272. <configuration>
  273. &lt;!&ndash;允许移动生成的文件 &ndash;&gt;
  274. <verbose>false</verbose>
  275. &lt;!&ndash;允许覆盖生成的文件 &ndash;&gt;
  276. <overwrite>false</overwrite>
  277. &lt;!&ndash;配置文件的路径 &ndash;&gt;
  278. <configurationFile>src/main/resources/mybatis-generator.xml</configurationFile>
  279. </configuration>
  280. <dependencies>
  281. <dependency>
  282. <groupId>mysql</groupId>
  283. <artifactId>mysql-connector-java</artifactId>
  284. <version>${mysql.version}</version>
  285. </dependency>
  286. </dependencies>
  287. </plugin>
  288. &lt;!&ndash; jar运行配置 &ndash;&gt;
  289. <plugin>
  290. <groupId>org.springframework.boot</groupId>
  291. <artifactId>spring-boot-maven-plugin</artifactId>
  292. </plugin>
  293. </plugins>
  294. </build>-->
  295. <build>
  296. <plugins>
  297. <!-- 使用maven-jar-plugin和maven-dependency-plugin插件打包 -->
  298. <plugin>
  299. <groupId>org.apache.maven.plugins</groupId>
  300. <artifactId>maven-jar-plugin</artifactId>
  301. <version>3.0.2</version>
  302. <configuration>
  303. <archive>
  304. <manifest>
  305. <addClasspath>true</addClasspath>
  306. <classpathPrefix>lib/</classpathPrefix>
  307. <mainClass>cn.gyee.nxdp.SpringBootWebApplication</mainClass>
  308. </manifest>
  309. </archive>
  310. </configuration>
  311. </plugin>
  312. <plugin>
  313. <groupId>org.apache.maven.plugins</groupId>
  314. <artifactId>maven-dependency-plugin</artifactId>
  315. <version>3.0.2</version>
  316. <executions>
  317. <execution>
  318. <id>copy-dependencies</id>
  319. <phase>package</phase>
  320. <goals>
  321. <goal>copy-dependencies</goal>
  322. </goals>
  323. <configuration>
  324. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  325. </configuration>
  326. </execution>
  327. </executions>
  328. </plugin>
  329. <plugin>
  330. <groupId>org.springframework.boot</groupId>
  331. <artifactId>spring-boot-maven-plugin</artifactId>
  332. <configuration>
  333. <fork>true</fork>
  334. <!--增加jvm参数-->
  335. <jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>
  336. </configuration>
  337. </plugin>
  338. </plugins>
  339. </build>
  340. <!-- 阿里云maven仓库 -->
  341. <repositories>
  342. <repository>
  343. <id>public</id>
  344. <name>aliyun nexus</name>
  345. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  346. <releases>
  347. <enabled>true</enabled>
  348. </releases>
  349. </repository>
  350. </repositories>
  351. <pluginRepositories>
  352. <pluginRepository>
  353. <id>public</id>
  354. <name>aliyun nexus</name>
  355. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  356. <releases>
  357. <enabled>true</enabled>
  358. </releases>
  359. <snapshots>
  360. <enabled>false</enabled>
  361. </snapshots>
  362. </pluginRepository>
  363. </pluginRepositories>
  364. </project>