|
Re: How to merge several projects into one in Eclipse. [message #1497691 is a reply to message #1495593] |
Thu, 04 December 2014 00:31 |
|
On 12/02/2014 07:07 AM, Berry Roest wrote:
> Good day all.
>
> First, i'm kinda new to Eclips. Now i'm facing the following problem. We
> got serveral projects that we wanna merge into one project and export
> that into a .war file so we can use it for Jahia. But i can't find a way
> to do it.
>
> So i'm asking if anyone can help me out how to merge those projects? I
> been searching on the internet for a while but i haven't found the right
> solution yet.
>
> Thanks! :)
There are a couple of ways to do this, but it's been years since I did it.
First, the most obvious, is to restructure your source code into one
project. I assume you don't want to do that.
Second, I have to assume that the project INTO WHICH you want to merge
the others happens to be a Dynamic Web Project (as opposed to a mere
Java Project--these are different things in Eclipse).
To do this, in your DWP:
1. Right-click on the project root in the Package/Project Explorer.
2. Choose Build Path -> Configure Build Path.
3. Click on the Libraries tab.
4. Click Add Library... button.
5. Select Web App Libraries and click Next.
6. Select the project whose code you would like to include in this
project as a library.
This is where it gets a little foggy for me (since it goes back to circa
2008). It might be that the other projects must themselves be DWPs too,
but maybe not. I believe you must be JARing up those other projects and
that JAR is what this method consumes.
You can probably get better helps in the Eclipse Web Tools Project (WTP)
forum.
Best of luck.
|
|
|
Powered by
FUDForum. Page generated in 0.08572 seconds