pom.xml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542
  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.benyun</groupId>
  6. <artifactId>benyun</artifactId>
  7. <version>9.2.7</version>
  8. <packaging>jar</packaging>
  9. <name>benyun2kingdee</name>
  10. <url>http://www.baidu.com</url>
  11. <description>犇云2金蝶</description>
  12. <parent>
  13. <groupId>org.springframework.boot</groupId>
  14. <artifactId>spring-boot-starter-parent</artifactId>
  15. <version>2.5.13</version>
  16. <relativePath/>
  17. </parent>
  18. <properties>
  19. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  20. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  21. <java.version>1.8</java.version>
  22. <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
  23. <shiro.version>1.9.0</shiro.version>
  24. <thymeleaf.extras.shiro.version>2.1.0</thymeleaf.extras.shiro.version>
  25. <mybatis.spring.boot.starter.version>2.2.2</mybatis.spring.boot.starter.version>
  26. <pagehelper.spring.boot.starter.version>1.4.1</pagehelper.spring.boot.starter.version>
  27. <fastjson.version>1.2.80</fastjson.version>
  28. <druid.version>1.2.8</druid.version>
  29. <commons.io.version>2.11.0</commons.io.version>
  30. <commons.fileupload.version>1.4</commons.fileupload.version>
  31. <bitwalker.version>1.21</bitwalker.version>
  32. <velocity.version>2.3</velocity.version>
  33. <kaptcha.version>2.3.2</kaptcha.version>
  34. <swagger.version>3.0.0</swagger.version>
  35. <poi.version>4.1.2</poi.version>
  36. <oshi.version>6.1.2</oshi.version>
  37. <jna.version>5.10.0</jna.version>
  38. <lombok.version>1.18.4</lombok.version>
  39. </properties>
  40. <dependencies>
  41. <dependency>
  42. <groupId>com.squareup.okhttp3</groupId>
  43. <artifactId>okhttp</artifactId>
  44. <version>3.11.0</version>
  45. <exclusions>
  46. <exclusion>
  47. <groupId>com.google.android</groupId>
  48. <artifactId>android</artifactId>
  49. </exclusion>
  50. </exclusions>
  51. </dependency>
  52. <!-- SpringBoot 核心包 -->
  53. <dependency>
  54. <groupId>org.springframework.boot</groupId>
  55. <artifactId>spring-boot-starter</artifactId>
  56. </dependency>
  57. <!-- SpringBoot 测试 -->
  58. <dependency>
  59. <groupId>org.springframework.boot</groupId>
  60. <artifactId>spring-boot-starter-test</artifactId>
  61. <scope>test</scope>
  62. </dependency>
  63. <!-- SpringBoot 拦截器 -->
  64. <dependency>
  65. <groupId>org.springframework.boot</groupId>
  66. <artifactId>spring-boot-starter-aop</artifactId>
  67. </dependency>
  68. <!-- SpringBoot Web容器 -->
  69. <dependency>
  70. <groupId>org.springframework.boot</groupId>
  71. <artifactId>spring-boot-starter-web</artifactId>
  72. </dependency>
  73. <!-- SpringBoot集成thymeleaf模板 -->
  74. <dependency>
  75. <groupId>org.springframework.boot</groupId>
  76. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  77. </dependency>
  78. <!-- spring-boot-devtools -->
  79. <dependency>
  80. <groupId>org.springframework.boot</groupId>
  81. <artifactId>spring-boot-devtools</artifactId>
  82. <optional>true</optional> <!-- 表示依赖不会传递 -->
  83. </dependency>
  84. <!-- Mysql驱动包 -->
  85. <dependency>
  86. <groupId>mysql</groupId>
  87. <artifactId>mysql-connector-java</artifactId>
  88. </dependency>
  89. <!-- SpringBoot集成mybatis框架 -->
  90. <dependency>
  91. <groupId>org.mybatis.spring.boot</groupId>
  92. <artifactId>mybatis-spring-boot-starter</artifactId>
  93. <version>${mybatis.spring.boot.starter.version}</version>
  94. </dependency>
  95. <!-- pagehelper 分页插件 -->
  96. <dependency>
  97. <groupId>com.github.pagehelper</groupId>
  98. <artifactId>pagehelper-spring-boot-starter</artifactId>
  99. <version>${pagehelper.spring.boot.starter.version}</version>
  100. </dependency>
  101. <!-- 阿里数据库连接池 -->
  102. <dependency>
  103. <groupId>com.alibaba</groupId>
  104. <artifactId>druid-spring-boot-starter</artifactId>
  105. <version>${druid.version}</version>
  106. </dependency>
  107. <!-- 自定义验证注解 -->
  108. <dependency>
  109. <groupId>org.springframework.boot</groupId>
  110. <artifactId>spring-boot-starter-validation</artifactId>
  111. </dependency>
  112. <!-- 常用工具类 -->
  113. <dependency>
  114. <groupId>org.apache.commons</groupId>
  115. <artifactId>commons-lang3</artifactId>
  116. </dependency>
  117. <!-- io常用工具类 -->
  118. <dependency>
  119. <groupId>commons-io</groupId>
  120. <artifactId>commons-io</artifactId>
  121. <version>${commons.io.version}</version>
  122. </dependency>
  123. <!-- 文件上传工具类 -->
  124. <dependency>
  125. <groupId>commons-fileupload</groupId>
  126. <artifactId>commons-fileupload</artifactId>
  127. <version>${commons.fileupload.version}</version>
  128. </dependency>
  129. <!-- Shiro核心框架 -->
  130. <dependency>
  131. <groupId>org.apache.shiro</groupId>
  132. <artifactId>shiro-core</artifactId>
  133. <version>${shiro.version}</version>
  134. </dependency>
  135. <!-- Shiro使用Spring框架 -->
  136. <dependency>
  137. <groupId>org.apache.shiro</groupId>
  138. <artifactId>shiro-spring</artifactId>
  139. <version>${shiro.version}</version>
  140. </dependency>
  141. <!-- Shiro使用EhCache缓存框架 -->
  142. <dependency>
  143. <groupId>org.apache.shiro</groupId>
  144. <artifactId>shiro-ehcache</artifactId>
  145. <version>${shiro.version}</version>
  146. </dependency>
  147. <!-- thymeleaf模板引擎和shiro框架的整合 -->
  148. <dependency>
  149. <groupId>com.github.theborakompanioni</groupId>
  150. <artifactId>thymeleaf-extras-shiro</artifactId>
  151. <version>${thymeleaf.extras.shiro.version}</version>
  152. </dependency>
  153. <!-- 阿里JSON解析器 -->
  154. <dependency>
  155. <groupId>com.alibaba</groupId>
  156. <artifactId>fastjson</artifactId>
  157. <version>${fastjson.version}</version>
  158. </dependency>
  159. <!-- 解析客户端操作系统、浏览器等 -->
  160. <dependency>
  161. <groupId>eu.bitwalker</groupId>
  162. <artifactId>UserAgentUtils</artifactId>
  163. <version>${bitwalker.version}</version>
  164. </dependency>
  165. <!-- Spring框架基本的核心工具 -->
  166. <dependency>
  167. <groupId>org.springframework</groupId>
  168. <artifactId>spring-context-support</artifactId>
  169. </dependency>
  170. <!--Tlog 日志标记追踪-->
  171. <dependency>
  172. <groupId>com.yomahub</groupId>
  173. <artifactId>tlog-all-spring-boot-starter</artifactId>
  174. <version>1.2.3</version>
  175. </dependency>
  176. <!-- https://mvnrepository.com/artifact/ch.qos.logback/logback-classic -->
  177. <dependency>
  178. <groupId>ch.qos.logback</groupId>
  179. <artifactId>logback-classic</artifactId>
  180. <version>1.2.3</version>
  181. </dependency>
  182. <!-- 定时任务 -->
  183. <dependency>
  184. <groupId>org.quartz-scheduler</groupId>
  185. <artifactId>quartz</artifactId>
  186. <exclusions>
  187. <exclusion>
  188. <groupId>com.mchange</groupId>
  189. <artifactId>c3p0</artifactId>
  190. </exclusion>
  191. </exclusions>
  192. </dependency>
  193. <!-- velocity代码生成使用模板 -->
  194. <dependency>
  195. <groupId>org.apache.velocity</groupId>
  196. <artifactId>velocity-engine-core</artifactId>
  197. <version>${velocity.version}</version>
  198. </dependency>
  199. <!-- 验证码 -->
  200. <dependency>
  201. <groupId>com.github.penggle</groupId>
  202. <artifactId>kaptcha</artifactId>
  203. <version>${kaptcha.version}</version>
  204. <exclusions>
  205. <exclusion>
  206. <artifactId>javax.servlet-api</artifactId>
  207. <groupId>javax.servlet</groupId>
  208. </exclusion>
  209. </exclusions>
  210. </dependency>
  211. <!-- Swagger3依赖 -->
  212. <dependency>
  213. <groupId>io.springfox</groupId>
  214. <artifactId>springfox-boot-starter</artifactId>
  215. <version>${swagger.version}</version>
  216. <exclusions>
  217. <exclusion>
  218. <groupId>io.swagger</groupId>
  219. <artifactId>swagger-models</artifactId>
  220. </exclusion>
  221. </exclusions>
  222. </dependency>
  223. <!-- 防止进入swagger页面报类型转换错误,排除3.0.0中的引用,手动增加1.6.2版本 -->
  224. <dependency>
  225. <groupId>io.swagger</groupId>
  226. <artifactId>swagger-models</artifactId>
  227. <version>1.6.2</version>
  228. </dependency>
  229. <!-- 获取系统信息 -->
  230. <dependency>
  231. <groupId>com.github.oshi</groupId>
  232. <artifactId>oshi-core</artifactId>
  233. <version>${oshi.version}</version>
  234. </dependency>
  235. <!-- excel工具 -->
  236. <dependency>
  237. <groupId>org.apache.poi</groupId>
  238. <artifactId>poi-ooxml</artifactId>
  239. <version>${poi.version}</version>
  240. </dependency>
  241. <!--AccessDB 数据库 驱动-->
  242. <!-- https://mvnrepository.com/artifact/net.sf.ucanaccess/ucanaccess -->
  243. <dependency>
  244. <groupId>net.sf.ucanaccess</groupId>
  245. <artifactId>ucanaccess</artifactId>
  246. <version>5.0.1</version>
  247. </dependency>
  248. <!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
  249. <dependency>
  250. <groupId>org.projectlombok</groupId>
  251. <artifactId>lombok</artifactId>
  252. <version>${lombok.version}</version>
  253. </dependency>
  254. <!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api -->
  255. <dependency>
  256. <groupId>org.slf4j</groupId>
  257. <artifactId>slf4j-api</artifactId>
  258. <version>1.7.25</version>
  259. </dependency>
  260. <!--SQLSERVER-->
  261. <dependency>
  262. <groupId>com.microsoft.sqlserver</groupId>
  263. <artifactId>sqljdbc4</artifactId>
  264. <version>4.0</version>
  265. </dependency>
  266. <dependency>
  267. <groupId>org.springframework.boot</groupId>
  268. <artifactId>spring-boot-starter-jdbc</artifactId>
  269. </dependency>
  270. <!--smb协议获取共享文件夹内容-->
  271. <dependency>
  272. <groupId>jcifs</groupId>
  273. <artifactId>jcifs</artifactId>
  274. <version>1.3.17</version>
  275. </dependency>
  276. <!-- @JSONField(name = "Creator")
  277. 只得老老实实的把所有字段全部加上@JSONField注解,防止转json时,会自动转成首字母小写的字段 -->
  278. <dependency>
  279. <groupId>com.alibaba</groupId>
  280. <artifactId>fastjson</artifactId>
  281. <version>1.2.47</version>
  282. </dependency>
  283. <!--redis依赖-->
  284. <dependency>
  285. <groupId>org.springframework.boot</groupId>
  286. <artifactId>spring-boot-starter-data-redis</artifactId>
  287. </dependency>
  288. <!--JSON 数据和 Java 对象之间进行转换。-->
  289. <dependency>
  290. <groupId>com.google.code.gson</groupId>
  291. <artifactId>gson</artifactId>
  292. <version>2.10.1</version>
  293. </dependency>
  294. <!-- junit -->
  295. <dependency>
  296. <groupId>junit</groupId>
  297. <artifactId>junit</artifactId>
  298. <version>4.13.2</version>
  299. </dependency>
  300. <dependency>
  301. <groupId>org.hamcrest</groupId>
  302. <artifactId>hamcrest-parent</artifactId>
  303. <version>1.3</version>
  304. <type>pom</type>
  305. </dependency>
  306. <!--添加的本地的外部jar包依赖-->
  307. <!-- <dependency>-->
  308. <!-- &lt;!&ndash;groupId、artifactId、version为自定义,groupId与artifactId但是不能重名&ndash;&gt;-->
  309. <!-- <groupId>JNative</groupId>-->
  310. <!-- <artifactId>JNative</artifactId>-->
  311. <!-- <version>1.0</version>-->
  312. <!-- <scope>system</scope>-->
  313. <!-- <systemPath>${pom.basedir}/lib/k3cloud-webapi-sdk8.0.6.jar</systemPath>-->
  314. <!-- </dependency>-->
  315. <!-- 引入金蝶的 WebAPI SDK -->
  316. <!-- mvn install:install-file -Dfile=k3cloud-webapi-sdk7.9.jar -DgroupId=com.kingdee -DartifactId=k3cloud-webapi-sdk -Dversion=7.9 -Dpackaging=jar -->
  317. <dependency>
  318. <groupId>com.kingdee</groupId>
  319. <artifactId>k3cloud-webapi-sdk</artifactId>
  320. <version>8.0.6</version>
  321. </dependency>
  322. <!-- hutool工具类-->
  323. <dependency>
  324. <groupId>cn.hutool</groupId>
  325. <artifactId>hutool-all</artifactId>
  326. <version>5.8.10</version>
  327. </dependency>
  328. </dependencies>
  329. <build>
  330. <finalName>${project.artifactId}</finalName>
  331. <plugins>
  332. <!-- <plugin>-->
  333. <!-- <groupId>org.springframework.boot</groupId>-->
  334. <!-- <artifactId>spring-boot-maven-plugin</artifactId>-->
  335. <!-- <configuration>-->
  336. <!-- <fork>true</fork> &lt;!&ndash; 如果没有该配置,devtools不会生效 &ndash;&gt;-->
  337. <!-- </configuration>-->
  338. <!-- </plugin>-->
  339. <!-- YUI Compressor (CSS/JS压缩)
  340. <plugin>
  341. <groupId>net.alchim31.maven</groupId>
  342. <artifactId>yuicompressor-maven-plugin</artifactId>
  343. <version>1.5.1</version>
  344. <executions>
  345. <execution>
  346. <phase>prepare-package</phase>
  347. <goals>
  348. <goal>compress</goal>
  349. </goals>
  350. </execution>
  351. </executions>
  352. <configuration>
  353. <encoding>UTF-8</encoding>
  354. <jswarn>false</jswarn>
  355. <nosuffix>true</nosuffix>
  356. <linebreakpos>50000</linebreakpos>
  357. <sourceDirectory>src/main/resources/static</sourceDirectory>
  358. <force>true</force>
  359. <includes>
  360. <include>**/*.js</include>
  361. <include>**/*.css</include>
  362. </includes>
  363. <excludes>
  364. <exclude>**/*.min.js</exclude>
  365. <exclude>**/*.min.css</exclude>
  366. <exclude>**/fileinput.js</exclude>
  367. <exclude>**/bootstrap-table/**</exclude>
  368. </excludes>
  369. </configuration>
  370. </plugin> -->
  371. <!-- <plugin>-->
  372. <!-- <groupId>org.springframework.boot</groupId>-->
  373. <!-- <artifactId>spring-boot-maven-plugin</artifactId>-->
  374. <!-- <configuration>-->
  375. <!-- <includeSystemScope>true</includeSystemScope>-->
  376. <!-- </configuration>-->
  377. <!-- <executions>-->
  378. <!-- <execution>-->
  379. <!-- <phase>none</phase>-->
  380. <!-- </execution>-->
  381. <!-- </executions>-->
  382. <!-- </plugin>-->
  383. <plugin>
  384. <groupId>org.apache.maven.plugins</groupId>
  385. <artifactId>maven-compiler-plugin</artifactId>
  386. <configuration>
  387. <source>${java.version}</source>
  388. <target>${java.version}</target>
  389. <compilerArgs>
  390. <arg>-parameters</arg>
  391. </compilerArgs>
  392. </configuration>
  393. </plugin>
  394. <plugin>
  395. <groupId>org.apache.maven.plugins</groupId>
  396. <artifactId>maven-jar-plugin</artifactId>
  397. <version>3.1.1</version>
  398. <configuration>
  399. <archive>
  400. <manifest>
  401. <addClasspath>true</addClasspath>
  402. <classpathPrefix>lib/</classpathPrefix>
  403. <mainClass>com.benyun.BenYunApplication</mainClass>
  404. </manifest>
  405. <manifestEntries>
  406. <Class-Path>resources/</Class-Path>
  407. </manifestEntries>
  408. </archive>
  409. <excludes>
  410. <exclude>static/**</exclude>
  411. <exclude>templates/**</exclude>
  412. <exclude>*.setting</exclude>
  413. <exclude>*.properties</exclude>
  414. <exclude>*.json</exclude>
  415. <exclude>*.yml</exclude>
  416. <exclude>*.xml</exclude>
  417. </excludes>
  418. </configuration>
  419. </plugin>
  420. <!--自定义打包插件-->
  421. <plugin>
  422. <groupId>org.apache.maven.plugins</groupId>
  423. <artifactId>maven-assembly-plugin</artifactId>
  424. <version>3.3.0</version>
  425. <configuration>
  426. <finalName>hospital</finalName>
  427. <!--加上下面这一句,上面的finalName是什么,打包出来的目录就叫什么-->
  428. <appendAssemblyId>false</appendAssemblyId>
  429. <descriptors>
  430. <!-- 引用的assembly配置文件,可以用多个,即可以同时打包多个格式的包 -->
  431. <descriptor>${project.basedir}/assembly/assembly.xml</descriptor>
  432. </descriptors>
  433. <outputDirectory>${project.build.directory}/dist/</outputDirectory>
  434. </configuration>
  435. <executions>
  436. <!-- phase加入package后,则在执行maven package时就可以调用maven-assembly-plugin插件定义的打包方式 -->
  437. <execution>
  438. <!--名字任意 -->
  439. <id>make-assembly</id>
  440. <!-- 绑定到package生命周期阶段上 -->
  441. <phase>package</phase>
  442. <goals>
  443. <!-- 只运行一次 -->
  444. <goal>single</goal>
  445. </goals>
  446. </execution>
  447. </executions>
  448. </plugin>
  449. </plugins>
  450. </build>
  451. <repositories>
  452. <repository>
  453. <id>public</id>
  454. <name>aliyun nexus</name>
  455. <url>https://maven.aliyun.com/repository/public</url>
  456. <releases>
  457. <enabled>true</enabled>
  458. </releases>
  459. </repository>
  460. </repositories>
  461. <pluginRepositories>
  462. <pluginRepository>
  463. <id>public</id>
  464. <name>aliyun nexus</name>
  465. <url>https://maven.aliyun.com/repository/public</url>
  466. <releases>
  467. <enabled>true</enabled>
  468. </releases>
  469. <snapshots>
  470. <enabled>false</enabled>
  471. </snapshots>
  472. </pluginRepository>
  473. </pluginRepositories>
  474. </project>