You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Zoltan Haindrich (JIRA)" <ji...@apache.org> on 2016/07/20 21:47:20 UTC

[jira] [Comment Edited] (HIVE-14289) can't reliably specify hadoop.version for maven build

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

Zoltan Haindrich edited comment on HIVE-14289 at 7/20/16 9:46 PM:
------------------------------------------------------------------

i've narrowed it down to the {{maven-remote-resources-plugin}} ... not sure why it's needed...but with this patch the problem goes away...and i was able to install the root project; but it reappeared inside itests...and i was not able to skip that...i think this anomaly maybe related to the ant plugin...

i've created an ugly patch with this skip..hoping that it may help in any further investigations

I can't really see any solutions...if someone would give it a try - maybe a fresh mindset can help ;)


was (Author: kgyrtkirk):
i've narrowed it down to the {{maven-remote-resources-plugin}} ... not sure why it's needed...but with this patch the problem goes away...and i was able to install the root project; but it reappeared inside itests...and i was not able to skip that...i think this anomaly maybe related to the ant plugin...

I can't really see any solutions...if someone would give it a try - maybe a fresh mindset can help ;)

> can't reliably specify hadoop.version for maven build
> -----------------------------------------------------
>
>                 Key: HIVE-14289
>                 URL: https://issues.apache.org/jira/browse/HIVE-14289
>             Project: Hive
>          Issue Type: Bug
>         Environment: maven 3.3.9
>            Reporter: Zoltan Haindrich
>         Attachments: experimental.patch
>
>
> if someone would like to build against a different hadoop.version; it looks straightforward to use {{-Dhadoop.version=...}}. however this doesn't "fully" override the default value of the {{hadoop.version}} maven property.
> steps to reproduce:
>   * change hadoop.version to some nonsence:
> {code}
> sed -i "/hadoop.version.*hadoop.version/s|.*|<hadoop.version>nonexistentt</hadoop.version>|" pom.xml
> {code}
>  * specify a valid {{hadoop.version}} from the commandline:
> {code}
> mvn clean package -DskipTests -Dhadoop.version=2.6.1
> {code}
> i'm not sure..but from {{-X}} output i've seen:
> {code}
> [DEBUG] Ant property 'hadoop.version=2.6.1' clashs with an existing Maven property, SKIPPING this Ant pr
> operty propagation.
> {code}
> the build will fail..or at least it fails for me..



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)