title: Specifying an ejb client as dependency in Maven
body: <p>I have 2 EJBs A and B (in different jar files), EJB A calls one method of EJB B.</p>
  
  <p>From the following Maven's documents, I use generateClient to create a ejb-client and use ejb-client dependency to get the jar.
  <a href="http://maven.apache.org/plugins/maven-ejb-plugin/examples/generating-ejb-client.html" rel="nofollow">http://maven.apache.org/plugins/maven-ejb-plugin/examples/generating-ejb-client.html</a>
  http://people.apache.org/~aramirez/maven-ejb-plugin/examples/ejb-client-dependency.html</p>
  
  <p>It's ok to use Maven to build, deploy and run. The problem is, although project A only needs the interface class of EJB B, but Maven includes all EJB B's dependency libraries into EJB A's dependency. The result is EJB A will have lots of non-necessary jar files. Is there any solution to fix it?</p>