pom.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <artifactId>oss</artifactId>
  8. <groupId>cn.reghao.oss</groupId>
  9. <version>1.0.0</version>
  10. </parent>
  11. <artifactId>oss-store</artifactId>
  12. <version>1.0.0</version>
  13. <packaging>jar</packaging>
  14. <properties>
  15. <maven.compiler.source>21</maven.compiler.source>
  16. <maven.compiler.target>21</maven.compiler.target>
  17. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  18. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  19. <project.build.outputDir>${project.basedir}/bin</project.build.outputDir>
  20. <netty.version>4.1.104.Final</netty.version>
  21. </properties>
  22. <dependencyManagement>
  23. <dependencies>
  24. <dependency>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-dependencies</artifactId>
  27. <version>${springboot.version}</version>
  28. <type>pom</type>
  29. <scope>import</scope>
  30. </dependency>
  31. </dependencies>
  32. </dependencyManagement>
  33. <dependencies>
  34. <dependency>
  35. <groupId>cn.reghao.oss</groupId>
  36. <artifactId>oss-api</artifactId>
  37. <version>1.0.0-SNAPSHOT</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.springframework.boot</groupId>
  41. <artifactId>spring-boot-starter-test</artifactId>
  42. <scope>test</scope>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.springframework.boot</groupId>
  46. <artifactId>spring-boot-starter</artifactId>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.springframework.boot</groupId>
  50. <artifactId>spring-boot-configuration-processor</artifactId>
  51. <optional>true</optional>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.apache.tika</groupId>
  55. <artifactId>tika-core</artifactId>
  56. <version>2.9.1</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>io.netty</groupId>
  60. <artifactId>netty-all</artifactId>
  61. <version>${netty.version}</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.apache.dubbo</groupId>
  65. <artifactId>dubbo-spring-boot-starter</artifactId>
  66. <version>3.3.6</version>
  67. </dependency>
  68. <!--<dependency>
  69. <groupId>io.netty</groupId>
  70. <artifactId>netty-transport</artifactId>
  71. <version>${netty.version}</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>io.netty</groupId>
  75. <artifactId>netty-codec-http</artifactId>
  76. <version>${netty.version}</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>io.netty</groupId>
  80. <artifactId>netty-transport-native-epoll</artifactId>
  81. <classifier>linux-x86_64</classifier>
  82. <version>${netty.version}</version>
  83. </dependency>-->
  84. <dependency>
  85. <groupId>commons-codec</groupId>
  86. <artifactId>commons-codec</artifactId>
  87. <version>1.16.0</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>com.github.oshi</groupId>
  91. <artifactId>oshi-core</artifactId>
  92. <version>6.6.3</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.springframework</groupId>
  96. <artifactId>spring-web</artifactId>
  97. </dependency>
  98. <dependency>
  99. <groupId>com.fasterxml.jackson.core</groupId>
  100. <artifactId>jackson-databind</artifactId>
  101. </dependency>
  102. </dependencies>
  103. <profiles>
  104. <profile>
  105. <id>dev</id>
  106. <properties>
  107. <profile.active>dev</profile.active>
  108. </properties>
  109. <activation>
  110. <activeByDefault>true</activeByDefault>
  111. </activation>
  112. </profile>
  113. <profile>
  114. <id>test</id>
  115. <properties>
  116. <profile.active>test</profile.active>
  117. </properties>
  118. </profile>
  119. </profiles>
  120. <build>
  121. <finalName>oss-store</finalName>
  122. <resources>
  123. <resource>
  124. <directory>src/main/resources</directory>
  125. <filtering>true</filtering>
  126. <includes>
  127. <include>application.yml</include>
  128. <include>application-${profile.active}.yml</include>
  129. <include>*.xml</include>
  130. </includes>
  131. </resource>
  132. </resources>
  133. <plugins>
  134. <plugin>
  135. <groupId>org.springframework.boot</groupId>
  136. <artifactId>spring-boot-maven-plugin</artifactId>
  137. <version>${springboot.version}</version>
  138. <executions>
  139. <execution>
  140. <goals>
  141. <goal>repackage</goal>
  142. </goals>
  143. </execution>
  144. </executions>
  145. <configuration>
  146. <!-- 生成的 jar 包输出到指定目录 -->
  147. <outputDirectory>${project.build.outputDir}</outputDirectory>
  148. </configuration>
  149. </plugin>
  150. </plugins>
  151. </build>
  152. </project>