Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Best approach to Eclipse for shared projects?
Best approach to Eclipse for shared projects? [message #1403777] Sat, 26 July 2014 21:43 Go to next message
Christian Convey is currently offline Christian ConveyFriend
Messages: 1
Registered: July 2014
Junior Member
I'm pretty new to Eclipse, and completely new to Eclipse+Git as a combination.

Can anyone tell me if there's a known-good solution to the following problem?

I'm developing some Java code that I want to store on github. I want that code to be easily buildable by other persons who aren't using Eclipse. But I'd like to be able to use Eclipse when I'm working on that code.

My concern is that if I don't check my Eclipse project file into Git, I'll need to painfully create a new Eclipse project every time I do a clean checkout of the code.

But the obvious solution of storing my Eclipse project file in Git also wouldn't work (I think), because it would have settings that are peculiar to me, such as my SSH username.

I considered having the Java code use Maven for building, because I noticed that Eclipse has a Maven project import wizard. So I thought that wizard might be a way to pretty painlessly reconstruct (most of?) my Eclipse project file each time I wanted a clean checkout of the code from git. The downside to this is that even if it works, I'd rather not introduce the complexity of Maven at this point if I don't need to.

It's possible that because of my newness to Eclipse I'm misconceiving the problem, but any suggestions are welcome.
Re: Best approach to Eclipse for shared projects? [message #1403991 is a reply to message #1403777] Tue, 29 July 2014 01:51 Go to previous message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
On 07/27/2014 11:10 AM, Christian Convey wrote:
> I'm pretty new to Eclipse, and completely new to Eclipse+Git as a
> combination.
>
> Can anyone tell me if there's a known-good solution to the following
> problem?
>
> I'm developing some Java code that I want to store on github. I want
> that code to be easily buildable by other persons who aren't using
> Eclipse. But I'd like to be able to use Eclipse when I'm working on
> that code.
>
> My concern is that if I don't check my Eclipse project file into Git,
> I'll need to painfully create a new Eclipse project every time I do a
> clean checkout of the code.
> But the obvious solution of storing my Eclipse project file in Git also
> wouldn't work (I think), because it would have settings that are
> peculiar to me, such as my SSH username.
>
> I considered having the Java code use Maven for building, because I
> noticed that Eclipse has a Maven project import wizard. So I thought
> that wizard might be a way to pretty painlessly reconstruct (most of?)
> my Eclipse project file each time I wanted a clean checkout of the code
> from git. The downside to this is that even if it works, I'd rather not
> introduce the complexity of Maven at this point if I don't need to.
>
> It's possible that because of my newness to Eclipse I'm misconceiving
> the problem, but any suggestions are welcome.
Eclipse project files (.project and .classpath) are designed to be
shared and should be checked into git. They don't have your SSH
username in them. The files are just XML text files, so you can browse
them to confirm.

If you use linked folders/resources, you will want to make sure that
they are created using resource or classpath variables. This will allow
other people to easily work with your projects.
Previous Topic:Swing Designer not working properly
Next Topic:Eclipse compiler doesn't like method references with overloaded varargs method
Goto Forum:
  


Current Time: Thu Apr 25 20:22:03 GMT 2024

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

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

Back to the top