pom.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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.6.2</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.caimei365</groupId>
  12. <artifactId>caimei365-manager-api</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>caimei365-manager-api</name>
  15. <description>caimei365-manager-api</description>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. </properties>
  19. <dependencies>
  20. <dependency>
  21. <groupId>org.springframework.boot</groupId>
  22. <artifactId>spring-boot-starter-data-redis</artifactId>
  23. </dependency>
  24. <dependency>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-starter-security</artifactId>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-starter-web</artifactId>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.mybatis.spring.boot</groupId>
  34. <artifactId>mybatis-spring-boot-starter</artifactId>
  35. <version>2.2.1</version>
  36. </dependency>
  37. <dependency>
  38. <groupId>com.github.pagehelper</groupId>
  39. <artifactId>pagehelper-spring-boot-starter</artifactId>
  40. <version>1.4.1</version>
  41. <exclusions>
  42. <exclusion>
  43. <artifactId>mybatis-spring-boot-starter</artifactId>
  44. <groupId>org.mybatis.spring.boot</groupId>
  45. </exclusion>
  46. </exclusions>
  47. </dependency>
  48. <dependency>
  49. <groupId>mysql</groupId>
  50. <artifactId>mysql-connector-java</artifactId>
  51. <scope>runtime</scope>
  52. </dependency>
  53. <dependency>
  54. <groupId>io.jsonwebtoken</groupId>
  55. <artifactId>jjwt</artifactId>
  56. <version>0.9.1</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>com.alibaba</groupId>
  60. <artifactId>fastjson</artifactId>
  61. <version>1.2.79</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.projectlombok</groupId>
  65. <artifactId>lombok</artifactId>
  66. <optional>true</optional>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.springframework.boot</groupId>
  70. <artifactId>spring-boot-starter-test</artifactId>
  71. <scope>test</scope>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.springframework.security</groupId>
  75. <artifactId>spring-security-test</artifactId>
  76. <scope>test</scope>
  77. </dependency>
  78. </dependencies>
  79. <profiles>
  80. <profile>
  81. <id>dev</id>
  82. <properties>
  83. <!-- 环境标识,需要与配置文件的名称相对应 -->
  84. <activatedProperties>dev</activatedProperties>
  85. </properties>
  86. <activation>
  87. <!-- 默认环境 -->
  88. <activeByDefault>true</activeByDefault>
  89. </activation>
  90. </profile>
  91. <profile>
  92. <id>beta</id>
  93. <properties>
  94. <activatedProperties>beta</activatedProperties>
  95. </properties>
  96. </profile>
  97. <profile>
  98. <id>prod</id>
  99. <properties>
  100. <activatedProperties>prod</activatedProperties>
  101. </properties>
  102. </profile>
  103. </profiles>
  104. <build>
  105. <finalName>${project.artifactId}</finalName>
  106. <resources>
  107. <resource>
  108. <directory>src/main/resources</directory>
  109. <!--开启filtering功能 -->
  110. <filtering>true</filtering>
  111. </resource>
  112. <resource>
  113. <directory>src/main/resources/config/${activatedProperties}</directory>
  114. <filtering>true</filtering>
  115. </resource>
  116. </resources>
  117. <plugins>
  118. <plugin>
  119. <groupId>org.springframework.boot</groupId>
  120. <artifactId>spring-boot-maven-plugin</artifactId>
  121. </plugin>
  122. </plugins>
  123. </build>
  124. </project>