You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Jason Dillon <ja...@planet57.com> on 2007/04/03 05:49:13 UTC

OMG... mvn -X spits out soooooo much junk

I think its time for a --debug and --trace option to mvn... as mvn -X  
by itself spits out sooo much output that it is almost unusable.   
Certainly to get more information out of plugins that are executing  
its provides *way, way* to much information.

For example, running `mvn -X -N` from the geronimo/server/trunk  
build, its spits out ~2500 lines.

I'd really like to see the logging output in Maven have some finer  
controls.  *most* of the time I just want debugging information from  
my plugins, including a brief overview of the artifact they came  
from, the arguments to the mojo and then the mojos log.debug() output.

I don't care much the full tree of maven artifacts and all that other  
muck for most times I want to see debug information.

I really think that mvn should have better cli configuration of the  
debug and warning levels which are enabled.

Very simlar to how CC has the -W flag to enable sets of warnings, I  
think that mvn needs a flag to enable sets of warning and debug  
information.

For example, this might show all the gory detail about artifacts:

     mvn --debug=artifacts

Where this would only show the plugin invokation details:

     mvn --debug=plugin

And default to the minimal:

     mvn --debug

^^^ is the same as mvn --debug=plugin

  * * *

For those interested, the full ~2500 lines of mvn -X -N for sever/ 
trunk are here:

     http://rifers.org/paste/jdillon/show/4223

This is a big project... but I don't really need all of that output  
when I'm trying to debug plugin executions.  Today I just wanted to  
make sure that the maven-enforcer-plugin was still working after the  
snapshot, since it now logs details to DEBUG instead of INFO.  And I  
was appalled when I ran `mvn -X -N` from the top-level and go so much  
junk.

I really would like to see this fixed... it would really help people  
to debug mvn issues.  Sure there are times when you need the full  
output, maybe from `mvn --debug=all` but 90% of the time all that  
extra information just makes it hard to find the information you do  
care about.

Please can we address this problem?

--jason

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


RE: OMG... mvn -X spits out soooooo much junk

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
I was just looking through my open reported issues and found this one:
http://jira.codehaus.org/browse/MNG-2570 add your ideas here.

-----Original Message-----
From: Jason Dillon [mailto:jason.dillon@gmail.com] On Behalf Of Jason
Dillon
Sent: Monday, April 02, 2007 11:49 PM
To: Maven Developers List
Subject: OMG... mvn -X spits out soooooo much junk

I think its time for a --debug and --trace option to mvn... as mvn -X  
by itself spits out sooo much output that it is almost unusable.   
Certainly to get more information out of plugins that are executing  
its provides *way, way* to much information.

For example, running `mvn -X -N` from the geronimo/server/trunk  
build, its spits out ~2500 lines.

I'd really like to see the logging output in Maven have some finer  
controls.  *most* of the time I just want debugging information from  
my plugins, including a brief overview of the artifact they came  
from, the arguments to the mojo and then the mojos log.debug() output.

I don't care much the full tree of maven artifacts and all that other  
muck for most times I want to see debug information.

I really think that mvn should have better cli configuration of the  
debug and warning levels which are enabled.

Very simlar to how CC has the -W flag to enable sets of warnings, I  
think that mvn needs a flag to enable sets of warning and debug  
information.

For example, this might show all the gory detail about artifacts:

     mvn --debug=artifacts

Where this would only show the plugin invokation details:

     mvn --debug=plugin

And default to the minimal:

     mvn --debug

^^^ is the same as mvn --debug=plugin

  * * *

For those interested, the full ~2500 lines of mvn -X -N for sever/ 
trunk are here:

     http://rifers.org/paste/jdillon/show/4223

This is a big project... but I don't really need all of that output  
when I'm trying to debug plugin executions.  Today I just wanted to  
make sure that the maven-enforcer-plugin was still working after the  
snapshot, since it now logs details to DEBUG instead of INFO.  And I  
was appalled when I ran `mvn -X -N` from the top-level and go so much  
junk.

I really would like to see this fixed... it would really help people  
to debug mvn issues.  Sure there are times when you need the full  
output, maybe from `mvn --debug=all` but 90% of the time all that  
extra information just makes it hard to find the information you do  
care about.

Please can we address this problem?

--jason

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: OMG... mvn -X spits out soooooo much junk

Posted by Asgeir Nilsen <as...@gmail.com>.
On 4/3/07, Jason Dillon <ja...@planet57.com> wrote:
> I'd really like to see the logging output in Maven have some finer
> controls.  *most* of the time I just want debugging information from
> my plugins, including a brief overview of the artifact they came
> from, the arguments to the mojo and then the mojos log.debug() output.

>From what I've been able to infer from reading a bit of Maven source,
the Plexus container should be able to have its LoggerManager replaced
with, say a Log4j / SLF4J LoggerManager, enabling full control of
logging destinations, levels, and filtering for each separate plugin /
component.

So what does it take to change the LoggerManager, for instance via a
plugin or other bits in the POM?

Asgeir

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: OMG... mvn -X spits out soooooo much junk

Posted by Jason Dillon <ja...@planet57.com>.
Oh, ya... it works, I got distracted by my rant.  Latest snapshot  
looks okay to me.

--jason


On Apr 2, 2007, at 8:59 PM, Brian E. Fox wrote:

> Looks like enforcer worked :-)
>
> -----Original Message-----
> From: Jason Dillon [mailto:jason.dillon@gmail.com] On Behalf Of Jason
> Dillon
> Sent: Monday, April 02, 2007 11:49 PM
> To: Maven Developers List
> Subject: OMG... mvn -X spits out soooooo much junk
>
> I think its time for a --debug and --trace option to mvn... as mvn -X
> by itself spits out sooo much output that it is almost unusable.
> Certainly to get more information out of plugins that are executing
> its provides *way, way* to much information.
>
> For example, running `mvn -X -N` from the geronimo/server/trunk
> build, its spits out ~2500 lines.
>
> I'd really like to see the logging output in Maven have some finer
> controls.  *most* of the time I just want debugging information from
> my plugins, including a brief overview of the artifact they came
> from, the arguments to the mojo and then the mojos log.debug() output.
>
> I don't care much the full tree of maven artifacts and all that other
> muck for most times I want to see debug information.
>
> I really think that mvn should have better cli configuration of the
> debug and warning levels which are enabled.
>
> Very simlar to how CC has the -W flag to enable sets of warnings, I
> think that mvn needs a flag to enable sets of warning and debug
> information.
>
> For example, this might show all the gory detail about artifacts:
>
>      mvn --debug=artifacts
>
> Where this would only show the plugin invokation details:
>
>      mvn --debug=plugin
>
> And default to the minimal:
>
>      mvn --debug
>
> ^^^ is the same as mvn --debug=plugin
>
>   * * *
>
> For those interested, the full ~2500 lines of mvn -X -N for sever/
> trunk are here:
>
>      http://rifers.org/paste/jdillon/show/4223
>
> This is a big project... but I don't really need all of that output
> when I'm trying to debug plugin executions.  Today I just wanted to
> make sure that the maven-enforcer-plugin was still working after the
> snapshot, since it now logs details to DEBUG instead of INFO.  And I
> was appalled when I ran `mvn -X -N` from the top-level and go so much
> junk.
>
> I really would like to see this fixed... it would really help people
> to debug mvn issues.  Sure there are times when you need the full
> output, maybe from `mvn --debug=all` but 90% of the time all that
> extra information just makes it hard to find the information you do
> care about.
>
> Please can we address this problem?
>
> --jason
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


RE: OMG... mvn -X spits out soooooo much junk

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
Looks like enforcer worked :-)

-----Original Message-----
From: Jason Dillon [mailto:jason.dillon@gmail.com] On Behalf Of Jason
Dillon
Sent: Monday, April 02, 2007 11:49 PM
To: Maven Developers List
Subject: OMG... mvn -X spits out soooooo much junk

I think its time for a --debug and --trace option to mvn... as mvn -X  
by itself spits out sooo much output that it is almost unusable.   
Certainly to get more information out of plugins that are executing  
its provides *way, way* to much information.

For example, running `mvn -X -N` from the geronimo/server/trunk  
build, its spits out ~2500 lines.

I'd really like to see the logging output in Maven have some finer  
controls.  *most* of the time I just want debugging information from  
my plugins, including a brief overview of the artifact they came  
from, the arguments to the mojo and then the mojos log.debug() output.

I don't care much the full tree of maven artifacts and all that other  
muck for most times I want to see debug information.

I really think that mvn should have better cli configuration of the  
debug and warning levels which are enabled.

Very simlar to how CC has the -W flag to enable sets of warnings, I  
think that mvn needs a flag to enable sets of warning and debug  
information.

For example, this might show all the gory detail about artifacts:

     mvn --debug=artifacts

Where this would only show the plugin invokation details:

     mvn --debug=plugin

And default to the minimal:

     mvn --debug

^^^ is the same as mvn --debug=plugin

  * * *

For those interested, the full ~2500 lines of mvn -X -N for sever/ 
trunk are here:

     http://rifers.org/paste/jdillon/show/4223

This is a big project... but I don't really need all of that output  
when I'm trying to debug plugin executions.  Today I just wanted to  
make sure that the maven-enforcer-plugin was still working after the  
snapshot, since it now logs details to DEBUG instead of INFO.  And I  
was appalled when I ran `mvn -X -N` from the top-level and go so much  
junk.

I really would like to see this fixed... it would really help people  
to debug mvn issues.  Sure there are times when you need the full  
output, maybe from `mvn --debug=all` but 90% of the time all that  
extra information just makes it hard to find the information you do  
care about.

Please can we address this problem?

--jason

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org