pom.xml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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. <parent>
  6. <artifactId>phototherapy</artifactId>
  7. <groupId>cn.tr</groupId>
  8. <version>${revision}</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <version>${revision}</version>
  12. <artifactId>tr-test</artifactId>
  13. <packaging>jar</packaging>
  14. <dependencies>
  15. <!-- <dependency>-->
  16. <!-- <groupId>cn.tr</groupId>-->
  17. <!-- <artifactId>tr-module-ai</artifactId>-->
  18. <!-- </dependency>-->
  19. <dependency>
  20. <groupId>cn.tr</groupId>
  21. <artifactId>tr-module-system</artifactId>
  22. </dependency>
  23. <!-- <dependency>-->
  24. <!-- <groupId>cn.tr</groupId>-->
  25. <!-- <artifactId>tr-module-jgliu</artifactId>-->
  26. <!-- </dependency>-->
  27. <!-- <dependency>-->
  28. <!-- <groupId>cn.tr</groupId>-->
  29. <!-- <artifactId>tr-module-platform</artifactId>-->
  30. <!-- </dependency>-->
  31. <dependency>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-starter-data-redis</artifactId>
  34. <exclusions>
  35. <exclusion>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter-logging</artifactId>
  38. </exclusion>
  39. <exclusion>
  40. <groupId>ch.qos.logback</groupId>
  41. <artifactId>logback-classic</artifactId>
  42. </exclusion>
  43. <!-- 排除log4j-to-slf4j以避免与log4j-slf4j2-impl冲突 -->
  44. <exclusion>
  45. <groupId>org.apache.logging.log4j</groupId>
  46. <artifactId>log4j-to-slf4j</artifactId>
  47. </exclusion>
  48. </exclusions>
  49. </dependency>
  50. <!-- 添加Spring Boot启动依赖 -->
  51. <dependency>
  52. <groupId>org.springframework.boot</groupId>
  53. <artifactId>spring-boot-starter</artifactId>
  54. <exclusions>
  55. <!-- 排除默认的日志实现 -->
  56. <exclusion>
  57. <groupId>org.springframework.boot</groupId>
  58. <artifactId>spring-boot-starter-logging</artifactId>
  59. </exclusion>
  60. <!-- 排除logback实现 -->
  61. <exclusion>
  62. <groupId>ch.qos.logback</groupId>
  63. <artifactId>logback-classic</artifactId>
  64. </exclusion>
  65. <!-- 排除log4j-to-slf4j以避免与log4j-slf4j2-impl冲突 -->
  66. <exclusion>
  67. <groupId>org.apache.logging.log4j</groupId>
  68. <artifactId>log4j-to-slf4j</artifactId>
  69. </exclusion>
  70. </exclusions>
  71. </dependency>
  72. <!-- 添加Log4j2日志实现 -->
  73. <dependency>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-starter-log4j2</artifactId>
  76. <exclusions>
  77. <!-- 排除log4j-to-slf4j以避免与log4j-slf4j2-impl冲突 -->
  78. <exclusion>
  79. <groupId>org.apache.logging.log4j</groupId>
  80. <artifactId>log4j-to-slf4j</artifactId>
  81. </exclusion>
  82. </exclusions>
  83. </dependency>
  84. <!-- 添加Flyway依赖 -->
  85. <dependency>
  86. <groupId>org.flywaydb</groupId>
  87. <artifactId>flyway-core</artifactId>
  88. </dependency>
  89. <!-- 添加Flyway PostgreSQL数据库支持 -->
  90. <dependency>
  91. <groupId>org.flywaydb</groupId>
  92. <artifactId>flyway-database-postgresql</artifactId>
  93. </dependency>
  94. </dependencies>
  95. <build>
  96. <defaultGoal>compile</defaultGoal>
  97. <finalName>${project.name}</finalName>
  98. <resources>
  99. <resource>
  100. <directory>src/main/resources</directory>
  101. <filtering>true</filtering>
  102. </resource>
  103. </resources>
  104. <!--<pluginManagement>-->
  105. <plugins>
  106. <plugin>
  107. <groupId>org.codehaus.mojo</groupId>
  108. <artifactId>flatten-maven-plugin</artifactId>
  109. <version>1.5.0</version>
  110. <configuration>
  111. <updatePomFile>true</updatePomFile>
  112. <flattenMode>resolveCiFriendliesOnly</flattenMode>
  113. </configuration>
  114. <executions>
  115. <execution>
  116. <id>flatten</id>
  117. <phase>process-resources</phase>
  118. <goals>
  119. <goal>flatten</goal>
  120. </goals>
  121. </execution>
  122. <execution>
  123. <id>flatten.clean</id>
  124. <phase>clean</phase>
  125. <goals>
  126. <goal>clean</goal>
  127. </goals>
  128. </execution>
  129. </executions>
  130. </plugin>
  131. <plugin>
  132. <groupId>org.springframework.boot</groupId>
  133. <artifactId>spring-boot-maven-plugin</artifactId>
  134. <version>${spring-boot.version}</version>
  135. <configuration>
  136. <includeSystemScope>true</includeSystemScope>
  137. <mainClass> cn.tr.test.WebApplication</mainClass>
  138. <finalName>${project.build.finalName}</finalName>
  139. <layers>
  140. <enabled>true</enabled>
  141. </layers>
  142. </configuration>
  143. <executions>
  144. <execution>
  145. <goals>
  146. <goal>repackage</goal>
  147. </goals>
  148. </execution>
  149. </executions>
  150. </plugin>
  151. </plugins>
  152. <!--</pluginManagement>-->
  153. </build>
  154. </project>