You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Enis Soztutar (JIRA)" <ji...@apache.org> on 2013/10/18 01:32:42 UTC

[jira] [Commented] (HBASE-9798) Include dependency hamcrest-core

    [ https://issues.apache.org/jira/browse/HBASE-9798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13798599#comment-13798599 ] 

Enis Soztutar commented on HBASE-9798:
--------------------------------------

Forgot to mention that this is not a RC sinker IMO, since on deployment, we most likely append hadoop classpath to HBase classpath, so that dependency will come through mapred libs. 
Not sure why we excluded this in the first place. Because of junit-4.5 in hadoop1 vs junit-4.11 in hadoop2 ? [~stack] any idea? 

> Include dependency hamcrest-core
> --------------------------------
>
>                 Key: HBASE-9798
>                 URL: https://issues.apache.org/jira/browse/HBASE-9798
>             Project: HBase
>          Issue Type: Bug
>          Components: build, test
>            Reporter: Enis Soztutar
>            Assignee: Enis Soztutar
>             Fix For: 0.98.0, 0.96.1
>
>
> We exclude hamcrest-code dependency from junit: 
> {code}
> <dependencyManagement>
>    <dependency>
>         <groupId>junit</groupId>
>         <artifactId>junit</artifactId>
>         <version>${junit.version}</version>
>         <exclusions>
>           <exclusion>
>             <groupId>org.hamcrest</groupId>
>             <artifactId>hamcrest-core</artifactId>
>           </exclusion>
>         </exclusions>
>       </dependency>
> {code}
> However, running ITTD fails with hadoop1 and 2 tarballs: 
> {code}
> bin/hbase org.apache.hadoop.hbase.IntegrationTestsDriver
> ...
> Exception in thread "main" java.lang.NoClassDefFoundError: org/hamcrest/SelfDescribing
> 	at java.lang.ClassLoader.defineClass1(Native Method)
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)