|
From: Colin D. <co...@ma...> - 2022-12-09 17:13:45
|
What is the goal of extracting the dictionary? What are the steps to reproduce your problem? > On Dec 9, 2022, at 5:44 AM, Geoffrey Gershaw <gge...@ho...> wrote: > > QFJ Documentation: http://www.quickfixj.org/documentation/ > QFJ Support: http://www.quickfixj.org/support/ > > > Hello, > > I'm hitting a compilation error on the classes generated by the quickfixj mvn plugin running against an unmodified 5.0sp2 fix dictionary found in the quickfixj-messages.jar. I have copied it from the jar and placed it in the resources dir of my project, which is a child module. > > Please find below the plugin configuration for the code-generator. The plugin is generating code that the compiler can't compile. I tried upgrading to 2.3.2-bd version, which is found on marketcetera, but I still see the error. I must be doing something wrong. > > There are 100 compilations errors. > > An example of the error is: > > > method getSecurityXML() is already defined in class org.gershaw.quickfixj.fix50sp2.component.Instrument > > A snippet of a class generated showcasing the error is: > > ` > public org.gershaw.quickfixj.fix50sp2.component.SecurityXML getSecurityXML() throws FieldNotFound { > return get(new org.gershaw.quickfixj.fix50sp2.component.SecurityXML()); > } > > public org.gershaw.quickfixj.fix50sp2.field.SecurityXML getSecurityXML() throws FieldNotFound { > return get(new org.gershaw.quickfixj.fix50sp2.field.SecurityXML()); > } > ` > > Dr. google found this old jira from a previous version that might be related: > https://www.quickfixj.org/jira/si/jira.issueviews:issue-html/QFJ-667/QFJ-667.html/ > > > Full project can be seen [here](https://github.com/ggershaw/Examples/tree/feature/msggenproblem) > > Snippet of the child pom's only plugin > > > <plugin> > <groupId>org.quickfixj</groupId> > <artifactId>quickfixj-codegenerator</artifactId> > <executions> > <execution> > <id>fixt11</id> > <goals> > <goal>generate</goal> > </goals> > <configuration> > <dictFile>src/main/resources/FIXT11-geoff.xml</dictFile> > <packaging>org.gershaw.quickfixj.fixt11</packaging> > <fieldPackage>org.gershaw.quickfixj.fixt11.field</fieldPackage> > </configuration> > </execution> > <execution> > <id>fix50sp2</id> > <goals> > <goal>generate</goal> > </goals> > <configuration> > <dictFile>src/main/resources/FIX50SP2.xml</dictFile> > <packaging>org.gershaw.quickfixj.fix50sp2</packaging> > <fieldPackage>org.gershaw.quickfixj.fix50sp2.field</fieldPackage> > </configuration> > </execution> > </executions> > </plugin> > > > > _______________________________________________ > Quickfixj-users mailing list > Qui...@li... <mailto:Qui...@li...> > https://lists.sourceforge.net/lists/listinfo/quickfixj-users Colin DuPlantis Chief Architect, Marketcetera Download, Run, Trade https://www.marketcetera.com |