Sometimes I run maven and get a compilation error, but there's no way to know what's wrong because maven swallows the output from javac. Is there a way to get it show this output?
Asked
Active
Viewed 30 times
0
-
have you tried running it with the -X flag? – Patrick Aug 18 '22 at 16:15
-
Indeed I have. It tells me how maven invoked javac, but unless I'm missing something, it does NOT tell me the output FROM javac. – Mark VY Aug 18 '22 at 16:24
-
Can you show an example output... also how you called Maven and which versions of JDK, Maven, Plugins etc you are using? – khmarbaise Aug 18 '22 at 18:11
-
calling maven via IntelliJ, but I don't think it matters; if there's any way to do this at all, I will be happy. If I have to switch to a different IDE or a different JDK or disable/enable some plugins, that is fine with me. As far as I know, maven simply doesn't provide this feature. If I'm wrong, I'm willing to jump through hoops to get the output. – Mark VY Aug 18 '22 at 18:21
-
You are doing this from the command line? – Thorbjørn Ravn Andersen Aug 18 '22 at 18:23
-
No, from IDE, but I'm willing to do this via command line instead if it has any chance of helping. – Mark VY Aug 18 '22 at 18:40
-
Okay, I am a moron. The reason I could not get output is because it could not launch the compiler. Sigh. Maven really could have given a clearer error message here. – Mark VY Aug 24 '22 at 14:19