|
@@ -17,17 +17,20 @@
|
|
|
<packaging>jar</packaging>
|
|
<packaging>jar</packaging>
|
|
|
|
|
|
|
|
<properties>
|
|
<properties>
|
|
|
|
|
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
|
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
|
<java.version>1.8</java.version>
|
|
<java.version>1.8</java.version>
|
|
|
|
|
+ <maven.compiler.source>1.8</maven.compiler.source>
|
|
|
|
|
+ <maven.compiler.target>1.8</maven.compiler.target>
|
|
|
|
|
+ <maven.test.skip>true</maven.test.skip>
|
|
|
|
|
+ <maven.build.timestamp.format>yyyyMMddHHmmss</maven.build.timestamp.format>
|
|
|
|
|
+ <spring-boot.version>2.7.14</spring-boot.version>
|
|
|
|
|
+ <hutool.version>5.8.18</hutool.version>
|
|
|
|
|
+ <!-- docker 配置 -->
|
|
|
|
|
+ <docker.build.url>http://127.0.0.1:2375</docker.build.url>
|
|
|
</properties>
|
|
</properties>
|
|
|
|
|
+
|
|
|
<dependencies>
|
|
<dependencies>
|
|
|
-<!-- <dependency>-->
|
|
|
|
|
-<!-- <groupId>org.springframework.boot</groupId>-->
|
|
|
|
|
-<!-- <artifactId>spring-boot-starter-data-redis</artifactId>-->
|
|
|
|
|
-<!-- </dependency>-->
|
|
|
|
|
-<!-- <dependency>-->
|
|
|
|
|
-<!-- <groupId>org.springframework.boot</groupId>-->
|
|
|
|
|
-<!-- <artifactId>spring-boot-starter-data-redis-reactive</artifactId>-->
|
|
|
|
|
-<!-- </dependency>-->
|
|
|
|
|
<dependency>
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
|
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
|
@@ -36,7 +39,6 @@
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
|
</dependency>
|
|
</dependency>
|
|
|
-
|
|
|
|
|
<dependency>
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-devtools</artifactId>
|
|
<artifactId>spring-boot-devtools</artifactId>
|
|
@@ -66,11 +68,26 @@
|
|
|
</dependencies>
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
<build>
|
|
|
|
|
+ <finalName>${project.artifactId}</finalName>
|
|
|
|
|
+ <resources>
|
|
|
|
|
+ <resource>
|
|
|
|
|
+ <directory>src/main/resources</directory>
|
|
|
|
|
+ <filtering>false</filtering>
|
|
|
|
|
+ </resource>
|
|
|
|
|
+ </resources>
|
|
|
<plugins>
|
|
<plugins>
|
|
|
|
|
+ <!--代码格式插件,默认使用spring 规则-->
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>io.spring.javaformat</groupId>
|
|
|
|
|
+ <artifactId>spring-javaformat-maven-plugin</artifactId>
|
|
|
|
|
+ <version>0.0.32</version>
|
|
|
|
|
+ </plugin>
|
|
|
<plugin>
|
|
<plugin>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
<configuration>
|
|
<configuration>
|
|
|
|
|
+ <executable>true</executable>
|
|
|
|
|
+ <layout>ZIP</layout>
|
|
|
<excludes>
|
|
<excludes>
|
|
|
<exclude>
|
|
<exclude>
|
|
|
<groupId>org.projectlombok</groupId>
|
|
<groupId>org.projectlombok</groupId>
|
|
@@ -79,6 +96,77 @@
|
|
|
</excludes>
|
|
</excludes>
|
|
|
</configuration>
|
|
</configuration>
|
|
|
</plugin>
|
|
</plugin>
|
|
|
|
|
+ <!--拷贝依赖到jar外面的lib目录-->
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
+ <artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
|
+ <executions>
|
|
|
|
|
+ <execution>
|
|
|
|
|
+ <id>copy</id>
|
|
|
|
|
+ <phase>package</phase>
|
|
|
|
|
+ <goals>
|
|
|
|
|
+ <goal>copy-dependencies</goal>
|
|
|
|
|
+ </goals>
|
|
|
|
|
+ <configuration>
|
|
|
|
|
+ <!--指定的依赖路径-->
|
|
|
|
|
+ <outputDirectory>${project.build.directory}/lib</outputDirectory>
|
|
|
|
|
+ </configuration>
|
|
|
|
|
+ </execution>
|
|
|
|
|
+ </executions>
|
|
|
|
|
+ </plugin>
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
+ <artifactId>maven-assembly-plugin</artifactId>
|
|
|
|
|
+ <version>3.3.0</version>
|
|
|
|
|
+ <configuration>
|
|
|
|
|
+ <appendAssemblyId>false</appendAssemblyId>
|
|
|
|
|
+ <descriptors>
|
|
|
|
|
+ <descriptor>src/assembly/assembly.xml</descriptor>
|
|
|
|
|
+ </descriptors>
|
|
|
|
|
+ <outputDirectory>target</outputDirectory>
|
|
|
|
|
+ </configuration>
|
|
|
|
|
+ <executions>
|
|
|
|
|
+ <execution>
|
|
|
|
|
+ <phase>package</phase>
|
|
|
|
|
+ <goals>
|
|
|
|
|
+ <goal>single</goal>
|
|
|
|
|
+ </goals>
|
|
|
|
|
+ </execution>
|
|
|
|
|
+ </executions>
|
|
|
|
|
+ </plugin>
|
|
|
|
|
+ <!-- 'https://github.com/spotify/docker-maven-plugin' -->
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>com.spotify</groupId>
|
|
|
|
|
+ <artifactId>docker-maven-plugin</artifactId>
|
|
|
|
|
+ <version>1.2.2</version>
|
|
|
|
|
+ <configuration>
|
|
|
|
|
+ <imageName>${project.artifactId}:${project.version}-${maven.build.timestamp}</imageName>
|
|
|
|
|
+ <dockerDirectory>${project.basedir}</dockerDirectory>
|
|
|
|
|
+ <dockerHost>${docker.build.url}</dockerHost>
|
|
|
|
|
+ </configuration>
|
|
|
|
|
+ </plugin>
|
|
|
</plugins>
|
|
</plugins>
|
|
|
</build>
|
|
</build>
|
|
|
|
|
+ <repositories>
|
|
|
|
|
+ <repository>
|
|
|
|
|
+ <id>public</id>
|
|
|
|
|
+ <name>aliyun nexus</name>
|
|
|
|
|
+ <url>https://maven.aliyun.com/repository/public/</url>
|
|
|
|
|
+ </repository>
|
|
|
|
|
+ <repository>
|
|
|
|
|
+ <id>spring-releases</id>
|
|
|
|
|
+ <url>https://repo.spring.io/libs-release</url>
|
|
|
|
|
+ </repository>
|
|
|
|
|
+ </repositories>
|
|
|
|
|
+ <pluginRepositories>
|
|
|
|
|
+ <pluginRepository>
|
|
|
|
|
+ <id>public</id>
|
|
|
|
|
+ <name>aliyun nexus</name>
|
|
|
|
|
+ <url>https://maven.aliyun.com/repository/public/</url>
|
|
|
|
|
+ </pluginRepository>
|
|
|
|
|
+ <pluginRepository>
|
|
|
|
|
+ <id>spring-releases</id>
|
|
|
|
|
+ <url>https://repo.spring.io/libs-release</url>
|
|
|
|
|
+ </pluginRepository>
|
|
|
|
|
+ </pluginRepositories>
|
|
|
</project>
|
|
</project>
|