I am not able to use the interfaces of an EJB-client generated by Maven.
I have basically 2 separate projects with different functions. An EAR that contains EJB's and a WAR that uses EJB's interfaces to the EAR package.
Following structure:
EAR
1.2 - EJB
WAR (with EJB-client dependency).
When compiling the WAR it comes with all classes of the EJB module and not only with the interfaces needed for its use.
Following 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>