Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying Dependent Projects to Tomcat via WTP

We are currently using MyEclipse to deploy our projects to Tomcat during development. We would like to dump MyEclipse and switch to WTP. I am using Eclipse 3.7.

Our project layout has a 'web' project and a 'modules' project.

I would like to be able to have each project have its own ivy file declaring its dependencies using IvyDE to create an Eclipse Library of those jars depended upon and have those jars deployed to WEB-INF/lib and the classes from each project deployed to WEB-INF/classes.

I have tried declaring the 'modules' project as a "Utility Module" and the jars from its ivy.xml file as as a part of the Deployment Assembly to WEB-INF/lib and then adding the 'modules' projects to the Deployment Assembly of the 'web' project but what I get is a jar called 'modules.jar' in the WEB-INF/lib of the 'web' project that has the jars for the 'modules' project in its (i.e. modules.jar) WEB-INF/lib directory.

Is it possible to get WTP to deploy from the application structure I have to the deployment layout I want or would I have to reorganize my two projects into one? If so, how would I do it?

like image 402
Victor Avatar asked Nov 05 '22 07:11

Victor


1 Answers

I don't know if this will help, I don't understand your question fully.

You can tell ivyDe to download all jars to a specific directory.

  1. check the "Do retrieve ..." Box
  2. put the relative Path to your WEB-INF/lib into the retrieve pattern like:

    resources/WEB-INF/lib/[artifact]-[type]-[revision].[ext]

enter image description here

like image 105
oers Avatar answered Nov 09 '22 07:11

oers