-
Hi List.
According to and according to the decompilation of SchemaGenerator$Runner it should print the errors to System.err before returning false:
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. On the mailing list I was advised to 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. I already had this feature installed, but the Maven Console did not show anything relevant. Please tell me at least how to put a working breakpoint in SchemaGenerator$Runner. Is this really a forked process? How to start it in debug mode? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Did you define some lifecycle mapping metadata for the execution of this mojo? Mojo execution is usually not a subprocess. |
Beta Was this translation helpful? Give feedback.
-
@mickaelistria I'll try. Meanwhile do you know how to properly add maven plugin jars to debug classpath of a pde project? Should I manually add them to the classpath of the project named, say, "org.eclipse.m2e.maven.runtime"? |
Beta Was this translation helpful? Give feedback.
-
The problem is now solved.
The reason why nothing was printed to System.err is that System.err is not used at all in the So the solution is to upgrade to a more recent version of jaxb2-maven-plugin or jaxb-ri The errors I was looking for were:
|
Beta Was this translation helpful? Give feedback.
The problem is now solved.
eclipse.ini, -vmargs
:-Xrunjdwp:transport=dt_socket,address=0.0.0.0:7878,server=y,suspend=y
and debugged the plugin project
org.eclipse.m2e.maven.runtime
as a remote java applicationSchemaGenerator$Runner.compile()
, but they were on the task it was calling:com.sun.tool…