title: How do I avoid jsonschema2pojo generating duplicate classes that I already have?
body: <p>I have a jsonschema file defining a class that I need as a child class of an already existing POJO (not defined by a schema)</p>
  
  <p>As I found on the jsonschema2pojo documentation, the way to do it is:</p>
  
  <pre><code>{
  ...
  "type": "object",
  "extends": {
    "type": "object",
    "javaType": "com.example.Document"
  },
  "properties": { ... }
  </code></pre>
  
  <p>However, when I run maven clean install, the compilation fails because it tries to generate its own Document class (with the <code>@Json...</code> annotations and so on) and Maven throws this error</p>
  
  <pre><code>error: duplicate class: com.example.Document
  </code></pre>
  
  <p>According to the docs, the plugin shouldn't try to generate a class that already exists. How can I avoid this?</p>