Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Playframework 在没有网络连接的情况下运行play_Playframework_Playframework 2.0 - Fatal编程技术网

Playframework 在没有网络连接的情况下运行play

Playframework 在没有网络连接的情况下运行play,playframework,playframework-2.0,Playframework,Playframework 2.0,如何在没有网络连接的情况下开发Play Framework应用程序?每次我运行play时,它都会尝试连接到某个存储库以下载内容: [info] Loading project definition from C:\Users\Vincent\Documents\GitHub\TestApplication\play\project [error] Server access Error: Connection reset url=http://repo.typesafe.com/typesafe

如何在没有网络连接的情况下开发Play Framework应用程序?每次我运行
play
时,它都会尝试连接到某个存储库以下载内容:

[info] Loading project definition from C:\Users\Vincent\Documents\GitHub\TestApplication\play\project
[error] Server access Error: Connection reset url=http://repo.typesafe.com/typesafe/ivy-releases/commons-io/commons-io/2.0.1/ivys/ivy.xml
[error] Server access Error: Connection reset url=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/commons-io/commons-io/2.0.1/ivys/ivy.xml
[error] Server access Error: Connection reset url=http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbt/sbt-native-packager/scala_2.10/sbt_0.13/0.6.4/ivys/ivy.xml
[error] Server access Error: Connection reset url=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-native-packager/scala_2.10/sbt_0.13/0.6.4/ivys/ivy.xml
[error] Server access Error: Connection reset url=http://repo.typesafe.com/typesafe/ivy-releases/org.apache.commons/commons-compress/1.4.1/ivys/ivy.xml
[error] Server access Error: Connection reset url=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.apache.commons/commons-compress/1.4.1/ivys/ivy.xml
[error] Server access Error: Connection reset url=http://repo.typesafe.com/typesafe/ivy-releases/org.tukaani/xz/1.0/ivys/ivy.xml
[error] Server access Error: Connection reset url=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.tukaani/xz/1.0/ivys/ivy.xml
[error] Server access Error: Connection reset url=http://repo.typesafe.com/typesafe/ivy-releases/org.specs2/specs2_2.10/2.1.1/ivys/ivy.xml
[error] Server access Error: Connection reset url=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.specs2/specs2_2.10/2.1.1/ivys/ivy.xml
[error] Server access Error: Connection reset url=http://repo.typesafe.com/typesafe/ivy-releases/org.scalaz/scalaz-concurrent_2.10/7.0.2/ivys/ivy.xml
[error] Server access Error: Connection reset url=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.scalaz/scalaz-concurrent_2.10/7.0.2/ivys/ivy.xml
[error] Server access Error: Connection reset url=http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.play/sbt-plugin/scala_2.10/sbt_0.13/2.2.5/jars/sbt-plugin.jar
[error] Server access Error: Connection reset url=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.play/sbt-plugin/scala_2.10/sbt_0.13/2.2.5/jars/sbt-plugin.jar
Terminate batch job (Y/N)? Y
以下是我的sbt文件的内容:

plugins.sbt

//在初始化过程中获取更多信息的注释
日志级别:=级别。警告
//类型安全存储库
解析程序+=“类型安全存储库”位于http://repo.typesafe.com/typesafe/releases/"
//对播放项目使用播放sbt插件
addSbtPlugin(“com.typesafe.play“%”sbt插件“%”2.2.0)
构建.sbt

name:=“测试应用程序”
版本:=“{version}”
libraryDependencies++=Seq(
javaJdbc,
爪哇人,
隐藏物
)     
play.Project.playJavaSettings

中的答案只涉及部署/分发播放应用程序,而不是开发。

您可以在build.sbt中尝试设置
脱机:=true
。大多数情况下,它都能正常工作。

已经尝试过了,但不幸的是,似乎没有什么不同。您需要解析/下载一次,然后将其置于脱机模式。否则,您必须设置本地Maven/sbt repo。正在搜索的文件似乎与
C:\Play\repository\local
中的文件相同,是否有任何方法指示播放以查看该文件?