Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse and SVN: Missing .project file

Tags:

java

eclipse

svn

I'm working on a uni project with a few other people using SVN. Much to my annoyance the .project file was removed from the repository since "it contains platform specific information". However, this has obviously broken my setup in Eclipse, giving me the error:

Problems occurred opening the selected resources. The project description file (.project) for '_________' is missing. This file contains important information about the project. The project will not function properly until this file is restored.

Any suggestions? Thank you.

like image 847
DHC Avatar asked Dec 17 '25 18:12

DHC


2 Answers

Simply revert the project to a revision that featured the .project file, then put in .svnignores and to back to the current revision again. Or even simpler:

svn cp -r15 .project .project

Where the number after -r is a revision featuring the .project file.

like image 106
Bozhidar Batsov Avatar answered Dec 20 '25 06:12

Bozhidar Batsov


.project files don't belong in an SCM, they contain developer-specific information. Common configuration belongs in some standardized file like (e.g.) a maven pom.xml, from which a .project file is automatically generated, but things like .project, .settings, .classpath should always be in svn:ignore, which means you can keep your own copy without overwriting others

like image 44
Sean Patrick Floyd Avatar answered Dec 20 '25 06:12

Sean Patrick Floyd



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!