This is an automated email from the ASF dual-hosted git repository. slachiewicz pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-ear-plugin.git
commit 4479007939eeb2f50d46085b438cd51c22c1077e Author: Sylwester Lachiewicz <[email protected]> AuthorDate: Sun Nov 8 12:05:15 2026 +0000 Create the XmlStreamWriter directly plexus-utils deprecates WriterFactory; newXmlWriter(file) was new XmlStreamWriter(file). --- src/main/java/org/apache/maven/plugins/ear/AbstractXmlWriter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/maven/plugins/ear/AbstractXmlWriter.java b/src/main/java/org/apache/maven/plugins/ear/AbstractXmlWriter.java index f698fe9..4088673 100644 --- a/src/main/java/org/apache/maven/plugins/ear/AbstractXmlWriter.java +++ b/src/main/java/org/apache/maven/plugins/ear/AbstractXmlWriter.java @@ -22,9 +22,9 @@ import java.io.File; import java.io.IOException; import java.io.Writer; -import org.codehaus.plexus.util.WriterFactory; import org.codehaus.plexus.util.xml.PrettyPrintXMLWriter; import org.codehaus.plexus.util.xml.XMLWriter; +import org.codehaus.plexus.util.xml.XmlStreamWriter; /** * A base class for deployment descriptor file generators. @@ -41,7 +41,7 @@ abstract class AbstractXmlWriter { Writer initializeWriter(final File destinationFile) throws EarPluginException { try { - return WriterFactory.newXmlWriter(destinationFile); + return new XmlStreamWriter(destinationFile); } catch (IOException ex) { throw new EarPluginException("Exception while opening file[" + destinationFile.getAbsolutePath() + "]", ex); }
