-
Notifications
You must be signed in to change notification settings - Fork 658
Fix unnecessary regeneration of message/field classes on every build #1112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
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>
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-antrun-plugin</artifactId> | ||
| <version>3.2.0</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot please move the version property into the properties section of the main pom.xml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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>
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| <!-- Check if code generation can be skipped by comparing input/output timestamps --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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>
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.