Eclipse WTP deployment of build path dependencies

半世苍凉 提交于 2019-12-07 21:24:10

问题


I have an Eclipse project that is dependent on other projects (Project Properties/Java Build Path/Projects), and these other projects export their own libraries (Project Properties/Java Build Path/Order and Export).

Is there a way to get Eclipse WTP and/or JBoss Tools to include the dependent project's exported files in a deployment?

I can add the jars individually via the Deployment Assembly but I don't want to duplicate the configuration.

We currently use MyEclipse for this but we're trying to get away from it for other reasons.

Craig


回答1:


Let's say your projects are called "util" for the one that is included and "web" for the downstream one.

  1. In util, go to Deployment Assembly page under project properties. Hit Add and select "Java Build Path Entries" option. Select jars that are on util project's build path that should packaged with it.

  2. In web, go to Build Path page and remove dependency on util. That's not how you want that dependency setup.

  3. Again in web, go to Deployment Assembly page and select Project option. Pick util on the next page. After add, you can see on the Deployment Assembly page an entry for util that you can expand to see everything else that will also be included.



来源:https://stackoverflow.com/questions/4764275/eclipse-wtp-deployment-of-build-path-dependencies

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!