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

Christopher Tubbs commented on ACCUMULO-1402:
---------------------------------------------

[~bmargulies], not quite.

* The pom files that it produces are not changed between the two builds.
* The hadoop2 compatible builds activated with -Dhadoop.profile=2.0 (property 
activation of a profile).
* All the artifacts produced with the default hadoop1 profile do not have 
classifiers and have the normal GAV attributes.
* All the artifacts produced with the hadoop2 profile have the "-hadoop2alpha" 
classifier appended to the artifact name (GAVC). The way to get non-null main 
artifacts is to override the maven-jar-plugin (or equivalent primary packaging 
plugin) configuration to add the classifier option in the one profile that 
needs it.

So, essentially, the same POM produces multiple artifacts reproducibly, but it 
requires building twice. I believe I can deploy them both to the same staging 
repository before closing the repo. To get this to work, I had to push all the 
inter-module dependencies into the hadoop1 and hadoop2 profiles (even though 
they aren't 'provided' dependencies), so modules could refer to their sibling 
with or without a classifier, depending on which build we were doing.
                
> Hadoop2 maven artifacts
> -----------------------
>
>                 Key: ACCUMULO-1402
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1402
>             Project: Accumulo
>          Issue Type: Bug
>            Reporter: John Vines
>            Assignee: Christopher Tubbs
>              Labels: bad
>             Fix For: 1.5.0
>
>         Attachments: ACCUMULO-1402.v1.patch
>
>
> jars need to be compiled separately for hadoop1 vs. hadoop2. Both versions 
> are used in the wild, and will cause a lot of work helping users who do not 
> realize this mistake when they add a maven dependency and expect the one from 
> central to work for their hadoop 2 installation. We should package a separate 
> hadoop2alpha set of jars to release to central for people working against 
> hadoop2 to use.

--
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

Reply via email to