maven-compiler-plugin icon indicating copy to clipboard operation
maven-compiler-plugin copied to clipboard

[MCOMPILER-407] Feature request: In debug mode, print full output of javac (including stdout)

Open jira-importer opened this issue 5 years ago • 4 comments

Manu Sridharan opened MCOMPILER-407 and commented

Certain javac annotation processors and plugins like The Checker Framework sometimes print useful diagnostics on stdout.  Currently, there is no way to see this output using the Maven Compiler Plugin, even when Maven is run with the -X option.  I suggest that when Maven is in debug mode, the plugin should show as a debug message the full stdout of javac.  This should also work if javac is forked.

If someone points me at the relevant code, I am happy to try to submit a pull request for this change.


Affects: 3.8.1

jira-importer avatar Jan 27 '20 03:01 jira-importer

Robert Scholte commented

That's handled per compiler in https://github.com/codehaus-plexus/plexus-compiler

jira-importer avatar Sep 07 '21 18:09 jira-importer

Manu Sridharan commented

Thanks Robert Scholte!  Are you then suggesting I should report an issue on that GitHub repo rather than here?

jira-importer avatar Sep 07 '21 18:09 jira-importer

Robert Scholte commented

It should be fixed there. Next we can upgrade those dependencies here, so I don't mind leaving this ticket open.

jira-importer avatar Sep 07 '21 19:09 jira-importer

Manu Sridharan commented

Thanks! I opened https://github.com/codehaus-plexus/plexus-compiler/issues/149

jira-importer avatar Sep 07 '21 20:09 jira-importer