pom.xml 7.3 KB

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