play framework 2.0 console error

前端 未结 3 593
难免孤独
难免孤独 2020-12-19 05:13

When trying to run the new play 2.0 console (typing \'play\' in cmd) on windows from project folder (as instructed by framework web tutorial).

i receive :



        
相关标签:
3条回答
  • 2020-12-19 05:41

    Are you connected to the internet when you type the command play?

    Ivy is a dependency manager, and it creates a local repository for dependencies used to build a project.

    0 讨论(0)
  • 2020-12-19 05:56

    I was connected via a proxy and it did not have any user name or password. I edited the last line of the build.bat file in play/framework folder to :

    java -Dhttp.proxyHost=EnterHostNameHere -Dhttp.proxyPort=EnterPortNumberHere -Xms512M -Xmx1024M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M %DEBUG_PARAM% -Dfile.encoding=UTF8 -Dplay.version="%PLAY_VERSION%" -Dsbt.ivy.home="%~dp0..\repository" -Dplay.home="%~dp0." -Dsbt.boot.properties="file:///%p%sbt/sbt.boot.properties" -jar "%~dp0sbt\sbt-launch.jar" %*

    Hope this works..! :)

    0 讨论(0)
  • 2020-12-19 05:59

    I had the same problem, I resolved it by modifying the last line of build.bat file in play/framework like this :

    java -Dhttp.proxyUser=MyProxyAccount -Dhttp.proxyPassword=MyProxyPwd -Dhttp.proxyHost=MyProxyIp -Dhttp.proxyPort=MyProxyPort -Xms512M -Xmx1024M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M %DEBUG_PARAM% -Dfile.encoding=UTF8 -Dplay.version="%PLAY_VERSION%" -Dsbt.ivy.home="%~dp0..\repository" -Dplay.home="%~dp0." -Dsbt.boot.properties="file:///%p%sbt/sbt.boot.properties" -jar "%~dp0sbt\sbt-launch.jar" %*

    Hope this help.

    0 讨论(0)
提交回复
热议问题