SBT Cannot resolve dependencies
Posted 云飞
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SBT Cannot resolve dependencies相关的知识,希望对你有一定的参考价值。
Add addSbtPlugin("com.typesafe.sbt" % "sbt-less" % "1.0.0") to plugins.sbt. Run sbt. Dependencies for jse and npm can‘t be resolved: [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: UNRESOLVED DEPENDENCIES :: [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: com.typesafe#jse_2.10;1.0.0: not found [warn] :: com.typesafe#npm_2.10;1.0.0: not found [warn] :::::::::::::::::::::::::::::::::::::::::::::: sbt.ResolveException: unresolved dependency: com.typesafe#jse_2.10;1.0.0: not found unresolved dependency: com.typesafe#npm_2.10;1.0.0: not found at sbt.IvyActions$.sbt$IvyActions$$resolve(IvyActions.scala:217) at sbt.IvyActions$$anonfun$update$1.apply(IvyActions.scala:126) at sbt.IvyActions$$anonfun$update$1.apply(IvyActions.scala:125) at sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:115) at sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:115) at sbt.IvySbt$$anonfun$withIvy$1.apply(Ivy.scala:103) at sbt.IvySbt.sbt$IvySbt$$action$1(Ivy.scala:48) at sbt.IvySbt$$anon$3.call(Ivy.scala:57) at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:98) at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:81) at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:102) at xsbt.boot.Using$.withResource(Using.scala:11)
解决方法:在plugin.sbt 中添加
resolvers += Resolver.typesafeRepo("releases")
以上是关于SBT Cannot resolve dependencies的主要内容,如果未能解决你的问题,请参考以下文章
supertypes of the following classes cannot be resolved. make sure you have the required dependencies
supertypes of the following classes cannot be resolved. make sure you have the required dependencies
springboot引入thymeleaf时出现Cannot resolve MVC View ‘test‘
springboot引入thymeleaf时出现Cannot resolve MVC View ‘test‘
jsp 页面 javax.servlet.jsp.JspException cannot be resolved to a type 异常