pom.xml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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. <!-- mysql的依赖 -->
  37. <dependency>
  38. <groupId>mysql</groupId>
  39. <artifactId>mysql-connector-java</artifactId>
  40. <version>5.1.21</version>
  41. </dependency>
  42. <dependency>
  43. <groupId>com.alibaba</groupId>
  44. <artifactId>fastjson</artifactId>
  45. <version>1.2.6</version>
  46. </dependency>
  47. <!-- 分页插件 -->
  48. <dependency>
  49. <groupId>com.github.pagehelper</groupId>
  50. <artifactId>pagehelper-spring-boot-starter</artifactId>
  51. <version>1.2.3</version>
  52. </dependency>
  53. <!--模板引擎-->
  54. <dependency>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  57. </dependency>
  58. <!--允许不严格的html5格式出现-->
  59. <dependency>
  60. <groupId>net.sourceforge.nekohtml</groupId>
  61. <artifactId>nekohtml</artifactId>
  62. <version>1.9.22</version>
  63. </dependency>
  64. <!--springboot使用tomcat容器-->
  65. <dependency>
  66. <groupId>org.springframework.boot</groupId>
  67. <artifactId>spring-boot-starter-tomcat</artifactId>
  68. <scope>compile</scope>
  69. </dependency>
  70. <!--struts-->
  71. <dependency>
  72. <groupId>org.apache.struts</groupId>
  73. <artifactId>struts2-core</artifactId>
  74. <version>2.3.32</version>
  75. <!--<exclusions>spring-boot-starter-->
  76. <!--<exclusion>-->
  77. <!--<groupId>javassist</groupId>-->
  78. <!--<artifactId>javassist</artifactId>-->
  79. <!--</exclusion>-->
  80. <!--</exclusions>-->
  81. </dependency>
  82. <!--shiro-->
  83. <dependency>
  84. <groupId>org.apache.shiro</groupId>
  85. <artifactId>shiro-spring</artifactId>
  86. <version>1.4.0</version>
  87. </dependency>
  88. <dependency>
  89. <groupId>com.google.code.gson</groupId>
  90. <artifactId>gson</artifactId>
  91. <version>2.3</version>
  92. </dependency>
  93. <!-- jsoup 对 HTML 文档进行解析和操作 -->
  94. <dependency>
  95. <groupId>org.jsoup</groupId>
  96. <artifactId>jsoup</artifactId>
  97. <version>1.9.2</version>
  98. </dependency>
  99. <!--短信-->
  100. <dependency>
  101. <groupId>caimei</groupId>
  102. <artifactId>smsClient</artifactId>
  103. <version>1.0</version>
  104. </dependency>
  105. <!--dfs-->
  106. <dependency>
  107. <groupId>com.caimei</groupId>
  108. <artifactId>caimei-dfs-sdk</artifactId>
  109. <version>0.0.1-SNAPSHOT</version>
  110. </dependency>
  111. </dependencies>
  112. <profiles>
  113. <profile>
  114. <id>dev</id>
  115. <properties>
  116. <!-- 环境标识,需要与配置文件的名称相对应 -->
  117. <activatedProperties>dev</activatedProperties>
  118. </properties>
  119. <activation>
  120. <!-- 默认环境 -->
  121. <activeByDefault>true</activeByDefault>
  122. </activation>
  123. </profile>
  124. <profile>
  125. <id>test</id>
  126. <properties>
  127. <activatedProperties>test</activatedProperties>
  128. </properties>
  129. </profile>
  130. <profile>
  131. <id>prod</id>
  132. <properties>
  133. <activatedProperties>prod</activatedProperties>
  134. </properties>
  135. </profile>
  136. </profiles>
  137. <build>
  138. <resources>
  139. <resource>
  140. <!--配置文件路径 -->
  141. <directory>src/main/resources</directory> <!--这里对应项目存放配置文件的目录-->
  142. <!--开启filtering功能 -->
  143. <filtering>true</filtering>
  144. </resource>
  145. <resource>
  146. <directory>src/main/resources/${activatedProperties}</directory>
  147. <filtering>true</filtering>
  148. </resource>
  149. </resources>
  150. <plugins>
  151. <plugin>
  152. <groupId>org.springframework.boot</groupId>
  153. <artifactId>spring-boot-maven-plugin</artifactId>
  154. <version>1.5.2.RELEASE</version>
  155. <configuration>
  156. <mainClass>com.caimei.CaimeiMallAdminApplication</mainClass><!--springboot启动类目录-->
  157. </configuration>
  158. <executions>
  159. <execution>
  160. <goals>
  161. <!--创建一个自动可执行的jar或war文件 -->
  162. <goal>repackage</goal>
  163. </goals>
  164. </execution>
  165. </executions>
  166. </plugin>
  167. </plugins>
  168. </build>
  169. </project>