Replace deprecated org.codehaus.plexus.util.StringOutputStream with ByteArrayOutputStream (to fix the failing build)