[ https://jira.codehaus.org/browse/WAGON-384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Lamy closed WAGON-384. ------------------------------ Resolution: Fixed Fix Version/s: 2.5 Assignee: Olivier Lamy pr applied https://git-wip-us.apache.org/repos/asf?p=maven-wagon.git;a=commit;h=88214c85 Thanks ! > Maven fails to download artifacts larger than 2 GB > -------------------------------------------------- > > Key: WAGON-384 > URL: https://jira.codehaus.org/browse/WAGON-384 > Project: Maven Wagon > Issue Type: Bug > Components: wagon-provider-api > Affects Versions: 2.2 > Environment: This issue is not dependent on the operating system and > hardware. > Reporter: Robert Baker > Assignee: Olivier Lamy > Fix For: 2.5 > > Attachments: AbstractWagon.java, AbstractWagon.java > > > If a Maven build includes a dependency for an artifact that is larger than 2 > GB in size, the download of the artifact during the build terminates at 2 GB > and the following error is reported by Maven: > [WARNING] Checksum validation failed, expected > 5b0fafa21f2b3e9c4e3b7ef3c5306f82bcb9fc85 but is > e9ef494d39de097b9a02531993688ceebdce39e1 > Maven repeats the download a second time with the same error result, then > build fails. > The failure is caused when the transfer method in AbstractWagon.java receives > maxSize parameter, which is an integer, set to Integer.MAX_VALUE, rather than > the actual size of the artifact. This value is then decremented to zero, > which causes the download to terminate prematurely. The attached file > (AbstractWagon.java) contains changes in the transfer method that use the > value Integer.MAX_VALUE as a trigger that causes the routine to ignore the > maxSize parameter's value and download the artifact until an EOF is detected, > regardless of its size. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira