title: maven: generating several "artifacts" with a same pom file?
body: <p>I have a project <a href="https://github.com/fge/json-schema-validator" rel="noreferrer">here</a> which, currently, uses one pom.xml (<a href="https://github.com/fge/json-schema-validator/blob/master/pom.xml" rel="noreferrer">link</a>) to generate one "artifact".</p>
  
  <p>What I'd like to do is split the project, let's call it p, into:</p>
  
  <ul>
  <li>p-core, which contains the core validation process;</li>
  <li>p-format, which contains the "format" keyword validation, which depends on p-core.</li>
  </ul>
  
  <p>The reason I want to do this is dependencies: p-format pulls in more than 70% of them in volume alone, and not many uses of JSON Schema require format support anyway.</p>
  
  <p>Do I need to build two entirely separate projects, or can I use one pom.xml to generate these two artifacts? I guess the latter is doable, since lots of projects already do that (Jackson, for example).</p>
  
  <p>[In the event that it would have any importance, I publish via Sonatype's maven repo]</p>