pom.xml 5.3 KB

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