You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "Thiruvalluvan M. G. (JIRA)" <ji...@apache.org> on 2013/04/19 20:47:15 UTC

[jira] [Updated] (FLUME-2011) "mvn test" fails

     [ https://issues.apache.org/jira/browse/FLUME-2011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thiruvalluvan M. G. updated FLUME-2011:
---------------------------------------

    Attachment: FLUME-2011.patch

This patch "postpones" the tests of {{flume-ng-tests}} module until package.

If the user invokes {{mvn package}} or {{mvn xyz}} where xyz is a phase after {{package}} phase of Maven, the behavior is identical to that existed before.

If the user invokes a phase earlier than {{package}}, no tests will be run for {{flume-ng-tests}} modules. That is the build failure seen so far does not show up and the build succeeds.
                
> "mvn test" fails
> ----------------
>
>                 Key: FLUME-2011
>                 URL: https://issues.apache.org/jira/browse/FLUME-2011
>             Project: Flume
>          Issue Type: Bug
>          Components: Build
>            Reporter: Thiruvalluvan M. G.
>         Attachments: FLUME-2011.patch
>
>
> It is because, the unit tests in {{flume-ng-tests}} module requires other modules to have been packaged as jars. When {{mvn test}} is invoked, no module is packaged (they are just compiled and tested).
> The solution is to run the tests in {{flume-ng-tests}} module in {{package}} phase or later.

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