Home » Java » How do I use the weblogic-maven-plugin to generate EJB sources?

How do I use the weblogic-maven-plugin to generate EJB sources?

Posted by: admin October 26, 2017 Leave a comment

Questions:

Sorry for the newbie (in this field at least) & old topic question but I’ll post this and dig in the mean time…

We’re doing a ant to maven migration and need to generate an EJB jar out of provided classes, for instance:

GenericEntityEJB implements EntityBean 

has (among others) these imports:

import javax.ejb.EJBLocalHome;
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
import java.sql.Timestamp;


import weblogic.ejbgen.CmpField;
import weblogic.ejbgen.LocalMethod;

Especially the “weblogic.ejbgen” ones are giving a headache…

We think that the weblogic-maven-plugin is the way to go…

However, I’m not quite sure how to point to the right sources…
(or where to put those sources in the right “convention over configuration” place…)

the

<configuration>
             source>${project.build.directory}/${project.name}.
               ${project.packaging}</source>
</configuration>

“explanation” in the fore mentioned docs are not quite helping…

Does anyone can enlighten me on this ancient topic?

Thanks a bunch,

S.

Answers: