Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Where does System.err of Maven plugin go?

You can install the M2E-Feature 'org.eclipse.m2e.logback.feature' which adds the Maven-Console that should show the print-out of Maven Plug-ins executed during the M2E-build within Eclipse.
For the future, please ask questions at M2E's GitHub Discussions page [1] , because this Mailing-List is about to be shutdown.
Thank you.
[1] -
Gesendet: Mittwoch, 20. April 2022 um 16:01 Uhr
Von: "ilya Basin" <basinilya@xxxxxxxxx>
An: "Maven Integration for Eclipse users mailing list" <m2e-users@xxxxxxxxxxx>
Betreff: [m2e-users] Where does System.err of Maven plugin go?
Hi List.
I'm trying to debug the error (not reproducible with command line maven):

JAXB errors arose while SchemaGen compiled sources to XML. (org.codehaus.mojo:jaxb2-maven-plugin:2.3.1:schemagen:schemagen:generate-resources)

org.apache.maven.plugin.MojoExecutionException: JAXB errors arose while SchemaGen compiled sources to XML.
at org.codehaus.mojo.jaxb2.schemageneration.AbstractXsdGeneratorMojo.performExecution(

According to
it calls

and according to the decompilation of SchemaGenerator$Runner it should print the errors to System.err before returning false:

/* 243 */ boolean res =;
/* */
/* 245 */ for (Diagnostic<? extends JavaFileObject> d : diagnostics.getDiagnostics()) {
/* 246 */ System.err.println(d.toString());
/* */ }
/* 248 */ return res;

I tried to run eclipsec.exe and I also checked the .log file in the Eclipse Workspace, but nothing is printed there. I also attached a debugger ti Eclipse, but the main Eclipse process doesn't load the above classes. Looks like m2e forks.
m2e-users mailing list
To unsubscribe from this list, visit

Back to the top