pom.xml 10 KB

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