pom.xml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  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. </dependencies>
  131. <profiles>
  132. <!-- <profile>-->
  133. <!-- <id>dev</id>-->
  134. <!-- <properties>-->
  135. <!-- <profileActive>dev</profileActive>-->
  136. <!-- </properties>-->
  137. <!-- <activation>-->
  138. <!-- <activeByDefault>true</activeByDefault>-->
  139. <!-- </activation>-->
  140. <!-- </profile>-->
  141. <profile>
  142. <id>test</id>
  143. <properties>
  144. <profileActive>test</profileActive>
  145. </properties>
  146. <activation>
  147. <activeByDefault>true</activeByDefault>
  148. </activation>
  149. </profile>
  150. <profile>
  151. <id>prod</id>
  152. <properties>
  153. <profileActive>prod</profileActive>
  154. </properties>
  155. </profile>
  156. <profile>
  157. <id>local</id>
  158. <properties>
  159. <profileActive>local</profileActive>
  160. </properties>
  161. </profile>
  162. </profiles>
  163. <build>
  164. <finalName>${project.artifactId}</finalName>
  165. <resources>
  166. <resource>
  167. <directory>src/main/resources</directory>
  168. <filtering>true</filtering>
  169. <includes>
  170. <include>**/*.*</include>
  171. </includes>
  172. </resource>
  173. <resource>
  174. <directory>src/main/java</directory>
  175. <includes>
  176. <include>**/*.*</include>
  177. </includes>
  178. </resource>
  179. </resources>
  180. <plugins>
  181. <plugin>
  182. <groupId>org.apache.maven.plugins</groupId>
  183. <artifactId>maven-compiler-plugin</artifactId>
  184. <configuration>
  185. <source>1.8</source>
  186. <target>1.8</target>
  187. <encoding>UTF-8</encoding>
  188. <skip>true</skip>
  189. </configuration>
  190. </plugin>
  191. <!--需添加下面插件,否则java -jar命令启动报SrpingApplication类找不到错误-->
  192. <plugin>
  193. <groupId>org.springframework.boot</groupId>
  194. <artifactId>spring-boot-maven-plugin</artifactId>
  195. <executions>
  196. <execution>
  197. <goals>
  198. <goal>repackage</goal>
  199. </goals>
  200. </execution>
  201. </executions>
  202. </plugin>
  203. <!--需添加下面插件,否则java -jar命令启动报没有主清单错误-->
  204. <plugin>
  205. <groupId>org.apache.maven.plugins</groupId>
  206. <artifactId>maven-jar-plugin</artifactId>
  207. <version>3.2.0</version>
  208. <configuration>
  209. <archive>
  210. <manifest>
  211. <mainClass>com.mokamrp.privates.PrivateServerStart</mainClass>
  212. </manifest>
  213. </archive>
  214. </configuration>
  215. </plugin>
  216. </plugins>
  217. </build>
  218. </project>