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

Ved Prakash Pandey commented on YARN-4084:
------------------------------------------

Thanks for reply Allen. 

Actually I am using both  -DskipTests in addition to -Dmaven.test.skip=true. 
The problem comes when I use -Dmaven.test.skip=true which restricts the test 
code compilation. For this comment sake let me allow to tell that 
maven.test.skip option skip both the test code compilation and test case 
execution whereas skipTests skips only execution (not compilation).

This may sound unethical to compile source code without compiling test source 
code and in-fact for open source community this may never be a scenario. But I 
ran into one requirement wherein my Continuous Integration environment, I have 
to make a complete build as fast as possible where every minute counts. In such 
a case disabling the test code compilation saves close to 3 to 4 minutes.


> Yarn should allow to skip hadoop-yarn-server-tests project from build..
> -----------------------------------------------------------------------
>
>                 Key: YARN-4084
>                 URL: https://issues.apache.org/jira/browse/YARN-4084
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 2.7.1
>            Reporter: Ved Prakash Pandey
>            Priority: Minor
>         Attachments: YARN-4084.patch
>
>
> For fast compilation one can try to skip the test code compilation by using 
> {{-Dmaven.test.skip=true}}. But yarn-project fails to compile when this 
> option is used. This is because, it depends on hadoop-yarn-server-tests 
> project. 
> Below is the exception :
> {noformat}
> [ERROR] Assembly: hadoop-yarn-dist is not configured correctly: Cannot find 
> attachment with classifier: tests in module project: 
> org.apache.hadoop:hadoop-yarn-server-tests:jar:2.7.0. Please exclude this 
> module from the module-set.
> {noformat}



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

Reply via email to