From 87a7ce5e80e7f59b8ab08bd41d2660e79ac52669 Mon Sep 17 00:00:00 2001 From: "jetbrains-junie[bot]" Date: Fri, 25 Jul 2025 18:11:58 +0000 Subject: [PATCH 1/2] feat(build): add conditional dependency for message classes The `build-helper:uptodate-property` plugin was added to conditionally prevent rebuilding message classes. Maven profiles for each FIX version were created to execute code generation only if the respective spec files changed. Original code generation executions were removed from the main build section. --- .../quickfixj-messages-all/pom.xml | 567 ++++++++++++++---- 1 file changed, 464 insertions(+), 103 deletions(-) diff --git a/quickfixj-messages/quickfixj-messages-all/pom.xml b/quickfixj-messages/quickfixj-messages-all/pom.xml index 01216365ac..dd7833d937 100644 --- a/quickfixj-messages/quickfixj-messages-all/pom.xml +++ b/quickfixj-messages/quickfixj-messages-all/pom.xml @@ -13,6 +13,18 @@ QuickFIX/J Message classes for all FIX specs including Fix Latest QuickFIX/J Field classes http://www.quickfixj.org + + + + false + false + false + false + false + false + false + false + @@ -122,6 +134,271 @@ + + + + generate-fix40 + + + fix40.spec.uptodate + false + + + + + + org.quickfixj + quickfixj-codegenerator + ${project.version} + + + fix40 + + generate + + + ../quickfixj-messages-fix40/src/main/resources/FIX40.xml + quickfix.fix40 + quickfix.field + ${generator.decimal} + + + + + + + + + + generate-fix41 + + + fix41.spec.uptodate + false + + + + + + org.quickfixj + quickfixj-codegenerator + ${project.version} + + + fix41 + + generate + + + ../quickfixj-messages-fix41/src/main/resources/FIX41.xml + quickfix.fix41 + quickfix.field + ${generator.decimal} + + + + + + + + + + generate-fix42 + + + fix42.spec.uptodate + false + + + + + + org.quickfixj + quickfixj-codegenerator + ${project.version} + + + fix42 + + generate + + + ../quickfixj-messages-fix42/src/main/resources/FIX42.xml + quickfix.fix42 + quickfix.field + ${generator.decimal} + + + + + + + + + + generate-fix43 + + + fix43.spec.uptodate + false + + + + + + org.quickfixj + quickfixj-codegenerator + ${project.version} + + + fix43 + + generate + + + ../quickfixj-messages-fix43/src/main/resources/FIX43.xml + quickfix.fix43 + quickfix.field + ${generator.decimal} + + + + + + + + + + generate-fix44 + + + fix44.spec.uptodate + false + + + + + + org.quickfixj + quickfixj-codegenerator + ${project.version} + + + fix44 + + generate + + + ../quickfixj-messages-fix44/src/main/resources/FIX44.modified.xml + quickfix.fix44 + quickfix.field + ${generator.decimal} + + + + + + + + + + generate-fix50 + + + fix50.spec.uptodate + false + + + + + + org.quickfixj + quickfixj-codegenerator + ${project.version} + + + fix50 + + generate + + + ../quickfixj-messages-fix50/src/main/resources/FIX50.xml + quickfix.fix50 + quickfix.field + ${generator.decimal} + + + + + + + + + + generate-fix50sp1 + + + fix50sp1.spec.uptodate + false + + + + + + org.quickfixj + quickfixj-codegenerator + ${project.version} + + + fix50sp1 + + generate + + + ../quickfixj-messages-fix50sp1/src/main/resources/FIX50SP1.modified.xml + quickfix.fix50sp1 + quickfix.field + ${generator.decimal} + + + + + + + + + + generate-fix50sp2 + + + fix50sp2.spec.uptodate + false + + + + + + org.quickfixj + quickfixj-codegenerator + ${project.version} + + + fix50sp2 + + generate + + + ../quickfixj-messages-fix50sp2/src/main/resources/FIX50SP2.modified.xml + quickfix.fix50sp2 + quickfix.field + ${generator.decimal} + + + + + + + @@ -243,109 +520,7 @@ - - org.quickfixj - quickfixj-codegenerator - ${project.version} - - - fix40 - - generate - - - ../quickfixj-messages-fix40/src/main/resources/FIX40.xml - quickfix.fix40 - quickfix.field - ${generator.decimal} - - - - fix41 - - generate - - - ../quickfixj-messages-fix41/src/main/resources/FIX41.xml - quickfix.fix41 - quickfix.field - ${generator.decimal} - - - - fix42 - - generate - - - ../quickfixj-messages-fix42/src/main/resources/FIX42.xml - quickfix.fix42 - quickfix.field - ${generator.decimal} - - - - fix43 - - generate - - - ../quickfixj-messages-fix43/src/main/resources/FIX43.xml - quickfix.fix43 - quickfix.field - ${generator.decimal} - - - - fix44 - - generate - - - ../quickfixj-messages-fix44/src/main/resources/FIX44.modified.xml - quickfix.fix44 - quickfix.field - ${generator.decimal} - - - - fix50 - - generate - - - ../quickfixj-messages-fix50/src/main/resources/FIX50.xml - quickfix.fix50 - quickfix.field - ${generator.decimal} - - - - fix50sp1 - - generate - - - ../quickfixj-messages-fix50sp1/src/main/resources/FIX50SP1.modified.xml - quickfix.fix50sp1 - quickfix.field - ${generator.decimal} - - - - fix50sp2 - - generate - - - ../quickfixj-messages-fix50sp2/src/main/resources/FIX50SP2.modified.xml - quickfix.fix50sp2 - quickfix.field - ${generator.decimal} - - - - + org.apache.maven.plugins @@ -419,7 +594,193 @@ org.codehaus.mojo build-helper-maven-plugin + + + check-fix40-spec + generate-sources + + uptodate-property + + + fix40.spec.uptodate + + ../quickfixj-messages-fix40/src/main/resources + ../quickfixj-messages-fix40/target + + FIX40.xml + + + glob + FIX40.xml + quickfixj-messages-fix40-${project.version}.jar + + + + + + + check-fix41-spec + generate-sources + + uptodate-property + + + fix41.spec.uptodate + + ../quickfixj-messages-fix41/src/main/resources + ../quickfixj-messages-fix41/target + + FIX41.xml + + + glob + FIX41.xml + quickfixj-messages-fix41-${project.version}.jar + + + + + + + check-fix42-spec + generate-sources + + uptodate-property + + + fix42.spec.uptodate + + ../quickfixj-messages-fix42/src/main/resources + ../quickfixj-messages-fix42/target + + FIX42.xml + + + glob + FIX42.xml + quickfixj-messages-fix42-${project.version}.jar + + + + + + + check-fix43-spec + generate-sources + + uptodate-property + + + fix43.spec.uptodate + + ../quickfixj-messages-fix43/src/main/resources + ../quickfixj-messages-fix43/target + + FIX43.xml + + + glob + FIX43.xml + quickfixj-messages-fix43-${project.version}.jar + + + + + + + check-fix44-spec + generate-sources + + uptodate-property + + + fix44.spec.uptodate + + ../quickfixj-messages-fix44/src/main/resources + ../quickfixj-messages-fix44/target + + FIX44.modified.xml + + + glob + FIX44.modified.xml + quickfixj-messages-fix44-${project.version}.jar + + + + + + + check-fix50-spec + generate-sources + + uptodate-property + + + fix50.spec.uptodate + + ../quickfixj-messages-fix50/src/main/resources + ../quickfixj-messages-fix50/target + + FIX50.xml + + + glob + FIX50.xml + quickfixj-messages-fix50-${project.version}.jar + + + + + + + check-fix50sp1-spec + generate-sources + + uptodate-property + + + fix50sp1.spec.uptodate + + ../quickfixj-messages-fix50sp1/src/main/resources + ../quickfixj-messages-fix50sp1/target + + FIX50SP1.modified.xml + + + glob + FIX50SP1.modified.xml + quickfixj-messages-fix50sp1-${project.version}.jar + + + + + + + check-fix50sp2-spec + generate-sources + + uptodate-property + + + fix50sp2.spec.uptodate + + ../quickfixj-messages-fix50sp2/src/main/resources + ../quickfixj-messages-fix50sp2/target + + FIX50SP2.modified.xml + + + glob + FIX50SP2.modified.xml + quickfixj-messages-fix50sp2-${project.version}.jar + + + + + + add-source process-sources add-source From 6a275156f7767da2c3dfe3cc6397b865e47d6891 Mon Sep 17 00:00:00 2001 From: Christoph John Date: Fri, 12 Sep 2025 11:56:57 +0200 Subject: [PATCH 2/2] Update pom.xml --- quickfixj-messages/quickfixj-messages-all/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickfixj-messages/quickfixj-messages-all/pom.xml b/quickfixj-messages/quickfixj-messages-all/pom.xml index dd7833d937..21e58a966d 100644 --- a/quickfixj-messages/quickfixj-messages-all/pom.xml +++ b/quickfixj-messages/quickfixj-messages-all/pom.xml @@ -141,7 +141,7 @@ fix40.spec.uptodate - false + true