title: maven create jar with pom
body: <p>I'm working on an Android project and have some core code(that has some dependencies) that i'd like to version and make into a library/artifact(?) that I can pull into other projects. I'm using Maven to build and my editor is IntelliJ. I've never created a .jar but I think that's what I want to do. </p>
  
  <p>In IntelliJ, i've gone to <strong>File</strong>-><strong>Project Structure</strong>-><strong>Artifacts</strong>-><strong>+</strong> but I'm lost. I don't know how to define which source directories and files to include in the jar and I'm unsure if I need to include the actual jars of its dependencies in the jar? or define those dependencies in a pom.xml file and include the pom.xml file in the jar? </p>
  
  <p>Any clarification would be much appreciated. </p>