[ http://jira.codehaus.org/browse/JIBX-331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=205335#action_205335 ]
Guido Schmutz commented on JIBX-331: ------------------------------------ any plans when this fix will be applied? > No way to customize the jibx "schema-codegen" goal in the maven-jibx-plugin > 1.2.1.1 > ----------------------------------------------------------------------------------- > > Key: JIBX-331 > URL: http://jira.codehaus.org/browse/JIBX-331 > Project: JiBX > Issue Type: Bug > Components: maven plugin > Affects Versions: JiBX 1.2.1 > Reporter: Guillaume CERNIER > Fix For: JiBX 1.2.1 > > Attachments: SchemaCodeGenMojo.java.patch > > > It seems that it's currently impossible to customize the code generation > feature as documented in the maven-jibx-plugin (schema-codegen goal). > When trying with the <customizations> tag as following (for example) : > ---------------------------------------------------------------------------------------------------------------------------------- > <configuration> > <customizations> > <path> > > ../generation-config/${schema.provider}/${schema.version}/jibx.xml > </path> > </customizations> > > <directory>../generation-schemas/${schema.provider}/${schema.version}</directory> > <includes> > <include>${schema.includePattern}</include> > </includes> > <verbose>true</verbose> > </configuration> > ---------------------------------------------------------------------------------------------------------------------------------- > we get the following error : > ---------------------------------------------------------------------------------------------------------------------------------- > Command line options must precede all other arguments: error on '-c' > Usage: java org.jibx.schema.codegen.CodeGen [options] schema1 schema2 ... > where options are: > -c path input customizations file > -d file for dumping the generated class structure > -n pack default package for no-namespace schema definitions > -p pack default package for all schema definitions > -s schema root directory path > -t path target directory for generated output (default is current directory) > -v verbose output flag > -w wipe all existing files from generation directory (ignored if > current > directory) > The schema# files are different schemas to be included in the generation > (references from these schemas will also be included). > Terminating due to command line or customization errors > ---------------------------------------------------------------------------------------------------------------------------------- > and by the <options> tag (which is supposed to manage the same options as the > CLI ones, e.g. -c -d -n -p ....) : > ---------------------------------------------------------------------------------------------------------------------------------- > <configuration> > <options> > > <c>../generation-config/${schema.provider}/${schema.version}/jibx.xml</c> > </options> > > <directory>../generation-schemas/${schema.provider}/${schema.version}</directory> > <includes> > <include>${schema.includePattern}</include> > </includes> > <verbose>true</verbose> > </configuration> > ---------------------------------------------------------------------------------------------------------------------------------- > we get this one : > ---------------------------------------------------------------------------------------------------------------------------------- > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Parameter c not found > ---------------------------------------------------------------------------------------------------------------------------------- > and have no idea of which parameter tags are allowed as child of the > <options> tag -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ jibx-devs mailing list jibx-devs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-devs