Scala sbt不';找不到托管依赖项的类

Scala sbt不';找不到托管依赖项的类,scala,sbt,jepp,Scala,Sbt,Jepp,我尝试使用sbt将jep()的构建包含到这个scala项目中: 因此,我不想通过非托管依赖项手动构建jep,而是想将其作为托管依赖项包含。因此,我只包括: resolvers += "jep" at "https://mvnrepository.com/artifact/" libraryDependencies += "jep" % "jep" % "2.24" 在build.sbt中 .jar正在下载并包含在my.ivy2文件夹中,但在编译时,sbt似乎找不到它: > com

我尝试使用sbt将jep()的构建包含到这个scala项目中:

因此,我不想通过非托管依赖项手动构建jep,而是想将其作为托管依赖项包含。因此,我只包括:

resolvers += "jep" at "https://mvnrepository.com/artifact/"

libraryDependencies += "jep" % "jep" % "2.24" 
在build.sbt中

.jar正在下载并包含在my.ivy2文件夹中,但在编译时,sbt似乎找不到它:

  > compile
[info] Updating {file:/C:/scalapy_indp/scalapy/}scalapy...
[info] Resolving org.sonatype.oss#oss-parent;9 ...
[info] downloading https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.12.1/scala-library-2.12.1.jar ...
[info]  [SUCCESSFUL ] org.scala-lang#scala-library;2.12.1!scala-library.jar (1406ms)
[info] downloading https://repo1.maven.org/maven2/org/scala-lang/scala-reflect/2.12.1/scala-reflect-2.12.1.jar ...
[info]  [SUCCESSFUL ] org.scala-lang#scala-reflect;2.12.1!scala-reflect.jar (1156ms)
[info] downloading https://repo1.maven.org/maven2/jep/jep/2.24/jep-2.24.jar ...
[info]  [SUCCESSFUL ] jep#jep;2.24!jep.jar (188ms)
[info] downloading https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.12.1/scala-compiler-2.12.1.jar ...
[info]  [SUCCESSFUL ] org.scala-lang#scala-compiler;2.12.1!scala-compiler.jar (2469ms)
[info] downloading https://repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.12/1.0.6/scala-xml_2.12-1.0.6.jar ...
[info]  [SUCCESSFUL ] org.scala-lang.modules#scala-xml_2.12;1.0.6!scala-xml_2.12.jar(bundle) (360ms)
[info] downloading https://repo1.maven.org/maven2/jline/jline/2.14.1/jline-2.14.1.jar ...
[info]  [SUCCESSFUL ] jline#jline;2.14.1!jline.jar (250ms)
[info] Done updating.
[info] Compiling 16 Scala sources to C:\scalapy_indp\scalapy\target\scala-2.12\classes...
[info] 'compiler-interface' not yet compiled for Scala 2.12.1. Compiling...
[info]   Compilation completed in 15.285 s
[error] C:\scalapy_indp\scalapy\src\gen\scala\me\shadaj\scalapy\py\ObjectTupleReaders.scala:2: not found: object jep
[error] import jep.Jep
[error]        ^
当然,代码中每次出现Jep都会出现错误

我对scala或sbt绝对不熟悉,我只是想让它运行起来,而不必使用非托管依赖项,即让它独立于平台。对于正在创建的文件,手动构建jep似乎取决于平台:

如果构建成功,它将创建一个目录jep/build,该目录将 包含一个jep.jar和编译的jep C库,通常命名为 jep.so或jep.dll,具体取决于您的平台


请参见

相关性设置正确,但导入错误

试一试

相反

--


事实上,我刚刚意识到这可能是两个不同的项目。您包含的依赖项如下:

哇,我认为您完全正确。我没有查名字。我只是认为maven存储库中的项目是一个旧版本,但是功能就足够了。无论如何,非常感谢你的澄清
import org.nfunk.jep.JEP