O'Reilly logo

Apache Maven Cookbook by Raghuram Bharathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Controlling the verbosity of the Maven output

Sometimes, the output from Maven might be too verbose and we may want to only see the errors. At other times, the information displayed by Maven may be insufficient and we want to see more details. Let us see how we can control this.

How to do it...

  1. Open a Maven project.
  2. Run the following command:
        mvn –q clean package 
    
  3. Observe the output:
    How to do it...
  4. Now run the following command:
        mvn –X clean package 
    
  5. Observe the output:
    How to do it...

How it works...

Maven provides different levels of logging. The typical levels are DEBUG (detailed ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required