hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Enis Soztutar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-6795) mvn compile fails on a fresh checkout with empty ~/.m2/repo
Date Mon, 17 Sep 2012 22:27:08 GMT

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

Enis Soztutar commented on HBASE-6795:

I did not realize that it is a known issue, obviously I expected to mvn compile to work out
of box. 
Since it is a maven bug, I'm +1 on updating the manual, and maybe a short comment on parent
pom.xml. Shall we resolve this as won't fix, once HBASE-6412 is in? 

> mvn compile fails on a fresh checkout with empty ~/.m2/repo
> -----------------------------------------------------------
>                 Key: HBASE-6795
>                 URL: https://issues.apache.org/jira/browse/HBASE-6795
>             Project: HBase
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 0.96.0
>            Reporter: Enis Soztutar
>            Assignee: Enis Soztutar
>            Priority: Critical
> I have noticed that mvn compile fails if your ~/m2/repository/ does not contain hbase
test jars, however mvn test-compile, mvn install, etc works as expected. 
> The patch for HBASE-6706 introduced test-jar dependency from hbase-server and hbase-hadoop1-compat
to hbase-hadoop-compat test jar in the test scope. But stupid maven still tries to resolve
the test jar when you do maven compile (notice that we are not even in the test scope).
> mvn test-compile, etc works b/c the test-jar for hbase-hadoop-compat is build before
> One way to solve this is to push SNAPSHOT test-jars for hbase-hadoop-compat to the snapshot
repository, so next time, they are referenced from there.
> Other alternative is to move classes under hbase-hadoop{|1|2}-compat/src/test to src/main,
and remove the test-jar intra-module dependency. Still, it seems we might need intra-module
test-jar dependency in the future. 
> Any other suggestions are welcome. 

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message