Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How to merge several projects into one in Eclipse.(How can we make serveral projects into one project.)
How to merge several projects into one in Eclipse. [message #1495593] Tue, 02 December 2014 10:43 Go to next message
Berry Roest is currently offline Berry RoestFriend
Messages: 1
Registered: December 2014
Junior Member
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! Smile

Re: How to merge several projects into one in Eclipse. [message #1497691 is a reply to message #1495593] Thu, 04 December 2014 00:31 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

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.
Previous Topic:Re: Eclipse preloading wrong JDBC driver without asking
Next Topic:Using Eclipse Luna on Mac OS X Lion without JDK
Goto Forum:
  


Current Time: Wed Apr 24 18:29:57 GMT 2024

Powered by FUDForum. Page generated in 0.08572 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top