pom.xml 9.2 KB

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