整合flatten-maven-plugin,解决子模块单独打包失败的问题
Sync All Branches to GitHub / sync (push) Successful in 3s

This commit is contained in:
hanfuye
2026-01-12 17:01:27 +08:00
parent 88008a74fd
commit 31d970a3ef
2 changed files with 30 additions and 0 deletions
+28
View File
@@ -42,6 +42,7 @@
<mysql-connector-java.version>8.0.29</mysql-connector-java.version>
<mybatis-plus.version>3.5.5</mybatis-plus.version>
<druid.version>1.2.21</druid.version>
<flatten-maven-plugin.version>1.5.0</flatten-maven-plugin.version>
</properties>
<!-- 统一依赖管理 -->
@@ -169,6 +170,33 @@
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>${flatten-maven-plugin.version}</version>
<configuration>
<flattenMode>resolveCiFriendliesOnly</flattenMode>
<updatePomFile>true</updatePomFile>
</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>
</plugins>
</build>
@@ -42,6 +42,8 @@ class XiaoyiAuthApplicationTests {
void queryTest() {
LambdaQueryWrapper<UserEntity> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(UserEntity::getUsername, "刑加一");
queryWrapper.orderByDesc(UserEntity::getCreateTime);
queryWrapper.last("limit 1");
UserEntity user = userMapper.selectOne(queryWrapper);
log.info("查询结果:{}", user);
}