Example configuration in M2:

        <plugin>
          <artifactId>maven-surefire-plugin</artifactId>
            <version>2.1.3</version>
          <configuration>
            <test>**/*TestSuite*</test>
            <useFile>false</useFile>
          </configuration>
        </plugin> 

-----Original Message-----
From: Ken Weiner [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 13, 2006 1:14 PM
To: Maven Users List
Subject: 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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to