From: Don C. (JIRA) <ji...@co...> - 2010-09-28 16:44:40
|
[ http://jira.codehaus.org/browse/JIBX-399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=236749#action_236749 ] Don Corley commented on JIBX-399: --------------------------------- Tim, The maven-jibx-plugin has been re-written for version 1.2.3 (which should be out within the next few weeks). This release will fix your problem. To use the new code, please check it out of the cvs dev repository and build it. ie., type: cvs -z3 -d:pserver:ano...@ji...:/cvsroot/jibx co -P maven-jibx-plugin cd maven-jibx-plugin (or dir maven-jibx-plugin if you are using windows) mvn install mvn site (this will install the new documentation on your hard disk at target/site (ignore any warnings) This will overwrite your maven-jibx-plugin version 1.2.2 with the new code. Now try to build your maven project. It should work as expected. Thanks, Don > 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 > Assignee: Don Corley > 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 |