[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.webtools] Re: Exporting another project when publishing to a server

Instead of adding the Java project using the Java Build Path page of project Properties, use the J2EE Module Dependencies page. Checking the Java project there internally adds it to the build path and WTP will automatically do during publishing what you are doing manually, i.e. build a jar from the Java project's Java output and publish it to WEB-INF/lib.

Cheers,
Larry

Christoph wrote:
Hello,

I have a question. Ich have two projects one is a WTP project and the other is a simple java project. The WTP project depends on the simple java project. I add the depend project to the buildpath and eclipse find the classes.

The problem is when I publish the WTP project to a tomcat server the depended project is not publish to the server or isn't copied to the classes directory.

Is that a bug? When not how must I configure the projects that both are published.

I have a Workaround. I export the simple java project to a jar and copy the jar in the lib dir. But that is not a good solution.

Chris