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

Sean Busbey commented on HADOOP-12198:
--------------------------------------

what if we try relying on Maven's "and build modules this module depends on" 
logic for the default?

for example, over in YCSB this actually works:
{code}
$ mvn -pl com.yahoo.ycsb:hbase-binding -am -DskipTests clean package
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] YCSB Root
[INFO] Core YCSB
[INFO] Per Datastore Binding descriptor
[INFO] YCSB Datastore Binding Parent
[INFO] HBase DB Binding
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building YCSB Root 0.3.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ root ---
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.15:checkstyle (validate) @ root ---
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Core YCSB 0.3.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ core ---
[INFO] Deleting /Users/busbey/projects/ycsb-release/core/target
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.15:checkstyle (validate) @ core ---
[INFO] Starting audit...
...SNIP...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Per Datastore Binding descriptor 0.3.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ 
datastore-specific-descriptor ---
[INFO] Deleting 
/Users/busbey/projects/ycsb-release/binding-parent/datastore-specific-descriptor/target
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.15:checkstyle (validate) @ 
datastore-specific-descriptor ---
[INFO] Starting audit...
Audit done.
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ 
datastore-specific-descriptor ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ 
datastore-specific-descriptor ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ 
datastore-specific-descriptor ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
/Users/busbey/projects/ycsb-release/binding-parent/datastore-specific-descriptor/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile) @ 
datastore-specific-descriptor ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ 
datastore-specific-descriptor ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ 
datastore-specific-descriptor ---
[INFO] Building jar: 
/Users/busbey/projects/ycsb-release/binding-parent/datastore-specific-descriptor/target/datastore-specific-descriptor-0.3.0-SNAPSHOT.jar
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building YCSB Datastore Binding Parent 0.3.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ binding-parent ---
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.15:checkstyle (validate) @ binding-parent 
---
[INFO] 
[INFO] --- maven-dependency-plugin:2.10:copy-dependencies (stage-dependencies) 
@ binding-parent ---
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building HBase DB Binding 0.3.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ hbase-binding ---
[INFO] Deleting /Users/busbey/projects/ycsb-release/hbase/target
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.15:checkstyle (validate) @ hbase-binding 
---
[INFO] Starting audit...
...SNIP...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] YCSB Root ......................................... SUCCESS [1.419s]
[INFO] Core YCSB ......................................... SUCCESS [7.728s]
[INFO] Per Datastore Binding descriptor .................. SUCCESS [0.747s]
[INFO] YCSB Datastore Binding Parent ..................... SUCCESS [0.363s]
[INFO] HBase DB Binding .................................. SUCCESS [6.410s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.966s
[INFO] Finished at: Tue Jul 07 00:37:27 CDT 2015
[INFO] Final Memory: 44M/655M
[INFO] ------------------------------------------------------------------------
{code}

> patches that hit multiple modules may need to build at root
> -----------------------------------------------------------
>
>                 Key: HADOOP-12198
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12198
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: yetus
>            Reporter: Allen Wittenauer
>
> Patches that introduce dependencies on other modules (e.g., HADOOP-12180) 
> need to effectively built at root. 
> There is a good chance this type of logic will need to be done on a 
> per-project basis. 



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

Reply via email to