score:2

Accepted answer

a good example i like to use, is my getting started with selenium project.

this is a maven enabled java project that is hosted on github.

but when checked it out, with egit, to my computer all the folders are now packages.

this is because of your .classpath. if a source folder is added, (like src/main/java) any subsequent folders will be "packages".

how are you uploading a java project to github?

just as you see in the project above. upload everything, except binaries, and jar dependencies. (which is why i use maven)

are there any difficulties which we are not aware of right now?

where i work, we use a process in which our projects on github are entire java projects. i've heard that it's bad to upload eclipse specific things like .project, but even individuals who use intellij idea, it doesn't seem to be an issue, because they can just upload their .file.

one thing to keep in mind, is your .gitignore. make sure that /target/classes/* and other java specific compilations are avoided as you want your repo to be only source code. (one thing i did forget to do on that project above.. will fix ;))

score:0

i'd rather not upload .projects or .idea files while uploading projects to vcs system (git or not).

i add these folders to my .gitignore file (wich i upload to vcs)

regards.


Related Query

More Query from same tag