pom.xml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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-wechat</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>caimei365-wechat</name>
  15. <description>caimei365-wechat</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-web</artifactId>
  23. </dependency>
  24. <dependency>
  25. <groupId>com.alibaba</groupId>
  26. <artifactId>fastjson</artifactId>
  27. <version>1.2.79</version>
  28. </dependency>
  29. <dependency>
  30. <groupId>org.projectlombok</groupId>
  31. <artifactId>lombok</artifactId>
  32. <optional>true</optional>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-test</artifactId>
  37. <scope>test</scope>
  38. </dependency>
  39. </dependencies>
  40. <profiles>
  41. <profile>
  42. <id>dev</id>
  43. <properties>
  44. <!-- 环境标识,需要与配置文件的名称相对应 -->
  45. <activatedProperties>dev</activatedProperties>
  46. </properties>
  47. <activation>
  48. <!-- 默认环境 -->
  49. <activeByDefault>true</activeByDefault>
  50. </activation>
  51. </profile>
  52. <profile>
  53. <id>beta</id>
  54. <properties>
  55. <activatedProperties>beta</activatedProperties>
  56. </properties>
  57. </profile>
  58. <profile>
  59. <id>prod</id>
  60. <properties>
  61. <activatedProperties>prod</activatedProperties>
  62. </properties>
  63. </profile>
  64. </profiles>
  65. <build>
  66. <finalName>${project.artifactId}</finalName>
  67. <resources>
  68. <resource>
  69. <directory>src/main/resources</directory>
  70. <!--开启filtering功能 -->
  71. <filtering>true</filtering>
  72. </resource>
  73. <resource>
  74. <directory>src/main/resources/config/${activatedProperties}</directory>
  75. <filtering>true</filtering>
  76. </resource>
  77. </resources>
  78. <plugins>
  79. <plugin>
  80. <groupId>org.springframework.boot</groupId>
  81. <artifactId>spring-boot-maven-plugin</artifactId>
  82. </plugin>
  83. </plugins>
  84. </build>
  85. </project>