[
https://issues.apache.org/jira/browse/UIMA-2369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marshall Schor closed UIMA-2369.
--------------------------------
Resolution: Fixed
Fix Version/s: 3-uima-build-helper
> Need reliable way to download uima binary artifact from standard Apache spot
> ----------------------------------------------------------------------------
>
> Key: UIMA-2369
> URL: https://issues.apache.org/jira/browse/UIMA-2369
> Project: UIMA
> Issue Type: Bug
> Components: Build, Packaging and Test
> Reporter: Marshall Schor
> Assignee: Marshall Schor
> Fix For: 3-uima-build-helper
>
>
> The uima-as build is somewhat broken. A fix was made to download the base
> uimaj sdk binary build (upon which the uima-as build depends) by adding a new
> goal to the uima-build-helper-maven-plugin. That goal has a small bug - it
> doesn't create the intermediate directories needed when creating the output
> file for the download.
> However, it has a bigger problem - the download runs a small loop, reading
> from the URL open stream, and writing to the local file. The loop ends when
> the read method returns -1 for the number of bytes read. Java is supposed to
> only return this when the end-of-file is reached, but (randomly) it is
> getting returned early. This results in a corrupt download, with only the
> first part of the file being downloaded.
> Investigate and fix.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira