title: wsdl2java - how to ignore specific schema in cxf-codegen-plugin and add dependency
body: <p>See below, I have 3 projects as mentioned.</p>
  
  <pre><code>Common
      Age.xsd (namespace: http://xmlns.common/age)
      generated/common/xmlns/age/AgeType.java
      pom.xml (cxf-xjc-plugin xsdtojava)
  
  
  Person
      PersonService.wsdl (imports Age.xsd in wsd:types)
      generated/com/person/AgeType.java
      pom.xml (cxf-codegen-plugin wsdl2java)
  
  Animal
      AnimalService.wsdl (imports Age.xsd in wsd:types)
      generated/com/animal/AgeType.java
      pom.xml (cxf-codegen-plugin wsdl2java)
  </code></pre>
  
  <p>Both <code>AnimalService.wsdl</code> and <code>PersonService.wsdl</code> imports the Age.xsd schema as mentioned below:</p>
  
  <pre><code>&lt;wsdl:definitions xmlns:cn="http://xmlns.common/age"
  &lt;wsdl:types&gt;
      &lt;xsd:schema&gt;
      &lt;xsd:import
          namespace="http://xmlns.common/age"
           schemaLocation="classpath:/common/xmlns/age/Age.xsd" /&gt;
      &lt;/xsd:import&gt;
      &lt;/xsd:schema&gt;
       &lt;!-- cn:AgeType used in output message --&gt;
      &lt;!-- ignored --&gt;
      &lt;/wsdl:definitions&gt;
  </code></pre>
  
  <p>Question:</p>
  
  <p>How to tell <code>cxf-codegen wsdl2java</code> to <strong>do not generate code for</strong> AgeType (which is in  namespace <a href="http://xmlns.common/age" rel="nofollow">http://xmlns.common/age</a>) and use common.xmlns.age.AgeType instead of com.person.AgeType and com.animal.AgeType in respective projects by supplying the <code>Common</code> project as dependency? </p>