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?

Watch > Custom > Discussions

Am 23.04.22 um 17:35 schrieb KARR, DAVID:
This is the first I’ve heard of github discussions.  Does anyone know if github is going to allow separate notification levels for discussions, as opposed to the other categories? Looking at the configuration for notifications, it doesn’t appear to be even covered.

*From:* m2e-users <m2e-users-bounces@xxxxxxxxxxx> *On Behalf Of *Hannes Wellmann
*Sent:* Saturday, April 23, 2022 4:38 AM
*To:* m2e-users@xxxxxxxxxxx
*Subject:* 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] - https://github.com/eclipse-m2e/m2e-core/discussions <https://urldefense.com/v3/__https:/github.com/eclipse-m2e/m2e-core/discussions__;!!BhdT!jO9VCf7agZEIp7kB4sDDad8MvGCVD65KoBx-vSIoq-YsqRK7egM_QapSFRYwBmmWOhwOIVHFhVD6pnFQz95OM4sc$>

*Gesendet:* Mittwoch, 20. April 2022 um 16:01 Uhr
*Von:* "ilya Basin" <basinilya@xxxxxxxxx <mailto:basinilya@xxxxxxxxx>>
*An:* "Maven Integration for Eclipse users mailing list" <m2e-users@xxxxxxxxxxx <mailto: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(AbstractXsdGeneratorMojo.java:385)

According to
https://github.com/mojohaus/jaxb2-maven-plugin/blob/a52f6c270f28753b4d92b71e36e629ad2c3a7ad8/src/main/java/org/codehaus/mojo/jaxb2/schemageneration/AbstractXsdGeneratorMojo.java#L411 <https://urldefense.com/v3/__https:/github.com/mojohaus/jaxb2-maven-plugin/blob/a52f6c270f28753b4d92b71e36e629ad2c3a7ad8/src/main/java/org/codehaus/mojo/jaxb2/schemageneration/AbstractXsdGeneratorMojo.java*L411__;Iw!!BhdT!jO9VCf7agZEIp7kB4sDDad8MvGCVD65KoBx-vSIoq-YsqRK7egM_QapSFRYwBmmWOhwOIVHFhVD6pnFQz0e9ujzp$>
it calls com.sun.tools.jxc.SchemaGenerator.run()

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

/* 243 */ boolean res = task.call().booleanValue();
/* */
/* 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
m2e-users@xxxxxxxxxxx <mailto:m2e-users@xxxxxxxxxxx>
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/m2e-users <https://urldefense.com/v3/__https:/www.eclipse.org/mailman/listinfo/m2e-users__;!!BhdT!jO9VCf7agZEIp7kB4sDDad8MvGCVD65KoBx-vSIoq-YsqRK7egM_QapSFRYwBmmWOhwOIVHFhVD6pnFQz0pdpITN$>


_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/m2e-users


Back to the top