pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  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.mokamrp</groupId>
  6. <artifactId>moka-private</artifactId>
  7. <version>1.0-SNAPSHOT</version>
  8. <name>moka-private</name>
  9. <properties>
  10. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  11. <redis.version>3.1.0</redis.version>
  12. <springboot.version>2.1.7.RELEASE</springboot.version>
  13. </properties>
  14. <dependencyManagement>
  15. <dependencies>
  16. <dependency>
  17. <groupId>org.springframework.boot</groupId>
  18. <artifactId>spring-boot-dependencies</artifactId>
  19. <version>2.1.7.RELEASE</version>
  20. <type>pom</type>
  21. <scope>import</scope>
  22. </dependency>
  23. </dependencies>
  24. </dependencyManagement>
  25. <dependencies>
  26. <dependency>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter-web</artifactId>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-validation</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>net.sourceforge.nekohtml</groupId>
  36. <artifactId>nekohtml</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.springframework.boot</groupId>
  40. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.mybatis</groupId>
  44. <artifactId>mybatis-ehcache</artifactId>
  45. <version>1.0.0</version>
  46. </dependency>
  47. <dependency>
  48. <groupId>net.sf.ehcache</groupId>
  49. <artifactId>ehcache</artifactId>
  50. <version>2.8.3</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>mysql</groupId>
  54. <artifactId>mysql-connector-java</artifactId>
  55. <version>8.0.22</version>
  56. <scope>runtime</scope>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.postgresql</groupId>
  60. <artifactId>postgresql</artifactId>
  61. <scope>runtime</scope>
  62. </dependency>
  63. <dependency>
  64. <groupId>com.baomidou</groupId>
  65. <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
  66. <version>2.5.4</version>
  67. </dependency>
  68. <!-- https://mvnrepository.com/artifact/com.baomidou/mybatis-plus-boot-starter -->
  69. <dependency>
  70. <groupId>com.baomidou</groupId>
  71. <artifactId>mybatis-plus-boot-starter</artifactId>
  72. <version>3.4.1</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>com.baomidou</groupId>
  76. <artifactId>mybatis-plus-generator</artifactId>
  77. <version>3.4.1</version>
  78. </dependency>
  79. <!-- Apache velocity -->
  80. <dependency>
  81. <groupId>org.apache.velocity</groupId>
  82. <artifactId>velocity-engine-core</artifactId>
  83. <version>2.0</version>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.projectlombok</groupId>
  87. <artifactId>lombok</artifactId>
  88. <version>1.18.8</version>
  89. <scope>provided</scope>
  90. </dependency>
  91. <!-- xxl-sso-core -->
  92. <dependency>
  93. <groupId>com.xuxueli</groupId>
  94. <artifactId>xxl-sso-core</artifactId>
  95. <version>1.1.1-SNAPSHOT</version>
  96. </dependency>
  97. <!-- jedis -->
  98. <dependency>
  99. <groupId>redis.clients</groupId>
  100. <artifactId>jedis</artifactId>
  101. <version>3.2.0</version>
  102. </dependency>
  103. <!-- redis 缓存操作 -->
  104. <dependency>
  105. <groupId>org.springframework.boot</groupId>
  106. <artifactId>spring-boot-starter-data-redis</artifactId>
  107. </dependency>
  108. <!-- 开启二级缓存 -->
  109. <dependency>
  110. <groupId>org.mybatis.caches</groupId>
  111. <artifactId>mybatis-ehcache</artifactId>
  112. <version>1.1.0</version>
  113. </dependency>
  114. <dependency>
  115. <groupId>com.aliyun.oss</groupId>
  116. <artifactId>aliyun-sdk-oss</artifactId>
  117. <version>3.8.0</version>
  118. </dependency>
  119. <dependency>
  120. <groupId>com.plumelog</groupId>
  121. <artifactId>plumelog-logback</artifactId>
  122. <version>3.4.1</version>
  123. </dependency>
  124. <dependency>
  125. <groupId>com.aliyun.datahub</groupId>
  126. <artifactId>aliyun-sdk-datahub</artifactId>
  127. <version>2.19.0-public</version>
  128. <exclusions>
  129. <exclusion>
  130. <groupId>org.slf4j</groupId>
  131. <artifactId>slf4j-log4j12</artifactId>
  132. </exclusion>
  133. </exclusions>
  134. </dependency>
  135. <dependency>
  136. <groupId>org.apache.poi</groupId>
  137. <artifactId>poi</artifactId>
  138. <version>3.16</version>
  139. </dependency>
  140. <!--处理2007 excel-->
  141. <dependency>
  142. <groupId>org.apache.poi</groupId>
  143. <artifactId>poi-ooxml</artifactId>
  144. <version>3.16</version>
  145. </dependency>
  146. <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin -->
  147. <dependency>
  148. <groupId>org.apache.maven.plugins</groupId>
  149. <artifactId>maven-compiler-plugin</artifactId>
  150. <version>3.5</version>
  151. </dependency>
  152. <!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-maven-plugin -->
  153. <dependency>
  154. <groupId>org.springframework.boot</groupId>
  155. <artifactId>spring-boot-maven-plugin</artifactId>
  156. <version>2.5.0</version>
  157. </dependency>
  158. <dependency>
  159. <groupId>net.javacrumbs.shedlock</groupId>
  160. <artifactId>shedlock-spring</artifactId>
  161. <version>2.3.0</version>
  162. </dependency>
  163. <dependency>
  164. <groupId>net.javacrumbs.shedlock</groupId>
  165. <artifactId>shedlock-provider-redis-spring</artifactId>
  166. <version>2.3.0</version>
  167. </dependency>
  168. <dependency>
  169. <groupId>org.apache.commons</groupId>
  170. <artifactId>commons-pool2</artifactId>
  171. </dependency>
  172. <dependency>
  173. <groupId>org.springframework.boot</groupId>
  174. <artifactId>spring-boot-starter-test</artifactId>
  175. <scope>test</scope>
  176. </dependency>
  177. <!-- High-level-Rest-Client-->
  178. <dependency>
  179. <groupId>org.elasticsearch.client</groupId>
  180. <artifactId>elasticsearch-rest-high-level-client</artifactId>
  181. <version>6.4.3</version>
  182. </dependency>
  183. <!-- es 依赖 -->
  184. <dependency>
  185. <groupId>org.elasticsearch</groupId>
  186. <artifactId>elasticsearch</artifactId>
  187. <version>6.4.3</version>
  188. </dependency>
  189. <dependency>
  190. <groupId>io.springfox</groupId>
  191. <artifactId>springfox-boot-starter</artifactId>
  192. <version>3.0.0</version>
  193. </dependency>
  194. <dependency>
  195. <groupId>org.springframework.plugin</groupId>
  196. <artifactId>spring-plugin-core</artifactId>
  197. <version>2.0.0.RELEASE</version>
  198. </dependency>
  199. </dependencies>
  200. <profiles>
  201. <!-- <profile>-->
  202. <!-- <id>dev</id>-->
  203. <!-- <properties>-->
  204. <!-- <profileActive>dev</profileActive>-->
  205. <!-- </properties>-->
  206. <!-- <activation>-->
  207. <!-- <activeByDefault>true</activeByDefault>-->
  208. <!-- </activation>-->
  209. <!-- </profile>-->
  210. <profile>
  211. <id>test</id>
  212. <properties>
  213. <profileActive>test</profileActive>
  214. </properties>
  215. <activation>
  216. <activeByDefault>true</activeByDefault>
  217. </activation>
  218. </profile>
  219. <profile>
  220. <id>prod</id>
  221. <properties>
  222. <profileActive>prod</profileActive>
  223. </properties>
  224. </profile>
  225. <profile>
  226. <id>local</id>
  227. <properties>
  228. <profileActive>local</profileActive>
  229. </properties>
  230. </profile>
  231. </profiles>
  232. <build>
  233. <finalName>${project.artifactId}</finalName>
  234. <resources>
  235. <resource>
  236. <directory>src/main/resources</directory>
  237. <filtering>true</filtering>
  238. <includes>
  239. <include>**/*.properties</include>
  240. <include>**/*.vm</include>
  241. <include>**/*.xml</include>
  242. </includes>
  243. </resource>
  244. <resource>
  245. <directory>src/main/resources</directory>
  246. <includes>
  247. <include>**/*.xlsx</include>
  248. <include>**/*.xls</include>
  249. </includes>
  250. <filtering>false</filtering>
  251. </resource>
  252. <resource>
  253. <directory>src/main/java</directory>
  254. <includes>
  255. <include>**/*.*</include>
  256. </includes>
  257. </resource>
  258. </resources>
  259. <plugins>
  260. <plugin>
  261. <groupId>org.apache.maven.plugins</groupId>
  262. <artifactId>maven-compiler-plugin</artifactId>
  263. <configuration>
  264. <source>1.8</source>
  265. <target>1.8</target>
  266. <encoding>UTF-8</encoding>
  267. <skip>true</skip>
  268. </configuration>
  269. </plugin>
  270. <!--需添加下面插件,否则java -jar命令启动报SrpingApplication类找不到错误-->
  271. <plugin>
  272. <groupId>org.springframework.boot</groupId>
  273. <artifactId>spring-boot-maven-plugin</artifactId>
  274. <executions>
  275. <execution>
  276. <goals>
  277. <goal>repackage</goal>
  278. </goals>
  279. </execution>
  280. </executions>
  281. </plugin>
  282. <!--需添加下面插件,否则java -jar命令启动报没有主清单错误-->
  283. <plugin>
  284. <groupId>org.apache.maven.plugins</groupId>
  285. <artifactId>maven-jar-plugin</artifactId>
  286. <version>3.2.0</version>
  287. <configuration>
  288. <archive>
  289. <manifest>
  290. <mainClass>com.mokamrp.privates.PrivateServerStart</mainClass>
  291. </manifest>
  292. </archive>
  293. </configuration>
  294. </plugin>
  295. </plugins>
  296. </build>
  297. </project>