pom.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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.nuojing</groupId>
  7. <artifactId>nuojing-data-service</artifactId>
  8. <version>0.0.1-SNAPSHOT</version>
  9. <name>nuojing-data-service</name>
  10. <description>Nuojing data service backend</description>
  11. <properties>
  12. <java.version>17</java.version>
  13. <spring-boot.version>3.3.5</spring-boot.version>
  14. <mybatis-spring-boot.version>3.0.3</mybatis-spring-boot.version>
  15. <lombok.version>1.18.42</lombok.version>
  16. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  17. </properties>
  18. <dependencyManagement>
  19. <dependencies>
  20. <dependency>
  21. <groupId>org.springframework.boot</groupId>
  22. <artifactId>spring-boot-dependencies</artifactId>
  23. <version>${spring-boot.version}</version>
  24. <type>pom</type>
  25. <scope>import</scope>
  26. </dependency>
  27. </dependencies>
  28. </dependencyManagement>
  29. <dependencies>
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-web</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-validation</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.mybatis.spring.boot</groupId>
  40. <artifactId>mybatis-spring-boot-starter</artifactId>
  41. <version>${mybatis-spring-boot.version}</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.springframework.boot</groupId>
  45. <artifactId>spring-boot-starter-data-redis</artifactId>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.springframework.security</groupId>
  49. <artifactId>spring-security-crypto</artifactId>
  50. </dependency>
  51. <dependency>
  52. <groupId>com.mysql</groupId>
  53. <artifactId>mysql-connector-j</artifactId>
  54. <scope>runtime</scope>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.projectlombok</groupId>
  58. <artifactId>lombok</artifactId>
  59. <version>${lombok.version}</version>
  60. <optional>true</optional>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.springframework.boot</groupId>
  64. <artifactId>spring-boot-starter-test</artifactId>
  65. <scope>test</scope>
  66. </dependency>
  67. </dependencies>
  68. <build>
  69. <resources>
  70. <resource>
  71. <directory>src/main/resources</directory>
  72. <filtering>true</filtering>
  73. </resource>
  74. </resources>
  75. <plugins>
  76. <plugin>
  77. <groupId>org.springframework.boot</groupId>
  78. <artifactId>spring-boot-maven-plugin</artifactId>
  79. <version>${spring-boot.version}</version>
  80. <executions>
  81. <execution>
  82. <goals>
  83. <goal>repackage</goal>
  84. </goals>
  85. </execution>
  86. </executions>
  87. <configuration>
  88. <profiles>
  89. <profile>${profileActive}</profile>
  90. </profiles>
  91. </configuration>
  92. </plugin>
  93. <plugin>
  94. <groupId>org.apache.maven.plugins</groupId>
  95. <artifactId>maven-compiler-plugin</artifactId>
  96. <version>3.13.0</version>
  97. <configuration>
  98. <release>${java.version}</release>
  99. <annotationProcessorPaths>
  100. <path>
  101. <groupId>org.projectlombok</groupId>
  102. <artifactId>lombok</artifactId>
  103. <version>${lombok.version}</version>
  104. </path>
  105. </annotationProcessorPaths>
  106. </configuration>
  107. </plugin>
  108. </plugins>
  109. </build>
  110. <profiles>
  111. <profile>
  112. <id>dev</id>
  113. <properties>
  114. <profileActive>dev</profileActive>
  115. </properties>
  116. </profile>
  117. <profile>
  118. <id>test</id>
  119. <properties>
  120. <profileActive>test</profileActive>
  121. </properties>
  122. </profile>
  123. <profile>
  124. <id>prod</id>
  125. <properties>
  126. <profileActive>prod</profileActive>
  127. </properties>
  128. </profile>
  129. </profiles>
  130. </project>