pom.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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.tnb</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. <project.build.outputDir>${project.basedir}/bin</project.build.outputDir>
  16. </properties>
  17. <dependencies>
  18. <dependency>
  19. <groupId>cn.reghao.tnb</groupId>
  20. <artifactId>common</artifactId>
  21. <version>1.0.0-SNAPSHOT</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>cn.reghao.tnb</groupId>
  25. <artifactId>common-auth</artifactId>
  26. <version>1.0.0-SNAPSHOT</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>cn.reghao.tnb</groupId>
  30. <artifactId>oss-api</artifactId>
  31. <version>1.0.0-SNAPSHOT</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.springframework.boot</groupId>
  35. <artifactId>spring-boot-starter-test</artifactId>
  36. <scope>test</scope>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.springframework.boot</groupId>
  40. <artifactId>spring-boot-starter-cache</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>com.github.ben-manes.caffeine</groupId>
  44. <artifactId>caffeine</artifactId>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.mybatis.spring.boot</groupId>
  48. <artifactId>mybatis-spring-boot-starter</artifactId>
  49. <version>3.0.4</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>com.mysql</groupId>
  53. <artifactId>mysql-connector-j</artifactId>
  54. <version>8.0.31</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>com.zaxxer</groupId>
  58. <artifactId>HikariCP</artifactId>
  59. <version>3.3.1</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.apache.tika</groupId>
  63. <artifactId>tika-core</artifactId>
  64. <version>2.9.1</version>
  65. </dependency>
  66. <dependency>
  67. <groupId>com.github.oshi</groupId>
  68. <artifactId>oshi-core</artifactId>
  69. <version>6.6.3</version>
  70. </dependency>
  71. </dependencies>
  72. <profiles>
  73. <profile>
  74. <id>dev</id>
  75. <properties>
  76. <profile.active>dev</profile.active>
  77. </properties>
  78. <activation>
  79. <activeByDefault>true</activeByDefault>
  80. </activation>
  81. </profile>
  82. <profile>
  83. <id>test</id>
  84. <properties>
  85. <profile.active>test</profile.active>
  86. </properties>
  87. </profile>
  88. </profiles>
  89. <build>
  90. <finalName>oss-store</finalName>
  91. <resources>
  92. <resource>
  93. <directory>src/main/resources</directory>
  94. <filtering>true</filtering>
  95. <includes>
  96. <include>application.yml</include>
  97. <include>application-${profile.active}.yml</include>
  98. <include>mapper/**</include>
  99. <include>*.xml</include>
  100. </includes>
  101. </resource>
  102. </resources>
  103. <plugins>
  104. <plugin>
  105. <groupId>org.apache.maven.plugins</groupId>
  106. <artifactId>maven-compiler-plugin</artifactId>
  107. <version>3.11.0</version>
  108. <configuration>
  109. <compilerArgs>
  110. <arg>-parameters</arg>
  111. </compilerArgs>
  112. </configuration>
  113. </plugin>
  114. <plugin>
  115. <groupId>org.springframework.boot</groupId>
  116. <artifactId>spring-boot-maven-plugin</artifactId>
  117. <version>${springboot.version}</version>
  118. <executions>
  119. <execution>
  120. <goals>
  121. <goal>repackage</goal>
  122. </goals>
  123. </execution>
  124. </executions>
  125. <configuration>
  126. <!-- 生成的 jar 包输出到指定目录 -->
  127. <outputDirectory>${project.build.outputDir}</outputDirectory>
  128. </configuration>
  129. </plugin>
  130. </plugins>
  131. </build>
  132. </project>