3
I am unable to use the interfaces of an EJB-client generated by Maven.
I have basically two separate projects with different functions. An EAR containing EJB’s and a WAR using EJB’s interfaces from the EAR package.
Follows structure:
- EAR - 1.2 - EJB 
- WAR (with EJB-client dependency). 
When I compile WAR it comes with all classes of the EJB module and not only with the interfaces necessary for its use.
Follows pom.xml of the WAR project:
<dependency>
  <groupId>br.com</groupId>
  <artifactId>dependencia-ejb</artifactId>
  <version>1.0.0-SNAPSHOT</version>
  <type>ejb-client</type>
</dependency>