title: building api only artifact with maven
body: <p>Given our maven projet provides some api for clients to interact with it, those are just few java interfaces which are implemented in interal codebase... </p>
  
  <p>Now if we just build the jar and publish it anyone can see the internal classes we used for implementation, yet we only need few java interfaces to be published (along with few DTO classes maybe)...</p>
  
  <p>Is it possible to pick exactly which java files we want to build jar for and create two artifacts like (product.jar/war and product-api.jar)</p>
  
  <p>Prupose is to limit possible misuse of the code by other teams...</p>