diff --git a/src/main/java/com/wangym/lombok/job/impl/MavenDependencyVersionReplaceJob.java b/src/main/java/com/wangym/lombok/job/impl/MavenDependencyVersionReplaceJob.java index fe91349..baf1aae 100644 --- a/src/main/java/com/wangym/lombok/job/impl/MavenDependencyVersionReplaceJob.java +++ b/src/main/java/com/wangym/lombok/job/impl/MavenDependencyVersionReplaceJob.java @@ -156,9 +156,13 @@ private boolean hasVersionProperty(String versionKey) { Properties prop = model.getProperties(); List refVersionList = prop.stringPropertyNames().stream() // .filter((item) -> { - return !standardList.contains(item) && item.endsWith(".version"); + return item.endsWith(".version"); }) // 只关心我们自定义的version属性 .collect(Collectors.toList()); + //如果是内置变量,认为是有效的 + if (standardList.contains(versionKey)) { + return true; + } return refVersionList.contains(versionKey); }