wuchang
wuchang

Reputation: 3069

Artifact missing error when I add jar file in Maven

I use maven to manage my jar files in my project.Firstly ,I download the org.apache.mrunit of version 0.8.0-incubating.But I find that it is not compatiable with my project so I remove it and what to re-download a 1.0.0 version.But I cannot download the version 1.0.0. Error message in eclipse is:

[ERROR] Failed to execute goal on project MapReducer: Could not resolve dependencies for project org.MapReducer1.0.0:MapReducer:jar:0.0.1-SNAPSHOT: Failure to find org.apache.mrunit:mrunit:jar:1.0.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

But when I search mrunit online ,I can get the version list:enter image description here

But when I search it in my pom.xml of eclipse , I can only get the version 0.8.0-incubating: enter image description here

Anyone can help me?

Upvotes: 0

Views: 2203

Answers (1)

Emilie
Emilie

Reputation: 403

I know this is a rather old question, but I just encountered the same problem. I resolved it by adding a classifier, as indicated on the Apache MRUnit Tutorial page

<dependency>
    <groupId>org.apache.mrunit</groupId>
    <artifactId>mrunit</artifactId>
    <version>1.1.0</version>
    <classifier>hadoop2</classifier> 
</dependency>

User hadoop1 if you are using an older version of hadoop.

Upvotes: 3

Related Questions