From: Tim F. (JIRA) <ji...@co...> - 2010-09-27 21:25:40
|
[ http://jira.codehaus.org/browse/JIBX-399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=236640#action_236640 ] Tim Friske commented on JIBX-399: --------------------------------- When commenting the above configuration and specifying the customization file insteads with <option> <!----> <c>jibxCustomization_*.xml</c> <!----> </option> the command line tool mvn aborts with [INFO] Generating Java sources in target/generated-sources from schemas available in src/main/resources/META-INF/xmlSche mas... Output to directory target\generated-sources [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Parameter c not found [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 second [INFO] Finished at: Mon Sep 27 23:24:07 CEST 2010 [INFO] Final Memory: 6M/13M [INFO] ------------------------------------------------------------------------ > Apache Maven goal schema-codegen does not pass customizations to CodeGen correctly > ---------------------------------------------------------------------------------- > > Key: JIBX-399 > URL: http://jira.codehaus.org/browse/JIBX-399 > Project: JiBX > Issue Type: Bug > Components: maven plugin > Affects Versions: JiBX 1.2.2 > Environment: Windows XP; java version "1.6.0_13" > Reporter: Tim Friske > Priority: Critical > Attachments: goal-exec-schema-codegen-frag.xml > > > When configuring the Apache Maven goal schema-codegen with > <customizations> > <!----> > <customization>jibxCustomization_*.xml</customization> > <!----> > </customizations> > the command line tool mvn aborts with > [INFO] Generating Java sources in target/generated-sources from schemas available in src/main/resources/META-INF/xmlSchemas... > Command line options must precede all other arguments: error on '-c' > Usage: java org.jibx.schema.codegen.CodeGen [options] schema1 schema2 ... > where options are: > -b name generated root binding name > -c path input customizations file > -d file for dumping the generated class structure > -i path,... include existing bindings (one or more), and use for matching > schema global definitions > -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) > -u uri namespace applied for code generation when no-namespaced schemas > are found > -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 -- 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 |