hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean Charles Jabouille <jean-charles.jaboui...@kelkoogroup.com>
Subject Re: Use hadoop.profile with maven
Date Tue, 14 Aug 2018 14:56:25 GMT
Thanks for your help but I already did it and it works.

What I want is to launch "mvn clean dependency:tree" without specifying 
in command line "-Dhadoop.profile=3.0"


Le 14/08/2018 à 16:18, Artem Ervits a écrit :
> mvn clean install -Dhadoop.profile=3.0 -DskipTests
> mvn clean dependency:tree -Dhadoop.profile=3.0
>
>
> On Tue, Aug 14, 2018 at 8:30 AM Jean Charles Jabouille <
> jean-charles.jabouille@kelkoogroup.com> wrote:
>
>> Hi,
>>
>> I launched "mvn  -P hadoop-3.0 dependency:tree" without any success :-(
>>
>> Do you have other suggestion please ?
>>
>> jc
>>
>>
>> Le 13/08/2018 à 17:53, Artem Ervits a écrit :
>>> there may be a better way but you can try making hadoop-3 profile default
>>> in your pom
>>> https://github.com/apache/hbase/blob/master/pom.xml#L2514-L2771
>>> you can test and confirm but I believe the diff in the activation section
>>> is what controls which profile gets executed
>>> https://github.com/apache/hbase/blob/master/pom.xml#L2777-L2782
>>>
>>>
>>> On Mon, Aug 13, 2018 at 8:33 AM Jean Charles Jabouille <
>>> jean-charles.jabouille@kelkoogroup.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I'm working on a project which uses hbase 2.0 and hadoop 3.0. By default
>>>> Hbase dependencies are configured for hadoop 2.7.4.
>>>>
>>>> As I understand the switch to hadoop 3.0 can be done by doing something
>>>> like this: "mvn -Dhadoop.profile=3.0 clean package" on my project. This
>>>> works like a charm but I would like to integrate this property in my
>>>> pom.xml. I tried:
>>>> - to put this property in <properties> section of my pom.xml
>>>> - use properties-maven-plugin to inject the property dynamically
>>>>
>>>> When I launch mvn dependency:tree hadoop 2.7.4 is used.
>>>>
>>>> Someone can me on this subject please ?
>>>>
>>>> jc
>>>>
>>


Mime
View raw message