Skip to content

Commit

Permalink
optimize: 优化 PomSimplifier,避免 dependencyManagement 中的版本号被替换为具体版本号,导致子…
Browse files Browse the repository at this point in the history
…模块无法重写。
  • Loading branch information
wangliang181230 committed Jun 13, 2024
1 parent 88ce398 commit 805b461
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ protected void optimizeDependencies(List<Dependency> dependencies) {

protected Function<String, String> getReplaceVariableFunction() {
boolean removedParent = this.originalModel.getParent() == null && this.model.getParent() != null;
if (!removedParent && (this.originalModel.getParent() != null || isEmpty(this.model.getProperties()))) {
if (!removedParent || isEmpty(this.model.getProperties())) {
this.log.info(" - Optimize with 'getProjectProperty'");
return this::getProjectProperty;
} else {
Expand Down

0 comments on commit 805b461

Please sign in to comment.