title: Auto name resolution for jaxb plugin
body: <p>Is there anyway to do auto name resolution here. I don't want static classes hence using the bindings. but I am getting errors when generating pojo</p>
  <p>[ERROR] file:/C:/Projects/custom-mapping/transformer/src/main/resources/xsd/input2.xsd [71,51]
  org.xml.sax.SAXParseException: A class/interface with the same name &quot;com.mypack.mapper.model.input.TradePartner&quot; is already in use. Use a class customization to resolve this conflict.</p>
  <pre><code>&lt;plugin&gt;
              &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
              &lt;artifactId&gt;jaxb2-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.5.0&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;xjc&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
              &lt;configuration&gt;
                  &lt;packageName&gt;com.mypack.mapper.model.input&lt;/packageName&gt;
                  &lt;sources&gt;
                      &lt;source&gt;src/main/resources/xsd/input.xsd&lt;/source&gt;
                  &lt;/sources&gt;
                  &lt;xjbSources&gt;
                      &lt;xjbSource&gt;src/main/resources/xsd/binding.xjb&lt;/xjbSource&gt;
                  &lt;/xjbSources&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  </code></pre>
  <p>where binding.xjb is</p>
  <pre><code>&lt;jaxb:bindings
  xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot;
  xmlns:jaxb=&quot;http://java.sun.com/xml/ns/jaxb&quot;
  version=&quot;2.1&quot;&gt;
  &lt;jaxb:globalBindings localScoping=&quot;toplevel&quot;/&gt;&lt;/jaxb:bindings&gt;
  </code></pre>