Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JiBX 1.1.6, JiBX 1.2.1
-
Fix Version/s: JiBX 1.2.2
-
Component/s: maven plugin
-
Labels:None
-
Environment:jdk 1.6_12, windows
-
Number of attachments :
Description
I have two project: dsk-model and dsk-binding. In dsk-model is only one tested class. In dsk-binding is mapping file for it (have dependency to dsk-model).
When I try compile dsk-binding then get error
D:\Workspaces\maven\DSK\dsk-binding>set JAVA_HOME=C:\Progra~1\Java\jdk1.6.0_12\
Scanning for projects...
------------------------------------------------------------------------
Building dsk-binding
task-segment: [clean, install]
------------------------------------------------------------------------
[clean:clean]
[resources:resources]
Using default encoding to copy filtered resources.
snapshot dsk:dsk-model:0.1-SNAPSHOT: checking for updates from snapshots-skg
snapshot dsk:dsk-model:0.1-SNAPSHOT: checking for updates from snapshots-mirror-in-skg
[compiler:compile]
Nothing to compile - all classes are up to date
[jibx:bind
]
Running JiBX binding compiler (single-module mode) on 1 binding file(s)
Running binding compiler version jibx_1_2_1
binding Simple_binding:
context (mp#=1) (cv#=0) (fm#=0)
mapping class com.dsk.test.Simple to element Simple
context (ns#=1) (cv#=0) (fm#=0)
namespace http://rep.xmlstandards.eu/dsk/Simple.xsd (default elements)
element wrapper Simple
object binding for com.dsk.test.Simple create class com.dsk.test.Simple
structure ordered
element wrapper Header
------------------------------------------------------------------------
[ERROR]BUILD ERROR
------------------------------------------------------------------------
-
-
- Error during code generation for file 'D:\Workspaces\maven\DSK\dsk-binding\src\main\resources\bindings\Simple-binding.xml' - please enter a bug report for this error in Jira if the problem is not listed as fixed on the online status page ***
-
------------------------------------------------------------------------
For more information, run Maven with the -e switch
------------------------------------------------------------------------
Total time: 3 seconds
Finished at: Tue Mar 31 21:23:07 CEST 2009
Final Memory: 6M/12M
------------------------------------------------------------------------
From other side when I move class from dsk-model to dsk-binding then all works fine.
Activity
| Field | Original Value | New Value |
|---|---|---|
| Resolution | Fixed [ 1 ] | |
| Fix Version/s | JiBX 1.2.2 [ 15120 ] | |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Assignee | Dennis Sosnoski [ dsosnoski ] |
| Status | Resolved [ 5 ] | Closed [ 6 ] |
Ok, I found where is a problem.
During binding processing you modify source of base class. This is reason why you must have it in this same project.
But this is very bad information for me.
I have domain object model which can't be modify. Now I must create a lot of value object for it
Close this issue.