I have this following directory structure

```
Root
   CommonSchema
      1.xsd
      2.xsd

   Service1
      XSD
        3.xsd ( importing 1 and 2 xsd )
      WSDL
        A.wsdl ( importing 3.xsd )

   Service2
      XSD
        4.xsd ( importing 1 and 2 xsd )
      WSDL
        B.wsdl ( importing 4.xsd )

```

I'm trying to generate the source and compiling them into a single jar using XMLBeans+CXF. 
CommonSchema folder has schemas that shared by Service1 and 2. 

When I try to generate the source source, it seems that the source of 1 and 2 xsd has a naming conflict, that can be seen below :

**First WSDL Generation**

![enter image description here](https://i.stack.imgur.com/EpwcV.png)

**Second WSDL Generation**

![enter image description here](https://i.stack.imgur.com/1k8qm.png)

Any idea on how should I compile this common schema?

Here is my Ant Script :

```
<target name="cxfWSDLToJava">
  <java classname="org.apache.cxf.tools.wsdlto.WSDLToJava" fork="true">
    <arg value="-databinding"/>
    <arg value="xmlbeans"/>
    <arg value="-client"/>
    <arg value="-d"/>
    <arg value="cxfsrc"/>
    <arg value="D:\Generation\Services\CBS-CustAccountInfo-I\WSDL\CBS-CustAccountInfo-I-Concrete.wsdl"/>
    <classpath>
      <path refid="cxf.classpath"/>
    </classpath>
  </java>
</target>

<target name="cxfWSDLTXNToJava">
  <java classname="org.apache.cxf.tools.wsdlto.WSDLToJava" fork="true">
    <arg value="-databinding"/>
    <arg value="xmlbeans"/>
    <arg value="-client"/>
    <arg value="-d"/>
    <arg value="cxfsrc"/>
    <arg value="D:\Generation\Services\CBS-DirectDebCredTransfer-C\WSDL\CBS-DirectDebCredTransfer-C-Concrete.wsdl"/>
    <classpath>
      <path refid="cxf.classpath"/>
    </classpath>
  </java>
</target>

```

my project is located at : [here](https://www.dropbox.com/sh/chiq6oi5uk91i66/X-OQtVnL91) under CXF-Generation.

the whole schema + WSDL can be found under CXF-Generation/Generation