Currently any custom repository defined in a project is persisted when that project is opened. It will thereafter be displayed in Maven Repository Browser, searched, and indexed. This is undesirable for a repo used only in a demo project, or with a nonstandard ID or URL, etc.
While still permitting users to manually add custom repos, the IDE should only transiently display repos found in open projects. (Either remove them when the last referring project is closed, as with Hudson builders, or just do not persist across a restart.) Should also display plugin repos, which is not done now.
This should also permit the java.net2 and netbeans repo definitions to be removed; they will appear only when relevant. Thus only local and central would be registered by default. One catch is that the New Project wizard for NetBeans-related archetypes searches the netbeans repo for available versions, so this repo needs to be transiently added when the wizard runs, even before the project is opened.
Integrated into 'main-golden'
User: Jesse Glick <firstname.lastname@example.org>
Log: #196610: Do not persist repo just because project using it was opened