pom.xml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.caimei</groupId>
  7. <artifactId>caimei-mall-admin</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <properties>
  10. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  11. <maven.compiler.source>1.8</maven.compiler.source>
  12. <maven.compiler.target>1.8</maven.compiler.target>
  13. </properties>
  14. <parent>
  15. <groupId>org.springframework.boot</groupId>
  16. <artifactId>spring-boot-starter-parent</artifactId>
  17. <version>1.5.9.RELEASE</version>
  18. </parent>
  19. <dependencies>
  20. <!--spring Boot原始依赖-->
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-web</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.springframework.boot</groupId>
  27. <artifactId>spring-boot-starter-test</artifactId>
  28. <scope>test</scope>
  29. </dependency>
  30. <!-- 添加mybatis的核心包 -->
  31. <dependency>
  32. <groupId>org.mybatis.spring.boot</groupId>
  33. <artifactId>mybatis-spring-boot-starter</artifactId>
  34. <version>1.3.1</version>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.projectlombok</groupId>
  38. <artifactId>lombok</artifactId>
  39. <optional>true</optional>
  40. </dependency>
  41. <!-- mysql的依赖 -->
  42. <dependency>
  43. <groupId>mysql</groupId>
  44. <artifactId>mysql-connector-java</artifactId>
  45. <version>8.0.18</version>
  46. </dependency>
  47. <dependency>
  48. <groupId>com.alibaba</groupId>
  49. <artifactId>fastjson</artifactId>
  50. <version>1.2.6</version>
  51. </dependency>
  52. <!-- 分页插件 -->
  53. <dependency>
  54. <groupId>com.github.pagehelper</groupId>
  55. <artifactId>pagehelper-spring-boot-starter</artifactId>
  56. <version>1.2.3</version>
  57. </dependency>
  58. <!--模板引擎-->
  59. <dependency>
  60. <groupId>org.springframework.boot</groupId>
  61. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  62. </dependency>
  63. <!--允许不严格的html5格式出现-->
  64. <dependency>
  65. <groupId>net.sourceforge.nekohtml</groupId>
  66. <artifactId>nekohtml</artifactId>
  67. <version>1.9.22</version>
  68. </dependency>
  69. <!--springboot使用tomcat容器-->
  70. <dependency>
  71. <groupId>org.springframework.boot</groupId>
  72. <artifactId>spring-boot-starter-tomcat</artifactId>
  73. <scope>compile</scope>
  74. </dependency>
  75. <!--struts-->
  76. <dependency>
  77. <groupId>org.apache.struts</groupId>
  78. <artifactId>struts2-core</artifactId>
  79. <version>2.3.32</version>
  80. <!--<exclusions>spring-boot-starter-->
  81. <!--<exclusion>-->
  82. <!--<groupId>javassist</groupId>-->
  83. <!--<artifactId>javassist</artifactId>-->
  84. <!--</exclusion>-->
  85. <!--</exclusions>-->
  86. </dependency>
  87. <!--shiro-->
  88. <dependency>
  89. <groupId>org.apache.shiro</groupId>
  90. <artifactId>shiro-spring</artifactId>
  91. <version>1.4.0</version>
  92. </dependency>
  93. <dependency>
  94. <groupId>com.google.code.gson</groupId>
  95. <artifactId>gson</artifactId>
  96. <version>2.3</version>
  97. </dependency>
  98. <!-- jsoup 对 HTML 文档进行解析和操作 -->
  99. <dependency>
  100. <groupId>org.jsoup</groupId>
  101. <artifactId>jsoup</artifactId>
  102. <version>1.9.2</version>
  103. </dependency>
  104. <!--短信-->
  105. <dependency>
  106. <groupId>caimei</groupId>
  107. <artifactId>smsClient</artifactId>
  108. <version>1.0</version>
  109. </dependency>
  110. <!--dfs-->
  111. <dependency>
  112. <groupId>com.github.tobato</groupId>
  113. <artifactId>fastdfs-client</artifactId>
  114. <version>1.26.1-RELEASE</version>
  115. </dependency>
  116. <!--junit-->
  117. <dependency>
  118. <groupId>junit</groupId>
  119. <artifactId>junit</artifactId>
  120. <version>4.12</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>org.springframework</groupId>
  124. <artifactId>spring-test</artifactId>
  125. <version>4.3.7.RELEASE</version>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.springframework.boot</groupId>
  129. <artifactId>spring-boot-test</artifactId>
  130. <version>1.5.2.RELEASE</version>
  131. </dependency>
  132. </dependencies>
  133. <profiles>
  134. <profile>
  135. <id>dev</id>
  136. <properties>
  137. <!-- 环境标识,需要与配置文件的名称相对应 -->
  138. <activatedProperties>dev</activatedProperties>
  139. </properties>
  140. <activation>
  141. <!-- 默认环境 -->
  142. <activeByDefault>true</activeByDefault>
  143. </activation>
  144. </profile>
  145. <profile>
  146. <id>test</id>
  147. <properties>
  148. <activatedProperties>test</activatedProperties>
  149. </properties>
  150. </profile>
  151. <profile>
  152. <id>prod</id>
  153. <properties>
  154. <activatedProperties>prod</activatedProperties>
  155. </properties>
  156. </profile>
  157. </profiles>
  158. <build>
  159. <resources>
  160. <resource>
  161. <!--配置文件路径 -->
  162. <directory>src/main/resources</directory> <!--这里对应项目存放配置文件的目录-->
  163. <!--开启filtering功能 -->
  164. <filtering>true</filtering>
  165. </resource>
  166. <resource>
  167. <directory>src/main/resources/${activatedProperties}</directory>
  168. <filtering>true</filtering>
  169. </resource>
  170. </resources>
  171. <plugins>
  172. <plugin>
  173. <groupId>org.springframework.boot</groupId>
  174. <artifactId>spring-boot-maven-plugin</artifactId>
  175. <version>1.5.2.RELEASE</version>
  176. <configuration>
  177. <mainClass>com.caimei.CaimeiMallAdminApplication</mainClass><!--springboot启动类目录-->
  178. </configuration>
  179. <executions>
  180. <execution>
  181. <goals>
  182. <!--创建一个自动可执行的jar或war文件 -->
  183. <goal>repackage</goal>
  184. </goals>
  185. </execution>
  186. </executions>
  187. </plugin>
  188. </plugins>
  189. </build>
  190. </project>