我有以下maven依赖
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase</artifactId>
<version>0.90.4</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
我知道如何指定groupId,artifactId,version和scope
"org.apache.hbase" % "hbase" % "0.90.4" % "test"
但是如何指定类型(test-jar)以便从repo中获取hbase-0.90.4-tests.jar?
答案 0 :(得分:53)
"org.apache.hbase" % "hbase" % "0.90.4" % "test" classifier "tests"