pom.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>cn.reghao.oss</groupId>
  7. <artifactId>oss</artifactId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <artifactId>oss-mgr</artifactId>
  11. <version>1.0.0</version>
  12. <packaging>jar</packaging>
  13. <properties>
  14. <maven.compiler.source>21</maven.compiler.source>
  15. <maven.compiler.target>21</maven.compiler.target>
  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>${springboot.version}</version>
  24. <type>pom</type>
  25. <scope>import</scope>
  26. </dependency>
  27. </dependencies>
  28. </dependencyManagement>
  29. <dependencies>
  30. <dependency>
  31. <groupId>cn.reghao.oss</groupId>
  32. <artifactId>oss-api</artifactId>
  33. <version>1.0.0-SNAPSHOT</version>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter-test</artifactId>
  38. <scope>test</scope>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-starter-web</artifactId>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.springframework.boot</groupId>
  46. <artifactId>spring-boot-configuration-processor</artifactId>
  47. <optional>true</optional>
  48. </dependency>
  49. <dependency>
  50. <groupId>com.mysql</groupId>
  51. <artifactId>mysql-connector-j</artifactId>
  52. <version>8.0.31</version>
  53. </dependency>
  54. <dependency>
  55. <groupId>com.zaxxer</groupId>
  56. <artifactId>HikariCP</artifactId>
  57. <version>3.3.1</version>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.mybatis.spring.boot</groupId>
  61. <artifactId>mybatis-spring-boot-starter</artifactId>
  62. <version>3.0.4</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.springframework.boot</groupId>
  66. <artifactId>spring-boot-starter-cache</artifactId>
  67. </dependency>
  68. <dependency>
  69. <groupId>com.github.ben-manes.caffeine</groupId>
  70. <artifactId>caffeine</artifactId>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.apache.dubbo</groupId>
  74. <artifactId>dubbo-spring-boot-starter</artifactId>
  75. <version>3.3.6</version>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.springdoc</groupId>
  79. <artifactId>springdoc-openapi-ui</artifactId>
  80. <version>1.7.0</version>
  81. </dependency>
  82. </dependencies>
  83. <profiles>
  84. <profile>
  85. <id>dev</id>
  86. <properties>
  87. <profile.active>dev</profile.active>
  88. </properties>
  89. <activation>
  90. <activeByDefault>true</activeByDefault>
  91. </activation>
  92. </profile>
  93. <profile>
  94. <id>test</id>
  95. <properties>
  96. <profile.active>test</profile.active>
  97. </properties>
  98. </profile>
  99. </profiles>
  100. <build>
  101. <finalName>oss-mgr</finalName>
  102. <extensions>
  103. <extension>
  104. <groupId>kr.motd.maven</groupId>
  105. <artifactId>os-maven-plugin</artifactId>
  106. <version>1.5.0.Final</version>
  107. </extension>
  108. </extensions>
  109. <resources>
  110. <resource>
  111. <directory>src/main/resources</directory>
  112. <filtering>true</filtering>
  113. <includes>
  114. <include>application.yml</include>
  115. <include>application-${profile.active}.yml</include>
  116. <include>mapper/**</include>
  117. <include>*.xml</include>
  118. </includes>
  119. </resource>
  120. </resources>
  121. <plugins>
  122. <plugin>
  123. <groupId>org.apache.maven.plugins</groupId>
  124. <artifactId>maven-compiler-plugin</artifactId>
  125. <version>3.13.0</version>
  126. <configuration>
  127. <compilerArgs>
  128. <arg>-parameters</arg>
  129. </compilerArgs>
  130. </configuration>
  131. </plugin>
  132. <plugin>
  133. <groupId>org.springframework.boot</groupId>
  134. <artifactId>spring-boot-maven-plugin</artifactId>
  135. <version>${springboot.version}</version>
  136. <executions>
  137. <execution>
  138. <goals>
  139. <goal>repackage</goal>
  140. </goals>
  141. </execution>
  142. </executions>
  143. </plugin>
  144. </plugins>
  145. </build>
  146. </project>