PlayFramework 2.4 和 IntelliJ 14
PlayFramework 2.4 and IntelliJ 14
我正在尝试将 PlayFramework 2.4 项目导入 IntelliJ 14.1.3。我未能导入现有的(在 pre-2.4 中创建),因此执行了以下步骤:
- 通过激活器创建了一个新的 play-java 项目:
activator new appName
- 试图通过 IntelliJ 打开创建的项目。 (打开打开对话框,然后选择我的应用程序的文件夹,然后将JDK设置为1.8。0_45)
我遇到了这个异常:
Error while importing SBT project: ... 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.apply(Defaults.scala:1102) at
sbt.Classpaths$$anonfun.apply(Defaults.scala:1102) at
scala.Function1$$anonfun$compose.apply(Function1.scala:47) at
scala.Function1$$anonfun$compose.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.apply$mcV$sp(INode.scala:69) at
sbt.EvaluateSettings.sbt$EvaluateSettings$$run0(INode.scala:78) at
sbt.EvaluateSettings$$anon.run(INode.scala:74) at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745) [error]
java.lang.IllegalArgumentException: URI has an authority component [error] Use
'last' for the full log. Invalid response. Java HotSpot(TM) 64-Bit Server VM
warning: ignoring option MaxPermSize=384M; support was removed in 8.0 See
complete log in D:\.IntelliJIdea\system\log\sbt.last.log
sbt.last.log:
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.apply(Defaults.scala:1729)
at sbt.Classpaths$$anonfun$appRepositories.apply(Defaults.scala:1729)
at scala.collection.TraversableLike$$anonfun$map.apply(TraversableLike.scala:244)
at scala.collection.TraversableLike$$anonfun$map.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.apply(Defaults.scala:1102)
at sbt.Classpaths$$anonfun.apply(Defaults.scala:1102)
at scala.Function1$$anonfun$compose.apply(Function1.scala:47)
at scala.Function1$$anonfun$compose.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.apply$mcV$sp(INode.scala:69)
at sbt.EvaluateSettings.sbt$EvaluateSettings$$run0(INode.scala:78)
at sbt.EvaluateSettings$$anon.run(INode.scala:74)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
[error] java.lang.IllegalArgumentException: URI has an authority component
[error] Use 'last' for the full log.
Invalid response.
解决方案是删除用户主文件夹中的所有 .sbt、.ivy、.m2 文件夹。我还删除了 SBT_HOME 系统变量。之后,IntelliJ 能够创建有效的项目。
在 windows 上删除文件夹:C:\Users\.sbt
在启动 intellij
之前检查系统上的 sbt 命令是否正常
我正在尝试将 PlayFramework 2.4 项目导入 IntelliJ 14.1.3。我未能导入现有的(在 pre-2.4 中创建),因此执行了以下步骤:
- 通过激活器创建了一个新的 play-java 项目:
activator new appName
- 试图通过 IntelliJ 打开创建的项目。 (打开打开对话框,然后选择我的应用程序的文件夹,然后将JDK设置为1.8。0_45)
我遇到了这个异常:
Error while importing SBT project: ... 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.apply(Defaults.scala:1102) at
sbt.Classpaths$$anonfun.apply(Defaults.scala:1102) at
scala.Function1$$anonfun$compose.apply(Function1.scala:47) at
scala.Function1$$anonfun$compose.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.apply$mcV$sp(INode.scala:69) at
sbt.EvaluateSettings.sbt$EvaluateSettings$$run0(INode.scala:78) at
sbt.EvaluateSettings$$anon.run(INode.scala:74) at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745) [error]
java.lang.IllegalArgumentException: URI has an authority component [error] Use
'last' for the full log. Invalid response. Java HotSpot(TM) 64-Bit Server VM
warning: ignoring option MaxPermSize=384M; support was removed in 8.0 See
complete log in D:\.IntelliJIdea\system\log\sbt.last.log
sbt.last.log:
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.apply(Defaults.scala:1729)
at sbt.Classpaths$$anonfun$appRepositories.apply(Defaults.scala:1729)
at scala.collection.TraversableLike$$anonfun$map.apply(TraversableLike.scala:244)
at scala.collection.TraversableLike$$anonfun$map.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.apply(Defaults.scala:1102)
at sbt.Classpaths$$anonfun.apply(Defaults.scala:1102)
at scala.Function1$$anonfun$compose.apply(Function1.scala:47)
at scala.Function1$$anonfun$compose.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.apply$mcV$sp(INode.scala:69)
at sbt.EvaluateSettings.sbt$EvaluateSettings$$run0(INode.scala:78)
at sbt.EvaluateSettings$$anon.run(INode.scala:74)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
[error] java.lang.IllegalArgumentException: URI has an authority component
[error] Use 'last' for the full log.
Invalid response.
解决方案是删除用户主文件夹中的所有 .sbt、.ivy、.m2 文件夹。我还删除了 SBT_HOME 系统变量。之后,IntelliJ 能够创建有效的项目。
在 windows 上删除文件夹:C:\Users\.sbt 在启动 intellij
之前检查系统上的 sbt 命令是否正常