I have a fairly large legacy module which contains both EJB 3.0 and some business logic classes. I am trying to convert the build process to use maven and am having difficulty configuring the maven-ejb-plugin
.
I'm trying to generate the client EJB package using the maven-ejb-plugin, but notice that the client package contains all the business logic classes as well - even if they are not referenced by the EJBs.
My current configuration is: org.apache.maven.plugins maven-ejb-plugin default-ejb ${project.build.outputDirectory} ejb 3.0 true
Unfortunately, there is not a very clear separation of packages for business classes/models/DTOs so it is a not easy to pinpoint exactly which EJBs depend on which classes.
Is there a mechanism in the maven-ejb-plugin
to instruct maven to only include the require EJB interfaces/implementations & dependent classes in the client package and ignore/skip everything else? Or do I have to manually figure out exactly what dependent classes are required by the individual interfaces and configure the plugin to only include those files?