| | |
| | | <mapstruct.version>1.5.5.Final</mapstruct.version> |
| | | <hutool-all.version>5.8.22</hutool-all.version> |
| | | <org-jdom2.version>2.0.6.1</org-jdom2.version> |
| | | <compiler-plugin.version>3.11.0</compiler-plugin.version> |
| | | <surefire-plugin.version>3.0.0</surefire-plugin.version> |
| | | |
| | | <spring-boot-maven-plugin.version>3.2.0</spring-boot-maven-plugin.version> |
| | | <maven-jar-plugin-plugin.version>3.3.0</maven-jar-plugin-plugin.version> |
| | | <maven-dependency-plugin.version>3.5.0</maven-dependency-plugin.version> |
| | | <maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version> |
| | | <maven-resources-plugin.version>3.3.1</maven-resources-plugin.version> |
| | | <maven-surefire-plugin.version>3.0.0</maven-surefire-plugin.version> |
| | | <maven-bundle-plugin.version>5.1.9</maven-bundle-plugin.version> |
| | | <encoding>UTF-8</encoding> |
| | | </properties> |
| | | |
| | | |
| | |
| | | <type>pom</type> |
| | | <scope>import</scope> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-configuration-processor</artifactId> |
| | | <version>3.1.3</version> |
| | | <type>pom</type> |
| | | <scope>import</scope> |
| | | <optional>true</optional> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-devtools</artifactId> |
| | |
| | | <dependency> |
| | | <groupId>org.apache.mina</groupId> |
| | | <artifactId>mina-core</artifactId> |
| | | <version>2.2.1</version> |
| | | <type>pom</type> |
| | | <scope>import</scope> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>org.apache.mina</groupId> |
| | | <artifactId>mina-filter-compression</artifactId> |
| | | <version>2.2.1</version> |
| | | <version>2.2.2</version> |
| | | <type>pom</type> |
| | | <scope>import</scope> |
| | | </dependency> |
| | |
| | | <!-- spring boot提供的maven打包插件 --> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | <version>3.1.3</version> |
| | | <version>${spring-boot-maven-plugin.version}</version> |
| | | </plugin> |
| | | <plugin> |
| | | <!-- 该插件不会将项目中引入的依赖打进最终的 Jar 文件 --> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-jar-plugin</artifactId> |
| | | <version>${maven-jar-plugin-plugin.version}</version> |
| | | </plugin> |
| | | <plugin> |
| | | <!-- 当项目中依赖比较多时,我们可以借助 maven-dependency-plugin 插件自动帮我们下载依赖的 Jar 文件,推荐将该插件绑定到package生命周期上 --> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-dependency-plugin</artifactId> |
| | | <version>${maven-dependency-plugin.version}</version> |
| | | <executions> |
| | | <execution> |
| | | <!-- 绑定生命周期 --> |
| | | <phase>package</phase> |
| | | <goals> |
| | | <goal>copy-dependencies</goal> |
| | | </goals> |
| | | <!-- 设置依赖的存放路径 --> |
| | | <configuration> |
| | | <outputDirectory>${project.build.directory}/lib</outputDirectory> |
| | | </configuration> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | <plugin> |
| | | <!-- 设置java编译版本,运行环境版本 --> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-compiler-plugin</artifactId> |
| | | <version>${maven-compiler-plugin.version}</version> |
| | | <!-- source: 源代码编译版本;target: 目标平台编译版本;encoding: 字符集编码。 --> |
| | | <configuration> |
| | | <excludes> |
| | | <exclude> |
| | | <groupId>org.projectlombok</groupId> |
| | | <artifactId>lombok</artifactId> |
| | | </exclude> |
| | | </excludes> |
| | | <source>${java.version}</source> |
| | | <target>${java.version}</target> |
| | | <encoding>${encoding}</encoding> |
| | | </configuration> |
| | | </plugin> |
| | | <plugin> |
| | | <!-- 解决资源文件的编码问题 --> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-resources-plugin</artifactId> |
| | | <version>${maven-resources-plugin.version}</version> |
| | | <configuration> |
| | | <encoding>${encoding}</encoding> |
| | | </configuration> |
| | | </plugin> |
| | | <plugin> |
| | | <!-- maven里执行测试用例的插件 --> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-surefire-plugin</artifactId> |
| | | <version>3.0.0</version> |
| | | <configuration> |
| | | <skipTests>true</skipTests> |
| | | </configuration> |
| | | <version>${maven-surefire-plugin.version}</version> |
| | | </plugin> |
| | | <plugin> |
| | | <!-- 强制设定 java编译版本,运行环境版本 --> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-compiler-plugin</artifactId> |
| | | <version>${compiler-plugin.version}</version> |
| | | <configuration> |
| | | <source>20</source> |
| | | <target>20</target> |
| | | </configuration> |
| | | <!-- 下面解决:当进行Maven Lifecycle package时报错:Could not find artifact org.apache.mina:mina-core:bundle:2.2.1 in maven (https://repo1.maven.org/maven2/)--> |
| | | <groupId>org.apache.felix</groupId> |
| | | <artifactId>maven-bundle-plugin</artifactId> |
| | | <version>${maven-bundle-plugin.version}</version> |
| | | <extensions>true</extensions> |
| | | </plugin> |
| | | </plugins> |
| | | </pluginManagement> |
| | | </build> |
| | | </project> |
| | | </project> |