From 5097f5b71359db3dd43b9b9a0388ae936668625c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Mon, 13 May 2024 14:39:37 +0800 Subject: [PATCH] =?UTF-8?q?optimize:=20simplify-pom=20=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=EF=BC=8C=E4=B8=8D=E5=86=8D=E5=B0=86=E5=A4=9A=E4=B8=AA=E6=8D=A2?= =?UTF-8?q?=E8=A1=8C=E6=9B=BF=E6=8D=A2=E4=B8=BA=E5=8D=95=E4=B8=AA=E6=8D=A2?= =?UTF-8?q?=E8=A1=8C=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../maven/plugin/mojo/simplify/AbstractSimplifyPomMojo.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/easyj-maven-plugin/src/main/java/icu/easyj/maven/plugin/mojo/simplify/AbstractSimplifyPomMojo.java b/easyj-maven-plugin/src/main/java/icu/easyj/maven/plugin/mojo/simplify/AbstractSimplifyPomMojo.java index cffd56a..90bd1f9 100644 --- a/easyj-maven-plugin/src/main/java/icu/easyj/maven/plugin/mojo/simplify/AbstractSimplifyPomMojo.java +++ b/easyj-maven-plugin/src/main/java/icu/easyj/maven/plugin/mojo/simplify/AbstractSimplifyPomMojo.java @@ -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(" />", "/>");