[
https://issues.apache.org/jira/browse/NUTCH-2291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15358917#comment-15358917
]
Sebastian Nagel commented on NUTCH-2291:
----------------------------------------
Solution 1 is correct because the classifier is only a part of the jar file
names in the [mrunit maven
repo|http://central.maven.org/maven2/org/apache/mrunit/mrunit/1.1.0/]. It is
not part of the POM file name which lets ant/ivy fail to retrieve mrunit's POM:
{noformat}
% ant -v -d resolve-test
...
[ivy:resolve] == resolving dependencies
org.apache.nutch#nutch;working@vasyugan->org.apache.mrunit#mrunit;1.1.0
[test->default]
...
[ivy:resolve] HTTP response status: 404
url=http://repo1.maven.org/maven2/org/apache/mrunit/mrunit/1.1.0/mrunit-1.1.0-hadoop2.pom
[ivy:resolve] CLIENT ERROR: Not Found
url=http://repo1.maven.org/maven2/org/apache/mrunit/mrunit/1.1.0/mrunit-1.1.0-hadoop2.pom
{noformat}
> Fix mrunit dependencies
> -----------------------
>
> Key: NUTCH-2291
> URL: https://issues.apache.org/jira/browse/NUTCH-2291
> Project: Nutch
> Issue Type: Bug
> Components: build
> Affects Versions: 1.13
> Reporter: Sebastian Nagel
> Priority: Blocker
> Fix For: 1.13
>
> Attachments: NUTCH-2291-1.patch, NUTCH-2291-2.patch,
> mrunit-deps-cached.png, mrunit-deps-new.png
>
>
> The Jenkins builds fail with a NoClassDefFoundError, see [build #3376
> log|https://builds.apache.org/job/Nutch-trunk/3376/testReport/org.apache.nutch.crawl/TestCrawlDbStates/testCrawlDbStatTransitionInject/].
> The missing class org/mockito/stubbing/Answer is part of
> build/test/lib/mockito-core-1.9.5.jar which was a dependency of mrunit
> (screenshot mrunit-deps-cached.png). After removing mrunit from my local ivy
> cache ({{rm -rf ~/.ivy2/cache/org.apache.mrunit/}} mrunit lost mockito as
> dependency (screenshot mrunit-deps-new.png) and the build failure is
> reproducible.
> I don't understand what triggered the loss of the transitive dependency: the
> upgrade to Hadoop 2.7.2 (NUTCH-2236) or the addition of
> {{maven:classifier="hadoop2"}} in commit
> [7956daee|https://git-wip-us.apache.org/repos/asf?p=nutch.git;a=commitdiff;h=7956daee8ac91180070f92949ecf99deae9b5ef0#patch2].
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)