title: JAXB class generation for Amazon Product.xsd not working
body: <p>When generating Java classes from the Products.xsd using JAXB and it's maven plugin I get the following warnings and errors</p>
  
  <pre><code>org.xml.sax.SAXParseException; systemId: https://images-na.ssl-images-amazon.com/images/G/01/rainier/help/xsd/release_1_9/amzn-base.xsd; lineNumber: 956; columnNumber: 45; Simple type "ProcessorTypeValues" was not mapped to Enum due to EnumMemberSizeCap limit. Facets count: 744, current limit: 256. You can use customization attribute "typesafeEnumMaxMembers" to extend the limit.
    at com.sun.tools.xjc.reader.xmlschema.ErrorReporter.warning(ErrorReporter.java:88)
  ...
  Error while generating code.Location [ https://images-na.ssl-images-amazon.com/images/G/01/rainier/help/xsd/release_1_9/SWVG.xsd{300,40}].
    org.xml.sax.SAXParseException; systemId: https://images-na.ssl-images-amazon.com/images/G/01/rainier/help/xsd/release_1_9/SWVG.xsd; lineNumber: 300; columnNumber: 40; A class/interface with the same name "generated.BBFCRatingType" is already in use. Use a class customization to resolve this conflict.
  </code></pre>
  
  <p>After I was able to fix this, I got errors like:</p>
  
  <pre><code>.../target/generated-sources/xjc/generated/Home.java:[2737,45] cannot find symbol
    symbol:   class Home
    location: class generated.Home.ProductType
  .../target/generated-sources/xjc/generated/Home.java:[2929,23] class generated.Home is already defined in package generated
  </code></pre>
  
  <p>I've seen many questions concerning this while googling, but no one proposed a proper solution.</p>