You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ken Weiner <kw...@gmail.com> on 2006/04/13 20:13:50 UTC
Re: How to make sure all System.out and System.err are printed when using maven?
All the output for stdout and stderr is directed to a test report file
in target/test-reports. If you want the output to go to the console,
you just need to run the tests with a system param as follows:
maven -Dmaven.junit.usefile=false test
The docs for this are here:
http://maven.apache.org/maven-1.x/plugins/test/properties.html
This is for Maven 1, I'm not sure exactly if Maven 2 is the same.
On 11/29/05, Ruud Wijnands <wi...@gmail.com> wrote:
> Hi,
>
> I have the following problem. I cannot seem to find out how to tell maven
> not to catch all my System.out.println and System.err.println.
> I have added to following piece of code to my JUnit tests to assure I can
> see when a test starts and when it ends.
>
> protected void runTest() throws Throwable {
> System.out.println("------------- Start test: " + this.toString());
> System.out.println("\n\n");
> super.runTest();
> System.out.println("\n\n");
> System.out.println("------------- End test: " + this.toString());
> }
>
> When I run the maven multiproject:install all my java printing is not shown
> on the screen. I do want this however for reasons that will be clear with
> the above explaination.
> Can anyone tell me how to tell maven to just let all the printing go to my
> console?
>
> Regards,
> Ruud Wijnands
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org