Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: JiBX 1.2.2
-
Fix Version/s: JiBX 1.2.3
-
Component/s: maven plugin
-
Labels:None
-
Environment:Windows XP; java version "1.6.0_13"
-
Number of attachments :
Description
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
Issue Links
- duplicates
-
JIBX-331
No way to customize the jibx "schema-codegen" goal in the maven-jibx-plugin 1.2.1.1
-
Activity
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Don Corley [ doncorley ] |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Fix Version/s | JiBX 1.2.3 [ 16349 ] | |
| Resolution | Fixed [ 1 ] |
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] ------------------------------------------------------------------------