What files should be committed to github for an eclipse project

blue-sky picture blue-sky · Oct 3, 2012 · Viewed 9k times · Source

What files should I commit to github so that its a valid Eclipse project ?

I am just committing my source files and packages but when I try to re-create the project I receive this error 'no projects found' :

enter image description here

I think I need to also commit the .project file ?

Answer

mmounirou picture mmounirou · Oct 3, 2012

You need to commit your:

  • .settings dir
  • .classpath file
  • .project file

The better idea will be to use maven for your project so that you will have a common configuration for all the IDEs (eclipse, netbeans, ideaj ...) and no need to push your eclipse specific configuration.