| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167 |
- <?xml version="1.0" encoding="UTF-8"?>
- <project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <parent>
- <artifactId>phototherapy</artifactId>
- <groupId>cn.tr</groupId>
- <version>${revision}</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <version>${revision}</version>
- <artifactId>tr-test</artifactId>
- <packaging>jar</packaging>
- <dependencies>
- <!-- <dependency>-->
- <!-- <groupId>cn.tr</groupId>-->
- <!-- <artifactId>tr-module-ai</artifactId>-->
- <!-- </dependency>-->
- <dependency>
- <groupId>cn.tr</groupId>
- <artifactId>tr-module-system</artifactId>
- </dependency>
- <!-- <dependency>-->
- <!-- <groupId>cn.tr</groupId>-->
- <!-- <artifactId>tr-module-jgliu</artifactId>-->
- <!-- </dependency>-->
- <!-- <dependency>-->
- <!-- <groupId>cn.tr</groupId>-->
- <!-- <artifactId>tr-module-platform</artifactId>-->
- <!-- </dependency>-->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-data-redis</artifactId>
- <exclusions>
- <exclusion>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-logging</artifactId>
- </exclusion>
- <exclusion>
- <groupId>ch.qos.logback</groupId>
- <artifactId>logback-classic</artifactId>
- </exclusion>
- <!-- 排除log4j-to-slf4j以避免与log4j-slf4j2-impl冲突 -->
- <exclusion>
- <groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-to-slf4j</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
-
- <!-- 添加Spring Boot启动依赖 -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter</artifactId>
- <exclusions>
- <!-- 排除默认的日志实现 -->
- <exclusion>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-logging</artifactId>
- </exclusion>
- <!-- 排除logback实现 -->
- <exclusion>
- <groupId>ch.qos.logback</groupId>
- <artifactId>logback-classic</artifactId>
- </exclusion>
- <!-- 排除log4j-to-slf4j以避免与log4j-slf4j2-impl冲突 -->
- <exclusion>
- <groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-to-slf4j</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
-
- <!-- 添加Log4j2日志实现 -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-log4j2</artifactId>
- <exclusions>
- <!-- 排除log4j-to-slf4j以避免与log4j-slf4j2-impl冲突 -->
- <exclusion>
- <groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-to-slf4j</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
-
- <!-- 添加Flyway依赖 -->
- <dependency>
- <groupId>org.flywaydb</groupId>
- <artifactId>flyway-core</artifactId>
- </dependency>
-
- <!-- 添加Flyway PostgreSQL数据库支持 -->
- <dependency>
- <groupId>org.flywaydb</groupId>
- <artifactId>flyway-database-postgresql</artifactId>
- </dependency>
- </dependencies>
- <build>
- <defaultGoal>compile</defaultGoal>
- <finalName>${project.name}</finalName>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- <filtering>true</filtering>
- </resource>
- </resources>
- <!--<pluginManagement>-->
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>flatten-maven-plugin</artifactId>
- <version>1.5.0</version>
- <configuration>
- <updatePomFile>true</updatePomFile>
- <flattenMode>resolveCiFriendliesOnly</flattenMode>
- </configuration>
- <executions>
- <execution>
- <id>flatten</id>
- <phase>process-resources</phase>
- <goals>
- <goal>flatten</goal>
- </goals>
- </execution>
- <execution>
- <id>flatten.clean</id>
- <phase>clean</phase>
- <goals>
- <goal>clean</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <version>${spring-boot.version}</version>
- <configuration>
- <includeSystemScope>true</includeSystemScope>
- <mainClass> cn.tr.test.WebApplication</mainClass>
- <finalName>${project.build.finalName}</finalName>
- <layers>
- <enabled>true</enabled>
- </layers>
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>repackage</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- <!--</pluginManagement>-->
- </build>
- </project>
|