I go through a little rigamarole every time I start a new project in Eclipse; I use a Subversion repository (locally, or on Apache, or on JavaForge) and I use the Subclipse plugin.
Subclipse is nice, but weakest on the things you do least often, such as creating a project.
I always start in the SVN Navigator; I create my new folder for my project.
I then share the project; I chose the "Use specified folder name". Next, I hit the browse button and select the folder I just created in the navigator.
Back to the Share Project dialog; the cursor will be in the folder name field, and the text "New Folder" will be selected, ready for me to type "trunk".
When I hit OK, we switch over the a synchronize dialog to do the initial checkin. The bin folder will be in the list of resources to check in ... simply uncheck it for now. Then hit OK to check everything else in.
Because you didn't check in the bin folder, your project will appear dirty. That's OK. Now comes the real trick:
- Execute a "Replace With Latest" (not an update) on your project.
- Close and Re-Open your project (to get rid of the .svn folder that shouldn't be displayed, but is)
- Now, use the Team > Add to svn:ignore context menu item on the bind folder
- Finally, check in your changes (which will appear to be a change just to the project folder itself ... that's where svn:ignore data lives)
Why is this necessary? Somehow during the initial check in, the local project gets out of synch with the repository. I know not what or why, but it's been very consistent against every repository I use, so I think it is a Subclipse problem. If you don't do the replace with latest trick, you will get incredibly annoying SVN errors when you try to mark bin to be ignored ... you just won't be able to check in your project.