Scala 试图解析SBT中的依赖项时发生IIllegalArgumentException
我在Intellij有一个Scala项目(SBT)。我希望包括以下依赖项:Scala 试图解析SBT中的依赖项时发生IIllegalArgumentException,scala,intellij-idea,Scala,Intellij Idea,我在Intellij有一个Scala项目(SBT)。我希望包括以下依赖项: libraryDependencies += "org.eclipse.jetty" % "jetty-server" % "9.3.3.v20150827" libraryDependencies += "org.eclipse.jetty" % "jetty-servlet" % "9.3.3.v20150827" libraryDependencies += "org.eclipse.jetty" % "jet
libraryDependencies += "org.eclipse.jetty" % "jetty-server" % "9.3.3.v20150827"
libraryDependencies += "org.eclipse.jetty" % "jetty-servlet" % "9.3.3.v20150827"
libraryDependencies += "org.eclipse.jetty" % "jetty-webapp" % "9.3.3.v20150827"
不幸的是,我遇到了以下错误:
未解决的依赖关系:org.eclipse.jetty#jetty webapp;9.3.3.v20150827:
解决依赖关系时出现了几个问题:
org.eclipse.jetty#jetty webapp;9.3.3.v20150827
{compile=[default(compile)]}:[错误]运行时出现了几个问题
解决依赖关系:org.eclipse.jetty#jetty项目;9.3.3.v20150827
{}:[错误]解决依赖关系时出现了几个问题:
org.eclipse.jetty#jetty家长;25{}:[错误]
java.lang.IllegalArgumentException:protocol=http主机=null
[错误]java.lang.IllegalArgumentException:协议=http主机=
null[错误]java.lang.IllegalArgumentException:协议=http主机
=null[error][error]java.lang.IllegalArgumentException:protocol=http主机=null[error]java.lang.IllegalArgumentException:protocol=http主机=null[error][error]
java.lang.IllegalArgumentException:protocol=http主机=null
[错误]java.lang.IllegalArgumentException:协议=http主机=
null[error]对完整日志使用“last”
如何修复它?这一定是网络/存储库设置问题。为我工作: build.sbt
libraryDependencies += "org.eclipse.jetty" % "jetty-server" % "9.3.3.v20150827"
libraryDependencies += "org.eclipse.jetty" % "jetty-servlet" % "9.3.3.v20150827"
libraryDependencies += "org.eclipse.jetty" % "jetty-webapp" % "9.3.3.v20150827"
sbt:
检查Java/Scala和存储库设置
还可以尝试将此解析器添加到build.sbt
或~/.sbt/0.13/plugins/plugins.sbt
:
resolvers += "Sonatype snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/"
这一定是网络/存储库设置问题。为我工作: build.sbt
libraryDependencies += "org.eclipse.jetty" % "jetty-server" % "9.3.3.v20150827"
libraryDependencies += "org.eclipse.jetty" % "jetty-servlet" % "9.3.3.v20150827"
libraryDependencies += "org.eclipse.jetty" % "jetty-webapp" % "9.3.3.v20150827"
sbt:
检查Java/Scala和存储库设置
还可以尝试将此解析器添加到build.sbt
或~/.sbt/0.13/plugins/plugins.sbt
:
resolvers += "Sonatype snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/"
您能给我发送您使用的repos的URL吗?我没有特殊的存储库设置。这确实是repos的问题。我在.sbt中的存储库文件已损坏。谢谢你的帮助。你能给我发送你使用的repos的URL吗?我没有特殊的存储库设置。这确实是repos的问题。我在.sbt中的存储库文件已损坏。谢谢你的帮助。