From: Colin D. <co...@ma...> - 2022-12-09 17:33:04
|
I’m curious what the purpose of doing this is. Not saying there isn’t one, just that I don’t understand it. Since OP was using the build I produced, I’m wondering if there’s a flaw there I was not aware of. > On Dec 9, 2022, at 9:11 AM, Christoph John via Quickfixj-users <qui...@li...> wrote: > > QFJ Documentation: http://www.quickfixj.org/documentation/ > QFJ Support: http://www.quickfixj.org/support/ > > > Hi > Hmm don't know by heart where the problem might be but did you compare how this is done in the QFJ project itself? QFJ uses the same plugin after all. > Cheers > Chris > > Dec 9, 2022 14:46:02 Geoffrey Gershaw <gge...@ho...>: > > 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... > https://lists.sourceforge.net/lists/listinfo/quickfixj-users Colin DuPlantis Chief Architect, Marketcetera Download, Run, Trade https://www.marketcetera.com |