sbt目录结构中的非托管jar的lib目录在哪里? [英] Where does the lib directory for unmanaged jars in sbt directory structure go?

查看:599
本文介绍了sbt目录结构中的非托管jar的lib目录在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将jar文件添加到sbt项目中,但是我无法确定哪里存储它们。 sbt文档说只要把它们放在lib文件夹中,你的确很好!,但是不提供有关在哪里实际放置这个lib文件夹的任何信息。 lib文件夹是否在src下?在src文件夹所在的顶级层次结构中?我真的不确定,并会感谢一些帮助。

I'm trying to add jar files to an sbt project, but I can't figure out where to store them. The sbt docs say "Just drop them in the lib folder, and you're good!", but don't give any information about where to actually put this lib folder. Does the lib folder go under src? at the top level hierarchy where the src folder is located? I'm really not sure, and would appreciate some help.

推荐答案

根据 http://alvinalexander.com/scala/how-to-create-sbt-project-directory-structure -scala ,lib应该是项目目录的子目录。我只是尝试了,它的作品。

According to http://alvinalexander.com/scala/how-to-create-sbt-project-directory-structure-scala , lib should be a subdirectory of your project directory. I just tried it, it works.

    .
    |-- build.sbt
    |-- lib
    |-- project
    |-- src
    |   |-- main
    |   |   |-- java
    |   |   |-- resources
    |   |   |-- scala
    |   |-- test
    |       |-- java
    |       |-- resources
    |       |-- scala
    |-- target

这篇关于sbt目录结构中的非托管jar的lib目录在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆