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 ;))