Intellij和sbt 0.13.5“URI有一个权限组件”

我正在使用Java以及Amazon Web服务来开发一个玩框架项目。 这是我的build.sbt

name := """RegistrationEndpoint""" version := "1.0" lazy val root = (project in file(".")).enablePlugins(PlayJava) scalaVersion := "2.11.5" libraryDependencies ++= Seq( javaJdbc, cache, javaWs ) // Play provides two styles of routers, one expects its actions to be injected, the // other, legacy style, accesses its actions statically. //routesGenerator := InjectedRoutesGenerator 

如果我在命令行中调用“激活器运行”,它将与激活器一起运行。

Intellij无法构build项目。 它返回以下错误消息

 java.lang.IllegalArgumentException: URI has an authority component at java.io.File.<init>(File.java:423) at sbt.Classpaths$.sbt$Classpaths$$bootRepository(Defaults.scala:1758) at sbt.Classpaths$$anonfun$appRepositories$1.apply(Defaults.scala:1729) at sbt.Classpaths$$anonfun$appRepositories$1.apply(Defaults.scala:1729) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33) at scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:34) at scala.collection.TraversableLike$class.map(TraversableLike.scala:244) at scala.collection.AbstractTraversable.map(Traversable.scala:105) at sbt.Classpaths$.appRepositories(Defaults.scala:1729) at sbt.Classpaths$$anonfun$41.apply(Defaults.scala:1102) at sbt.Classpaths$$anonfun$41.apply(Defaults.scala:1102) at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47) at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47) at sbt.EvaluateSettings$MixedNode.evaluate0(INode.scala:175) at sbt.EvaluateSettings$INode.evaluate(INode.scala:135) at sbt.EvaluateSettings$$anonfun$sbt$EvaluateSettings$$submitEvaluate$1.apply$mcV$sp(INode.scala:69) at sbt.EvaluateSettings.sbt$EvaluateSettings$$run0(INode.scala:78) at sbt.EvaluateSettings$$anon$3.run(INode.scala:74) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) [error] java.lang.IllegalArgumentException: URI has an authority component 

当我从任何地方调用sbt时,会导致同样的错误(通过在命令行上调用“sbt”)

任何build议,我应该看看? 错误消息不包括我的实际playframework项目中的任何位置。

Solutions Collecting From Web of "Intellij和sbt 0.13.5“URI有一个权限组件”"

Activator以某种方式在C:/ Users / User_Name /.sbt/repositories中为Windows创建格式不正确的存储库URI

更改激活器回购为下面的值(请注意文件后的三个斜线:)解决了我的问题。

 [repositories] local activator-launcher-local: file:///${activator.local.repository-${activator.home-${user.home}/.activator}/repository}, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext] activator-local: file:///${activator.local.repository-//D:/Qudosoft/activator-1.3.4/repository}, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext] maven-central ... 

但是,每次启动激活器UI或通过激活器创建一个新项目时,文件都会再次更改。 所以这只是一个暂时的解决方法,直到它被激活。

您可以订阅https://github.com/typesafehub/activator/issues/1033 ,以便在bug修复时得到通知。