7 February 2013

How to solve problem with play do not download module with 0 bytes

Solution for:
play framework 1.2.x

STORY:
After you install play ,during setup a project and when you attempt to resolve deps with command play deps (with --sync and/or --clearcache) program will stop works durind download something with 0 bytes like in example below "downloading http://www.playframework.org/modules/cobertura-2.4.zip . 0 bytes"

Z:\IDE\sts\cba\childrens_book_awards>play deps
~ _ _
~ _ __ | | __ _ _ _| |
~ | '_ \| |/ _' | || |_|
~ | __/|_|\____|\__ (_)
~ |_| |__/
~
~ play! 1.2.5, http://www.playframework.org
~
~ Resolving dependencies using Z:\IDE\sts\cba\childrens_book_awards\conf\dependencies.yml,
~
~ play->cobertura 2.4 (from playContributedModules)
~
~ Downloading required dependencies,
~
~ ... downloading http://www.playframework.org/modules/cobertura-2.4.zip . 0 bytes


SOLUTION:
You need install modules manually for example in this case cobertura (version 2.4) you need type:
play install cobertura-2.4
and then program should resolve dependecies.
(Can be more cases like internet connection related due no network,page is down ,firewall and etc.)