tags:

views:

57

answers:

2

Is there a way to get Maven to include in its logs the actual commands that were invoked to perform a particular operation? I'm having a problem where a javac invocation is failing and I'd like to see what maven was actually trying to do.

+2  A: 

-X is the closest you will get. It's up to the plugin (compiler in this case) to log useful information. Maven will always log the values passed to the plugin, but here compiler calls off to JavaC and apparently it's not logging what you want.

Brian Fox
A: 

I'm not sure that it can log what you want. I think it calls the compiler directly, inside the same JVM. So there is no command line to show.

Dominic Mitchell
That can't be the case, given the error message that I got, which was clearly an incorrect call to javac.
David