.flattened-pom.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>cn.tr</groupId>
  7. <artifactId>phototherapy</artifactId>
  8. <version>2.0.0</version>
  9. </parent>
  10. <groupId>cn.tr</groupId>
  11. <artifactId>tr-test</artifactId>
  12. <version>2.0.0</version>
  13. <dependencies>
  14. <dependency>
  15. <groupId>cn.tr</groupId>
  16. <artifactId>tr-module-system</artifactId>
  17. </dependency>
  18. <dependency>
  19. <groupId>org.springframework.boot</groupId>
  20. <artifactId>spring-boot-starter-data-redis</artifactId>
  21. <exclusions>
  22. <exclusion>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter-logging</artifactId>
  25. </exclusion>
  26. <exclusion>
  27. <groupId>ch.qos.logback</groupId>
  28. <artifactId>logback-classic</artifactId>
  29. </exclusion>
  30. <exclusion>
  31. <groupId>org.apache.logging.log4j</groupId>
  32. <artifactId>log4j-to-slf4j</artifactId>
  33. </exclusion>
  34. </exclusions>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.springframework.boot</groupId>
  38. <artifactId>spring-boot-starter</artifactId>
  39. <exclusions>
  40. <exclusion>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-starter-logging</artifactId>
  43. </exclusion>
  44. <exclusion>
  45. <groupId>ch.qos.logback</groupId>
  46. <artifactId>logback-classic</artifactId>
  47. </exclusion>
  48. <exclusion>
  49. <groupId>org.apache.logging.log4j</groupId>
  50. <artifactId>log4j-to-slf4j</artifactId>
  51. </exclusion>
  52. </exclusions>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-starter-log4j2</artifactId>
  57. <exclusions>
  58. <exclusion>
  59. <groupId>org.apache.logging.log4j</groupId>
  60. <artifactId>log4j-to-slf4j</artifactId>
  61. </exclusion>
  62. </exclusions>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.flywaydb</groupId>
  66. <artifactId>flyway-core</artifactId>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.flywaydb</groupId>
  70. <artifactId>flyway-database-postgresql</artifactId>
  71. </dependency>
  72. <dependency>
  73. <groupId>cn.tr</groupId>
  74. <artifactId>tr-modules-phototherapy</artifactId>
  75. <version>2.0.0</version>
  76. </dependency>
  77. </dependencies>
  78. <build>
  79. <defaultGoal>compile</defaultGoal>
  80. <resources>
  81. <resource>
  82. <filtering>true</filtering>
  83. <directory>src/main/resources</directory>
  84. </resource>
  85. </resources>
  86. <finalName>${project.name}</finalName>
  87. <plugins>
  88. <plugin>
  89. <groupId>org.codehaus.mojo</groupId>
  90. <artifactId>flatten-maven-plugin</artifactId>
  91. <version>1.5.0</version>
  92. <executions>
  93. <execution>
  94. <id>flatten</id>
  95. <phase>process-resources</phase>
  96. <goals>
  97. <goal>flatten</goal>
  98. </goals>
  99. </execution>
  100. <execution>
  101. <id>flatten.clean</id>
  102. <phase>clean</phase>
  103. <goals>
  104. <goal>clean</goal>
  105. </goals>
  106. </execution>
  107. </executions>
  108. <configuration>
  109. <updatePomFile>true</updatePomFile>
  110. <flattenMode>resolveCiFriendliesOnly</flattenMode>
  111. </configuration>
  112. </plugin>
  113. <plugin>
  114. <groupId>org.springframework.boot</groupId>
  115. <artifactId>spring-boot-maven-plugin</artifactId>
  116. <version>${spring-boot.version}</version>
  117. <executions>
  118. <execution>
  119. <goals>
  120. <goal>repackage</goal>
  121. </goals>
  122. </execution>
  123. </executions>
  124. <configuration>
  125. <includeSystemScope>true</includeSystemScope>
  126. <mainClass>cn.tr.test.WebApplication</mainClass>
  127. <finalName>${project.build.finalName}</finalName>
  128. <layers>
  129. <enabled>true</enabled>
  130. </layers>
  131. </configuration>
  132. </plugin>
  133. </plugins>
  134. </build>
  135. </project>