开发者

Eclipse WTP deployment of build path dependencies

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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜