[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.webtools] Including Java project output in EJB JAR file

I have the following projects in Eclipse:

Common-Data - project containing common data objects

Common-EJB - project containing common EJB objects, not itself an EJB project (depends on Common-Data)

Project1-Data - project containing data objects for Project1 (depends on Common-Data)

Project1-EJB - project containing EJB objects for Project1 (depends on Common-Data, Common-EJB, and Project1-Data)

Project2-Data - project containing data objects for Project2 (depends on Common-Data)

Project2-EJB - project containing EJB objects for Project2 (depends on Common-Data, Common-EJB, and Project1-Data)

All dependencies are setup on the "Projects" tab of "Java Build Path". However, the EJB JAR files that get built do not include any of the dependencies and so cannot be deployed.

I tried using linked sources instead, but that creates synchronization problems when a common file changes in one project and the changes aren't detected in another, so the workspace doesn't always rebuild properly.

How can I set things up so that, when I build Project1-EJB, it includes all the *.class files from its dependencies?