为什么mrunit 1.1.0 jar在Maven中央存储库中不可用

Rui*_*Rui 3 maven mrunit hadoop-2.7.2

我尝试在maven项目中使用mrunit测试我的MapReduce 2作业.我从Maven中央仓库搜索并找到了结果:http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.apache.mrunit%22%20AND%20a%3A%22mrunit%22

在上面的链接,最新mrunit 1.1.0有hadoop1.jarhadoop2.jar,而不是一个罐子链接.正是由于这个原因,当我尝试添加相应的依赖项时

<dependency>
  <groupId>org.apache.mrunit</groupId>
  <artifactId>mrunit</artifactId>
  <version>1.1.0</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)

pom.xml和运行mvn package,我得到了以下编译错误: Could not find artifact org.apache.mrunit:mrunit:jar:1.1.0 in central (https://repo.maven.apache.org/maven2 ...

任何人都可以帮助解决这个问题吗?提前致谢

Rui*_*Rui 7

在我自己进行了几个小时的低效研究后,得到了我的同事的答案:这是通过maven的classifier标签解决的- http://maven.apache.org/plugins/maven-deploy-plugin/examples/deploying-with-classifiers html的

所以<classifier>hadoop2</classifier>在依赖元素中添加了