Skip to content

Commit

Permalink
optimize: simplify-pom 插件,不再将多个换行替换为单个换行。
Browse files Browse the repository at this point in the history
  • Loading branch information
wangliang181230 committed May 13, 2024
1 parent 31e63c8 commit 5097f5b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ protected void writePom(Model model, File pomFile) throws MojoExecutionException

// 去除 '\r'
pomFileString = pomFileString.replace("\r", "");
// 不同的maven版本,换行数量有些微不同,将多个连续的换行替换成单个换行
pomFileString = pomFileString.replaceAll("\n{2,}", IOUtils.LINE_SEPARATOR);
// // 不同的maven版本,换行数量有些微不同,将多个连续的换行替换成单个换行
// pomFileString = pomFileString.replaceAll("\n{2,}", IOUtils.LINE_SEPARATOR);
// 去除多余的空格
pomFileString = pomFileString.replace(" />", "/>");

Expand Down

0 comments on commit 5097f5b

Please sign in to comment.