pom.xml 15 KB

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