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?
  • From: "KARR, DAVID" <dk068x@xxxxxxx>
  • Date: Sat, 23 Apr 2022 15:35:34 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=att.com; dmarc=pass action=none header.from=att.com; dkim=pass header.d=att.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Omu6FP2O8XiVQVss0/ipYSwhGfywZQfHtZ6y6kNbE6M=; b=mrFKNZXfW0yXB9HK0UjBD8xDH6kY1l3+VlfXU7myLG6X+0ttwP7Sxjzn6rQ1C0sHALJF7YPeN2pIjGKuqKXA/wHBhHJll/gKsRHpWokMNt4FtcOmlc+D7rlspTueNMZ4hIRLya301HsRLETdozRje25lX0ZurGE3lGRhOXaaoT9DeTcrszGaocySxSVUpfUpCNkjmJMgdpZriEYxr6lcLPW9oO9RfVlx1/aIJZZryCU8SZWVl/4Nz+yXZdT7we2MvE6SQrSGmb3DZNCxf0my6sSnJBbjZPObP3vNtQTDIlkTTeXcR7WnnL3yfNC2gvCtv4ixi+BtWSEaOOU5+6gkqg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CUfL97FuhH+XxE/+3eYtgmlz7hGZICFiaL6m76KcQN5OLgeHYM7BuUPvSqD7hEzbv2Am4igq+yZcjFT1xYd/qxXl2BD7QZfQ/ncMsMSByRr2XhyYjITrZsRfUhKHuJBYcl9+XAQWXiNDuqeFeV2SLQNZtcQBO3EvenX1sQjEiEO2JXlGOrVrkNcQdgHmM/vfx1RkrxxRf1O4hdEFnuXYsV2yLgGabL2Wq9+OqfLrWNR6T1huVsxQobXhMe7ySQrc5iUfK/SlDsyuaucCoSA70TO0wPHoXBUJWnUHv7YSRsyYX62vs3inYm1A7f7o9yTC9TOBxs19gYxU2ey7EwY6fA==
  • Delivered-to: m2e-users@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/m2e-users/>
  • List-help: <mailto:m2e-users-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/m2e-users>, <mailto:m2e-users-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/m2e-users>, <mailto:m2e-users-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHYVL83bP6CjD6STE+mclEPHKquMaz9Y5OAgABB5qA=
  • Thread-topic: [m2e-users] Where does System.err of Maven plugin go?

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.

 

 

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(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
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
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/m2e-users

 

 


Back to the top