Anders Wallgren created MSHADE-142:
--------------------------------------

             Summary: Shade plugin does unbuffered output
                 Key: MSHADE-142
                 URL: https://jira.codehaus.org/browse/MSHADE-142
             Project: Maven 2.x Shade Plugin
          Issue Type: Bug
    Affects Versions: 2.0
            Reporter: Anders Wallgren


maven-shade-plugin does unbuffered output:

{code}
        JarOutputStream jos = new JarOutputStream( new FileOutputStream( 
shadeRequest.getUberJar() ) );
{code}

This results in massive amounts of single-byte writes, which kills performance, 
particularly on network shares.

Changing the code to 

{code}
        JarOutputStream jos = new JarOutputStream( new BufferedOutputStream( 
new FileOutputStream( shadeRequest.getUberJar() ) ) );
{code}

Fixes the problem.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to