.flattened-pom.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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. <artifactId>spring-boot-starter-logging</artifactId>
  24. <groupId>org.springframework.boot</groupId>
  25. </exclusion>
  26. <exclusion>
  27. <artifactId>logback-classic</artifactId>
  28. <groupId>ch.qos.logback</groupId>
  29. </exclusion>
  30. <exclusion>
  31. <artifactId>log4j-to-slf4j</artifactId>
  32. <groupId>org.apache.logging.log4j</groupId>
  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. <artifactId>spring-boot-starter-logging</artifactId>
  42. <groupId>org.springframework.boot</groupId>
  43. </exclusion>
  44. <exclusion>
  45. <artifactId>logback-classic</artifactId>
  46. <groupId>ch.qos.logback</groupId>
  47. </exclusion>
  48. <exclusion>
  49. <artifactId>log4j-to-slf4j</artifactId>
  50. <groupId>org.apache.logging.log4j</groupId>
  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. <artifactId>log4j-to-slf4j</artifactId>
  60. <groupId>org.apache.logging.log4j</groupId>
  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. </dependencies>
  73. <build>
  74. <defaultGoal>compile</defaultGoal>
  75. <resources>
  76. <resource>
  77. <filtering>true</filtering>
  78. <directory>src/main/resources</directory>
  79. </resource>
  80. </resources>
  81. <finalName>${project.name}</finalName>
  82. <plugins>
  83. <plugin>
  84. <groupId>org.codehaus.mojo</groupId>
  85. <artifactId>flatten-maven-plugin</artifactId>
  86. <version>1.5.0</version>
  87. <executions>
  88. <execution>
  89. <id>flatten</id>
  90. <phase>process-resources</phase>
  91. <goals>
  92. <goal>flatten</goal>
  93. </goals>
  94. </execution>
  95. <execution>
  96. <id>flatten.clean</id>
  97. <phase>clean</phase>
  98. <goals>
  99. <goal>clean</goal>
  100. </goals>
  101. </execution>
  102. </executions>
  103. <configuration>
  104. <updatePomFile>true</updatePomFile>
  105. <flattenMode>resolveCiFriendliesOnly</flattenMode>
  106. </configuration>
  107. </plugin>
  108. <plugin>
  109. <groupId>org.springframework.boot</groupId>
  110. <artifactId>spring-boot-maven-plugin</artifactId>
  111. <version>${spring-boot.version}</version>
  112. <executions>
  113. <execution>
  114. <goals>
  115. <goal>repackage</goal>
  116. </goals>
  117. </execution>
  118. </executions>
  119. <configuration>
  120. <includeSystemScope>true</includeSystemScope>
  121. <mainClass>cn.tr.test.WebApplication</mainClass>
  122. <finalName>${project.build.finalName}</finalName>
  123. <layers>
  124. <enabled>true</enabled>
  125. </layers>
  126. </configuration>
  127. </plugin>
  128. </plugins>
  129. </build>
  130. </project>