pom.xml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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>cn-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>cn-module-jgliu</artifactId>-->
  26. <!-- </dependency>-->
  27. <!-- <dependency>-->
  28. <!-- <groupId>cn.tr</groupId>-->
  29. <!-- <artifactId>cn-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. <dependency>
  95. <groupId>cn.tr</groupId>
  96. <artifactId>tr-modules-phototherapy</artifactId>
  97. <version>2.0.0</version>
  98. </dependency>
  99. </dependencies>
  100. <build>
  101. <defaultGoal>compile</defaultGoal>
  102. <finalName>${project.name}</finalName>
  103. <resources>
  104. <resource>
  105. <directory>src/main/resources</directory>
  106. <filtering>true</filtering>
  107. </resource>
  108. </resources>
  109. <!--<pluginManagement>-->
  110. <plugins>
  111. <plugin>
  112. <groupId>org.codehaus.mojo</groupId>
  113. <artifactId>flatten-maven-plugin</artifactId>
  114. <version>1.5.0</version>
  115. <configuration>
  116. <updatePomFile>true</updatePomFile>
  117. <flattenMode>resolveCiFriendliesOnly</flattenMode>
  118. </configuration>
  119. <executions>
  120. <execution>
  121. <id>flatten</id>
  122. <phase>process-resources</phase>
  123. <goals>
  124. <goal>flatten</goal>
  125. </goals>
  126. </execution>
  127. <execution>
  128. <id>flatten.clean</id>
  129. <phase>clean</phase>
  130. <goals>
  131. <goal>clean</goal>
  132. </goals>
  133. </execution>
  134. </executions>
  135. </plugin>
  136. <plugin>
  137. <groupId>org.springframework.boot</groupId>
  138. <artifactId>spring-boot-maven-plugin</artifactId>
  139. <version>${spring-boot.version}</version>
  140. <configuration>
  141. <includeSystemScope>true</includeSystemScope>
  142. <mainClass> cn.tr.test.WebApplication</mainClass>
  143. <finalName>${project.build.finalName}</finalName>
  144. <layers>
  145. <enabled>true</enabled>
  146. </layers>
  147. </configuration>
  148. <executions>
  149. <execution>
  150. <goals>
  151. <goal>repackage</goal>
  152. </goals>
  153. </execution>
  154. </executions>
  155. </plugin>
  156. </plugins>
  157. <!--</pluginManagement>-->
  158. </build>
  159. </project>