pom.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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>commons-codec</groupId>
  70. <artifactId>commons-codec</artifactId>
  71. <version>1.16.0</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>com.github.oshi</groupId>
  75. <artifactId>oshi-core</artifactId>
  76. <version>6.6.3</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.springframework</groupId>
  80. <artifactId>spring-web</artifactId>
  81. </dependency>
  82. <dependency>
  83. <groupId>com.fasterxml.jackson.core</groupId>
  84. <artifactId>jackson-databind</artifactId>
  85. </dependency>
  86. </dependencies>
  87. <profiles>
  88. <profile>
  89. <id>dev</id>
  90. <properties>
  91. <profile.active>dev</profile.active>
  92. </properties>
  93. <activation>
  94. <activeByDefault>true</activeByDefault>
  95. </activation>
  96. </profile>
  97. <profile>
  98. <id>test</id>
  99. <properties>
  100. <profile.active>test</profile.active>
  101. </properties>
  102. </profile>
  103. </profiles>
  104. <build>
  105. <finalName>oss-store</finalName>
  106. <resources>
  107. <resource>
  108. <directory>src/main/resources</directory>
  109. <filtering>true</filtering>
  110. <includes>
  111. <include>application.yml</include>
  112. <include>application-${profile.active}.yml</include>
  113. <include>*.xml</include>
  114. </includes>
  115. </resource>
  116. </resources>
  117. <plugins>
  118. <plugin>
  119. <groupId>org.springframework.boot</groupId>
  120. <artifactId>spring-boot-maven-plugin</artifactId>
  121. <version>${springboot.version}</version>
  122. <executions>
  123. <execution>
  124. <goals>
  125. <goal>repackage</goal>
  126. </goals>
  127. </execution>
  128. </executions>
  129. <configuration>
  130. <!-- 生成的 jar 包输出到指定目录 -->
  131. <outputDirectory>${project.build.outputDir}</outputDirectory>
  132. </configuration>
  133. </plugin>
  134. </plugins>
  135. </build>
  136. </project>