You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Boris Shingarov (JIRA)" <xm...@xml.apache.org> on 2011/05/18 21:16:49 UTC
[jira] [Created] (XMLBEANS-456) No generated source for
TypeSystemHolder -- breaks Maven plugin
No generated source for TypeSystemHolder -- breaks Maven plugin
---------------------------------------------------------------
Key: XMLBEANS-456
URL: https://issues.apache.org/jira/browse/XMLBEANS-456
Project: XMLBeans
Issue Type: Bug
Components: Compiler
Affects Versions: Version 2.3, Version 2.4
Reporter: Boris Shingarov
According to the doc, Java classes are first generated in source form in the place specified by the "-src" flag, and then get compiled into a place specified by the "-d" flag.
However, this is not true for TypeSystemHolder. It is created in SchemaTypeSystemImpl.saveLoader(), by patching a template .class file.
This is a problem with the xmlbeans maven plugin. It trusts the xmlbeans doc and assumes that all the necessary code is available in the "src" place. It then automatically generates a .classpath for Eclipse containing the "src". Because the application program compiles against the generated interfaces, and those are present in "src", the problem does not get detected at compile time. But at runtime, the application will die with a NoClassDefFound.
I can not see how to work around this. The xmlbeans plugin provides no flexibility to allow changing the .classpath, so I can not just manually tell it to include the "-d" place.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[jira] [Commented] (XMLBEANS-456) No generated source for
TypeSystemHolder -- breaks Maven plugin
Posted by "Boris Shingarov (JIRA)" <xm...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XMLBEANS-456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13081111#comment-13081111 ]
Boris Shingarov commented on XMLBEANS-456:
------------------------------------------
I don't seem to be able to compile from the current Git Master.
It fails due to:
C:\XMLBeans\xmlbeans\build.xml:154: src 'C:\XMLBeans\xmlbeans\external\lib\jsr173_1.0_api_bundle.jar' doesn't exist.
> No generated source for TypeSystemHolder -- breaks Maven plugin
> ---------------------------------------------------------------
>
> Key: XMLBEANS-456
> URL: https://issues.apache.org/jira/browse/XMLBEANS-456
> Project: XMLBeans
> Issue Type: Bug
> Components: Compiler
> Affects Versions: Version 2.3, Version 2.4
> Reporter: Boris Shingarov
>
> According to the doc, Java classes are first generated in source form in the place specified by the "-src" flag, and then get compiled into a place specified by the "-d" flag.
> However, this is not true for TypeSystemHolder. It is created in SchemaTypeSystemImpl.saveLoader(), by patching a template .class file.
> This is a problem with the xmlbeans maven plugin. It trusts the xmlbeans doc and assumes that all the necessary code is available in the "src" place. It then automatically generates a .classpath for Eclipse containing the "src". Because the application program compiles against the generated interfaces, and those are present in "src", the problem does not get detected at compile time. But at runtime, the application will die with a NoClassDefFound.
> I can not see how to work around this. The xmlbeans plugin provides no flexibility to allow changing the .classpath, so I can not just manually tell it to include the "-d" place.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org