[ 
https://issues.apache.org/jira/browse/XMLBEANS-659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18012132#comment-18012132
 ] 

Robert Marcano edited comment on XMLBEANS-659 at 8/5/25 1:43 PM:
-----------------------------------------------------------------

It works for us too for a long time like you. We use it as model for a reports 
generation format (not for data). The generated code is easy to use for the 
implementation of an editor of that format, and we already use POI for 
Spreadsheet export of the report raw data, The library is already there in our 
dependencies.

Is this an opposition to implement this feature? Last time I contributed to 
XMLBeans was to make XMLCursor an AutoClosable.


was (Author: robmv):
I works for us too for a long time like you. We use it as model for a reports 
generation format (not for data). The generated code is easy to use for the 
implementation of an editor of that format, and we already use POI for 
Spreadsheet export of the report raw data, The library is already there in our 
dependencies.

Is this an opposition to implement this feature? Last time I contributed to 
XMLBeans was to make XMLCursor an AutoClosable.

> Make Maven plugin regenerate schemas only when input changes (incremental 
> build)
> --------------------------------------------------------------------------------
>
>                 Key: XMLBEANS-659
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-659
>             Project: XMLBeans
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: Version 5.3.0
>            Reporter: Robert Marcano
>            Priority: Minor
>             Fix For: TBD
>
>
> Currently, The plugin always run by default, not matter if changes where 
> made. There is a configuration property named _buildSchemas_ that can be used 
> to disable it with external flags like a system property.
> This behavior isn't much of a problem when there is a single Maven module or 
> it as multi-module project and the one generating the schema is one leaf of 
> the dependency tree. Recently I have to add schema generation to one of the 
> roots of the dependency tree and always regenerating the schema  mean the 
> entire large multi-module project needs to be recompiled. I am disabling it 
> with system properties, but sometimes it is easy to forget.
> I plan to submit a patch to add this support. My idea is to add logic, to 
> hash all inputs of the plugin, like the configuration entries, the compiler 
> version,  the schema filenames and modification times and store a file as a 
> flag to check if any input has changed from previous builds and then run the 
> compiler only when necessary.
> The _buildSchemas_ configuration could be extended to accept a new value like 
> _incremental_ without changing the default `true`. So users can opt-in to the 
> new behavior, or the default can be changed if agreed.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to