Skip to content

Commit

Permalink
build: 优化编译配置
Browse files Browse the repository at this point in the history
根据控制台提示优化编译配置:Using deprecated '-debug' fallback for parameter name
resolution. Compile the affected code with '-parameters' instead or
avoid its introspection
  • Loading branch information
Charles7c committed Dec 26, 2023
1 parent b89f281 commit ed8bb57
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
9 changes: 0 additions & 9 deletions continew-admin-webapi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,6 @@
<!-- 设置构建的 jar 包名 -->
<finalName>${project.parent.name}</finalName>
<plugins>
<!-- 单元测试配置插件 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- 跳过单元测试 -->
<skip>true</skip>
</configuration>
</plugin>
<!-- Maven 打包插件 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
19 changes: 18 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,24 @@

<build>
<plugins>
<!-- 代码等格式化插件 -->
<!-- 编译插件 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgument>-parameters</compilerArgument>
</configuration>
</plugin>
<!-- 单元测试相关插件 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- 跳过单元测试 -->
<skip>true</skip>
</configuration>
</plugin>
<!-- 代码格式化插件 -->
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
Expand Down

0 comments on commit ed8bb57

Please sign in to comment.