title: Maven - how to build a jar for every java package
body: <p>Is it possible to build a jar for every java package in a project?</p>
  
  <p>e.g. my packages are <code>com.mypackage.foo, com.mypackage.bar</code> both packages are in one project.
  Can i now start a maven build to get a foo.jar and a bar.jar?</p>
  
  <p>Thanks 4 the help.</p>
  
  <p><strong>EDIT:</strong> Okay, I think you need some more informations why I am asking that.
  I have a project which is divided in two parts (a library and a daemon) and both parts must be runnable independent from each other, so I want to use a own jar for each part.
  I was thinking about a "parent project" that includes the two parts as modules like some of you suggested (is that a nicer way?).
  The next point is that I have only one git repo in that I want to commit the whole project. Is it possiple to place the modules projects content in the parent project like <code>src/lib/java</code> or how I have to do that?</p>