diff --git a/impl/maven-core/src/main/java/org/apache/maven/logging/LoggingOutputStream.java b/impl/maven-core/src/main/java/org/apache/maven/logging/LoggingOutputStream.java index 5d7ee4b107..037307f8e4 100644 --- a/impl/maven-core/src/main/java/org/apache/maven/logging/LoggingOutputStream.java +++ b/impl/maven-core/src/main/java/org/apache/maven/logging/LoggingOutputStream.java @@ -56,6 +56,11 @@ public class LoggingOutputStream extends FilterOutputStream { } } + @Override + public void flush() throws IOException { + forceFlush(); + } + public void forceFlush() { if (buf.size() > 0) { String line = new String(buf.toByteArray(), 0, buf.size());