facebook

Building EJB project with dependency

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #310428 Reply

    caseta
    Member

    Hi,

    I got an EJB project that has a dependency on a regular Java project (they are both Maven projects).
    When I build the EJB project I’d like to have the sources from the Java project compiled in the target dir of the EJB project.
    I added the Java project to the “Order and Export” in the Project Properties -> Java Build Path, but it still didn’t work.

    Actually the problem is that when deploying the EAR the classes in the Java project are not included in the deployment.

    Any ideas ?

    Thanks.

    #310454 Reply

    caseta,
    What are the deployment policies enabled for the EJB project? Can you go to window > preferences > MyEclipse > Java Enterprise Project EJB > Deployment Tab and verify if “Merge into EJB output Folder” is checked or not?
    Also, can you clarify if any project specific setting are enabled on your EJB project under project > Properties > MyEclipse > EJB?
    I would also recommend you to go through the following link for further reference –
    http://www.myeclipseide.com/documentation/quickstarts/earprojects/#advanced_features

    #310463 Reply

    caseta
    Member

    Hi,

    I had modified the project specific settings but it did not seem to work.
    When I changed the overall settings and “told” the project to follow them it worked.
    Also, at one point my EAR .project file became corrupted 🙁 but I fixed it. Now everything deploys as expected.

    Thx for the help.

    #310485 Reply

    caseta,
    Good to know that you are all set.
    Do let us know if you have any issues.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Building EJB project with dependency

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in