如何在 sbt 中定义 maven test-jar 依赖 [英] How to define maven test-jar dependency in sbt
本文介绍了如何在 sbt 中定义 maven test-jar 依赖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有以下 maven 依赖
I have the following maven dependency
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase</artifactId>
<version>0.90.4</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
我知道如何指定 groupId、artifactId、版本和范围
I know how to specify groupId,artifactId, version and scope
"org.apache.hbase" % "hbase" % "0.90.4" % "test"
但是如何指定类型 (test-jar) 以便从 repo 中获得 hbase-0.90.4-tests.jar?
but how do I specify the type (test-jar) so that I'd get hbase-0.90.4-tests.jar from the repo?
推荐答案
"org.apache.hbase" % "hbase" % "0.90.4" % "test" 分类器 "tests"
这篇关于如何在 sbt 中定义 maven test-jar 依赖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文