Saturday, April 28, 2007

Maven debug output

Imagine you are frustrated by one of the maven plugin and you want to turn the debug output on. Google debugging a maven plugin or maven debug output and you may still be out of luck. Here is the brute force way of doing it.
Open MAVEN_HOME/core/plexus-container-default-1.0-alpha-9.jar and edit org/codehaus/plexus/plexus-bootstrap.xml to set threshold to debug.

<component>
<role>org.codehaus.plexus.logging.LoggerManager</role>
<implementation>org.codehaus.plexus.logging.console.ConsoleLoggerManager</implementation>
<lifecycle-handler>basic</LIFECYCLE-HANDLER>
<configuration>
<threshold>debug</threshold>
</configuration>
</component>

4 Comments:

At August 6, 2008 at 2:15 AM , Blogger Unknown said...

You can also use the option -X.

 
At October 19, 2008 at 9:28 AM , Blogger Unknown said...

Man, people like you totally suck. What the hell is with the name of your blog? Why do you even blog?

 
At October 19, 2008 at 2:48 PM , Blogger Unknown said...

+1 what s/he said.

 
At March 25, 2010 at 2:57 PM , Blogger Stephen Reed said...

Works also on Maven 2.x.

Edit maven-X-uber.jar
to find the plexus-bootstrap.xml file.

Thanks!!

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home