pom.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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>17</maven.compiler.source>
  16. <maven.compiler.target>17</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. <springboot.version>3.2.1</springboot.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>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-test</artifactId>
  37. <scope>test</scope>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.springframework.boot</groupId>
  41. <artifactId>spring-boot-starter</artifactId>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.springframework.boot</groupId>
  45. <artifactId>spring-boot-configuration-processor</artifactId>
  46. <optional>true</optional>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.apache.tika</groupId>
  50. <artifactId>tika-core</artifactId>
  51. <version>2.9.1</version>
  52. </dependency>
  53. <dependency>
  54. <groupId>io.netty</groupId>
  55. <artifactId>netty-all</artifactId>
  56. <version>4.1.104.Final</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>commons-codec</groupId>
  60. <artifactId>commons-codec</artifactId>
  61. <version>1.16.0</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>com.github.oshi</groupId>
  65. <artifactId>oshi-core</artifactId>
  66. <version>6.6.3</version>
  67. </dependency>
  68. </dependencies>
  69. <profiles>
  70. <profile>
  71. <id>dev</id>
  72. <properties>
  73. <profile.active>dev</profile.active>
  74. </properties>
  75. <activation>
  76. <activeByDefault>true</activeByDefault>
  77. </activation>
  78. </profile>
  79. <profile>
  80. <id>test</id>
  81. <properties>
  82. <profile.active>test</profile.active>
  83. </properties>
  84. </profile>
  85. </profiles>
  86. <build>
  87. <finalName>oss-store</finalName>
  88. <resources>
  89. <resource>
  90. <directory>src/main/resources</directory>
  91. <filtering>true</filtering>
  92. <includes>
  93. <include>application.yml</include>
  94. <include>application-${profile.active}.yml</include>
  95. <include>mapper/**</include>
  96. <include>*.xml</include>
  97. </includes>
  98. </resource>
  99. </resources>
  100. <plugins>
  101. <plugin>
  102. <groupId>org.springframework.boot</groupId>
  103. <artifactId>spring-boot-maven-plugin</artifactId>
  104. <version>${springboot.version}</version>
  105. <executions>
  106. <execution>
  107. <goals>
  108. <goal>repackage</goal>
  109. </goals>
  110. </execution>
  111. </executions>
  112. <configuration>
  113. <!-- 生成的 jar 包输出到指定目录 -->
  114. <outputDirectory>${project.build.outputDir}</outputDirectory>
  115. </configuration>
  116. </plugin>
  117. </plugins>
  118. </build>
  119. </project>