pom.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.2.4.RELEASE</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.caimei</groupId>
  12. <artifactId>caimei-mall</artifactId>
  13. <version>1.0-SNAPSHOT</version>
  14. <properties>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. <maven.compiler.source>1.8</maven.compiler.source>
  17. <maven.compiler.target>1.8</maven.compiler.target>
  18. </properties>
  19. <dependencies>
  20. <dependency>
  21. <groupId>org.projectlombok</groupId>
  22. <artifactId>lombok</artifactId>
  23. <optional>true</optional>
  24. </dependency>
  25. <dependency>
  26. <groupId>com.caimei.module</groupId>
  27. <artifactId>pay</artifactId>
  28. <version>0.0.1-SNAPSHOT</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>com.caimei.module</groupId>
  32. <artifactId>caimei-search</artifactId>
  33. <version>0.0.1-SNAPSHOT</version>
  34. </dependency>
  35. <dependency>
  36. <groupId>commons-beanutils</groupId>
  37. <artifactId>commons-beanutils</artifactId>
  38. <version>1.9.4</version>
  39. </dependency>
  40. <!--spring Boot原始依赖-->
  41. <dependency>
  42. <groupId>org.springframework.boot</groupId>
  43. <artifactId>spring-boot-starter-web</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.springframework.boot</groupId>
  47. <artifactId>spring-boot-starter-test</artifactId>
  48. <scope>test</scope>
  49. </dependency>
  50. <!-- 添加mybatis的核心包 -->
  51. <dependency>
  52. <groupId>org.mybatis.spring.boot</groupId>
  53. <artifactId>mybatis-spring-boot-starter</artifactId>
  54. <version>2.1.1</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>mysql</groupId>
  58. <artifactId>mysql-connector-java</artifactId>
  59. <version>8.0.18</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>com.alibaba</groupId>
  63. <artifactId>fastjson</artifactId>
  64. <version>1.2.6</version>
  65. </dependency>
  66. <!-- 分页插件 -->
  67. <dependency>
  68. <groupId>com.github.pagehelper</groupId>
  69. <artifactId>pagehelper-spring-boot-starter</artifactId>
  70. <version>1.2.3</version>
  71. </dependency>
  72. <!--模板引擎-->
  73. <dependency>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  76. </dependency>
  77. <!--允许不严格的html5格式出现-->
  78. <dependency>
  79. <groupId>net.sourceforge.nekohtml</groupId>
  80. <artifactId>nekohtml</artifactId>
  81. <version>1.9.22</version>
  82. </dependency>
  83. <!--springboot使用tomcat容器-->
  84. <dependency>
  85. <groupId>org.springframework.boot</groupId>
  86. <artifactId>spring-boot-starter-tomcat</artifactId>
  87. <scope>compile</scope>
  88. </dependency>
  89. <!--struts-->
  90. <dependency>
  91. <groupId>org.apache.struts</groupId>
  92. <artifactId>struts2-core</artifactId>
  93. <version>2.3.32</version>
  94. <exclusions>
  95. <exclusion>
  96. <groupId>javassist</groupId>
  97. <artifactId>javassist</artifactId>
  98. </exclusion>
  99. </exclusions>
  100. </dependency>
  101. </dependencies>
  102. <profiles>
  103. <profile>
  104. <id>dev</id>
  105. <properties>
  106. <!-- 环境标识,需要与配置文件的名称相对应 -->
  107. <activatedProperties>dev</activatedProperties>
  108. </properties>
  109. <activation>
  110. <!-- 默认环境 -->
  111. <activeByDefault>true</activeByDefault>
  112. </activation>
  113. </profile>
  114. <profile>
  115. <id>test</id>
  116. <properties>
  117. <activatedProperties>test</activatedProperties>
  118. </properties>
  119. </profile>
  120. <profile>
  121. <id>prod</id>
  122. <properties>
  123. <activatedProperties>prod</activatedProperties>
  124. </properties>
  125. </profile>
  126. </profiles>
  127. <build>
  128. <resources>
  129. <resource>
  130. <!--配置文件路径 -->
  131. <directory>src/main/resources</directory> <!--这里对应项目存放配置文件的目录-->
  132. <!--开启filtering功能 -->
  133. <filtering>true</filtering>
  134. </resource>
  135. <resource>
  136. <directory>src/main/resources/${activatedProperties}</directory>
  137. <filtering>true</filtering>
  138. </resource>
  139. </resources>
  140. <plugins>
  141. <plugin>
  142. <groupId>org.springframework.boot</groupId>
  143. <artifactId>spring-boot-maven-plugin</artifactId>
  144. <configuration>
  145. <mainClass>com.caimei.StartApplication</mainClass><!--springboot启动类目录-->
  146. </configuration>
  147. <executions>
  148. <execution>
  149. <goals>
  150. <!--创建一个自动可执行的jar或war文件 -->
  151. <goal>repackage</goal>
  152. </goals>
  153. </execution>
  154. </executions>
  155. </plugin>
  156. </plugins>
  157. </build>
  158. </project>