Fix unnecessary regeneration of message/field classes on every build#1112
Draft
Fix unnecessary regeneration of message/field classes on every build#1112
Conversation
- Add skip parameter to quickfixj-codegenerator Maven plugin - Use Ant uptodate task to check if FIX XML inputs changed - Create marker file after generation to track timestamps - Skip code generation when inputs are unchanged - Add skip configuration to Orchestra code generator plugins Co-authored-by: chrjohn <6644028+chrjohn@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix regeneration of message and field classes in Maven build
Fix unnecessary regeneration of message/field classes on every build
Jan 9, 2026
chrjohn
requested changes
Jan 12, 2026
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-antrun-plugin</artifactId> | ||
| <version>3.2.0</version> |
Member
There was a problem hiding this comment.
@copilot please move the version property into the properties section of the main pom.xml
Contributor
Author
There was a problem hiding this comment.
Done in commit 9f8f38b. Added maven-antrun-plugin-version property to parent pom.xml and updated all usages in quickfixj-messages-all and quickfixj-messages-fixt11 POMs.
Add maven-antrun-plugin-version property to main pom.xml and use it in: - quickfixj-messages-all/pom.xml (2 plugin declarations) - quickfixj-messages-fixt11/pom.xml This centralizes version management as requested in PR review. Co-authored-by: chrjohn <6644028+chrjohn@users.noreply.github.com>
chrjohn
reviewed
Jan 12, 2026
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| <!-- Check if code generation can be skipped by comparing input/output timestamps --> |
Member
There was a problem hiding this comment.
@copilot the build generates a warning:
Some problems were encountered while building the effective model for org.quickfixj:quickfixj-messages-all:jar:3.0.0-SNAPSHOT
'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-antrun-plugin @ line 452, column 12
Please correct that.
Contributor
Author
There was a problem hiding this comment.
Fixed in commit 78b7121. Consolidated the two maven-antrun-plugin declarations into a single plugin with three executions, eliminating the duplicate declaration warning.
Consolidated two maven-antrun-plugin declarations into one with three executions: - delete-base-classes: Exclude classes from quickfixj-base (existing) - check-codegen-uptodate: Check if generation can be skipped (new) - create-codegen-marker-file: Create marker after generation (new) This resolves the Maven warning about duplicate plugin declarations. Co-authored-by: chrjohn <6644028+chrjohn@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix unnecessary regeneration of message/field classes on every build
Plan
Original prompt
This pull request was created from Copilot chat.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.