pom.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.adx</groupId>
  7. <artifactId>adx-tracking</artifactId>
  8. <version>1.0.0</version>
  9. <name>adx-tracking</name>
  10. <description>ADX Tracking Server - Java implementation</description>
  11. <properties>
  12. <java.version>17</java.version>
  13. <maven.compiler.source>${java.version}</maven.compiler.source>
  14. <maven.compiler.target>${java.version}</maven.compiler.target>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. <spring-boot.version>3.2.5</spring-boot.version>
  17. </properties>
  18. <profiles>
  19. <profile>
  20. <id>dev</id>
  21. <activation>
  22. <activeByDefault>true</activeByDefault>
  23. </activation>
  24. <properties>
  25. <profileActive>dev</profileActive>
  26. </properties>
  27. </profile>
  28. <profile>
  29. <id>prod</id>
  30. <properties>
  31. <profileActive>prod</profileActive>
  32. </properties>
  33. </profile>
  34. <profile>
  35. <id>test</id>
  36. <properties>
  37. <profileActive>test</profileActive>
  38. </properties>
  39. </profile>
  40. </profiles>
  41. <dependencyManagement>
  42. <dependencies>
  43. <dependency>
  44. <groupId>org.springframework.boot</groupId>
  45. <artifactId>spring-boot-dependencies</artifactId>
  46. <version>${spring-boot.version}</version>
  47. <type>pom</type>
  48. <scope>import</scope>
  49. </dependency>
  50. </dependencies>
  51. </dependencyManagement>
  52. <dependencies>
  53. <!-- Spring Web (REST API) -->
  54. <dependency>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-starter-web</artifactId>
  57. </dependency>
  58. <!-- Spring Data Redis (Lettuce) -->
  59. <dependency>
  60. <groupId>org.springframework.boot</groupId>
  61. <artifactId>spring-boot-starter-data-redis</artifactId>
  62. </dependency>
  63. <!-- MyBatis (TiDB/MySQL) -->
  64. <dependency>
  65. <groupId>org.mybatis.spring.boot</groupId>
  66. <artifactId>mybatis-spring-boot-starter</artifactId>
  67. <version>3.0.3</version>
  68. </dependency>
  69. <!-- MySQL Driver (TiDB compatible) -->
  70. <dependency>
  71. <groupId>com.mysql</groupId>
  72. <artifactId>mysql-connector-j</artifactId>
  73. <scope>runtime</scope>
  74. </dependency>
  75. <!-- Jackson (already included via spring-boot-starter-web) -->
  76. <!-- Configuration Processor -->
  77. <dependency>
  78. <groupId>org.springframework.boot</groupId>
  79. <artifactId>spring-boot-configuration-processor</artifactId>
  80. <optional>true</optional>
  81. </dependency>
  82. <!-- Test -->
  83. <dependency>
  84. <groupId>org.springframework.boot</groupId>
  85. <artifactId>spring-boot-starter-test</artifactId>
  86. <scope>test</scope>
  87. </dependency>
  88. </dependencies>
  89. <build>
  90. <resources>
  91. <resource>
  92. <directory>src/main/resources</directory>
  93. <filtering>true</filtering>
  94. </resource>
  95. </resources>
  96. <plugins>
  97. <plugin>
  98. <groupId>org.springframework.boot</groupId>
  99. <artifactId>spring-boot-maven-plugin</artifactId>
  100. <version>${spring-boot.version}</version>
  101. <executions>
  102. <execution>
  103. <goals>
  104. <goal>repackage</goal>
  105. </goals>
  106. </execution>
  107. </executions>
  108. </plugin>
  109. <plugin>
  110. <groupId>org.apache.maven.plugins</groupId>
  111. <artifactId>maven-resources-plugin</artifactId>
  112. <version>3.3.1</version>
  113. <configuration>
  114. <delimiters>
  115. <delimiter>@</delimiter>
  116. </delimiters>
  117. <useDefaultDelimiters>false</useDefaultDelimiters>
  118. </configuration>
  119. </plugin>
  120. </plugins>
  121. </build>
  122. </project>