pom.xml 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  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. <scope>runtime</scope>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.postgresql</groupId>
  59. <artifactId>postgresql</artifactId>
  60. <scope>runtime</scope>
  61. </dependency>
  62. <dependency>
  63. <groupId>com.baomidou</groupId>
  64. <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
  65. <version>2.5.4</version>
  66. </dependency>
  67. <!-- https://mvnrepository.com/artifact/com.baomidou/mybatis-plus-boot-starter -->
  68. <dependency>
  69. <groupId>com.baomidou</groupId>
  70. <artifactId>mybatis-plus-boot-starter</artifactId>
  71. <version>3.4.1</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>com.baomidou</groupId>
  75. <artifactId>mybatis-plus-generator</artifactId>
  76. <version>3.4.1</version>
  77. </dependency>
  78. <!-- Apache velocity -->
  79. <dependency>
  80. <groupId>org.apache.velocity</groupId>
  81. <artifactId>velocity-engine-core</artifactId>
  82. <version>2.0</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.projectlombok</groupId>
  86. <artifactId>lombok</artifactId>
  87. <version>1.18.8</version>
  88. <scope>provided</scope>
  89. </dependency>
  90. <dependency>
  91. <groupId>junit</groupId>
  92. <artifactId>junit</artifactId>
  93. <version>4.11</version>
  94. <scope>test</scope>
  95. </dependency>
  96. <!-- xxl-sso-core -->
  97. <dependency>
  98. <groupId>com.xuxueli</groupId>
  99. <artifactId>xxl-sso-core</artifactId>
  100. <version>1.1.1-SNAPSHOT</version>
  101. </dependency>
  102. <!-- jedis -->
  103. <dependency>
  104. <groupId>redis.clients</groupId>
  105. <artifactId>jedis</artifactId>
  106. <version>3.2.0</version>
  107. </dependency>
  108. <!-- redis 缓存操作 -->
  109. <dependency>
  110. <groupId>org.springframework.boot</groupId>
  111. <artifactId>spring-boot-starter-data-redis</artifactId>
  112. </dependency>
  113. <!-- 开启二级缓存 -->
  114. <dependency>
  115. <groupId>org.mybatis.caches</groupId>
  116. <artifactId>mybatis-ehcache</artifactId>
  117. <version>1.1.0</version>
  118. </dependency>
  119. <dependency>
  120. <groupId>com.aliyun.oss</groupId>
  121. <artifactId>aliyun-sdk-oss</artifactId>
  122. <version>3.8.0</version>
  123. </dependency>
  124. <dependency>
  125. <groupId>com.plumelog</groupId>
  126. <artifactId>plumelog-logback</artifactId>
  127. <version>3.4.1</version>
  128. </dependency>
  129. <dependency>
  130. <groupId>com.aliyun.datahub</groupId>
  131. <artifactId>aliyun-sdk-datahub</artifactId>
  132. <version>2.19.0-public</version>
  133. <exclusions>
  134. <exclusion>
  135. <groupId>org.slf4j</groupId>
  136. <artifactId>slf4j-log4j12</artifactId>
  137. </exclusion>
  138. </exclusions>
  139. </dependency>
  140. <dependency>
  141. <groupId>org.apache.poi</groupId>
  142. <artifactId>poi</artifactId>
  143. <version>3.16</version>
  144. </dependency>
  145. <!--处理2007 excel-->
  146. <dependency>
  147. <groupId>org.apache.poi</groupId>
  148. <artifactId>poi-ooxml</artifactId>
  149. <version>3.16</version>
  150. </dependency>
  151. <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin -->
  152. <dependency>
  153. <groupId>org.apache.maven.plugins</groupId>
  154. <artifactId>maven-compiler-plugin</artifactId>
  155. <version>3.5</version>
  156. </dependency>
  157. <!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-maven-plugin -->
  158. <dependency>
  159. <groupId>org.springframework.boot</groupId>
  160. <artifactId>spring-boot-maven-plugin</artifactId>
  161. <version>2.5.0</version>
  162. </dependency>
  163. </dependencies>
  164. <profiles>
  165. <!-- <profile>-->
  166. <!-- <id>dev</id>-->
  167. <!-- <properties>-->
  168. <!-- <profileActive>dev</profileActive>-->
  169. <!-- </properties>-->
  170. <!-- <activation>-->
  171. <!-- <activeByDefault>true</activeByDefault>-->
  172. <!-- </activation>-->
  173. <!-- </profile>-->
  174. <profile>
  175. <id>test</id>
  176. <properties>
  177. <profileActive>test</profileActive>
  178. </properties>
  179. <activation>
  180. <activeByDefault>true</activeByDefault>
  181. </activation>
  182. </profile>
  183. <profile>
  184. <id>prod</id>
  185. <properties>
  186. <profileActive>prod</profileActive>
  187. </properties>
  188. </profile>
  189. <profile>
  190. <id>local</id>
  191. <properties>
  192. <profileActive>local</profileActive>
  193. </properties>
  194. </profile>
  195. </profiles>
  196. <build>
  197. <finalName>${project.artifactId}</finalName>
  198. <resources>
  199. <resource>
  200. <directory>src/main/resources</directory>
  201. <filtering>true</filtering>
  202. <includes>
  203. <include>**/*.properties</include>
  204. <include>**/*.vm</include>
  205. <include>**/*.xml</include>
  206. </includes>
  207. </resource>
  208. <resource>
  209. <directory>src/main/resources</directory>
  210. <includes>
  211. <include>**/*.xlsx</include>
  212. <include>**/*.xls</include>
  213. </includes>
  214. <filtering>false</filtering>
  215. </resource>
  216. <resource>
  217. <directory>src/main/java</directory>
  218. <includes>
  219. <include>**/*.*</include>
  220. </includes>
  221. </resource>
  222. </resources>
  223. <plugins>
  224. <plugin>
  225. <groupId>org.apache.maven.plugins</groupId>
  226. <artifactId>maven-compiler-plugin</artifactId>
  227. <configuration>
  228. <source>1.8</source>
  229. <target>1.8</target>
  230. <encoding>UTF-8</encoding>
  231. <skip>true</skip>
  232. </configuration>
  233. </plugin>
  234. <!--需添加下面插件,否则java -jar命令启动报SrpingApplication类找不到错误-->
  235. <plugin>
  236. <groupId>org.springframework.boot</groupId>
  237. <artifactId>spring-boot-maven-plugin</artifactId>
  238. <executions>
  239. <execution>
  240. <goals>
  241. <goal>repackage</goal>
  242. </goals>
  243. </execution>
  244. </executions>
  245. </plugin>
  246. <!--需添加下面插件,否则java -jar命令启动报没有主清单错误-->
  247. <plugin>
  248. <groupId>org.apache.maven.plugins</groupId>
  249. <artifactId>maven-jar-plugin</artifactId>
  250. <version>3.2.0</version>
  251. <configuration>
  252. <archive>
  253. <manifest>
  254. <mainClass>com.mokamrp.privates.PrivateServerStart</mainClass>
  255. </manifest>
  256. </archive>
  257. </configuration>
  258. </plugin>
  259. </plugins>
  260. </build>
  261. </project>