This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
In a new Maven project I opened the Properties dialog, made a change in the Sources panel, and flipped through other panels including Spring Framework. Later I noticed a nb-configuration.xml had been created which was empty except for <spring-data xmlns="http://www.netbeans.org/ns/spring-data/1"> <config-files/> <config-file-groups/> </spring-data> The panel storage needs to (a) not store anything when no changes are made, (b) not create a <spring-data> if there is nothing to store, (c) delete any existing <spring-data> if all customizations are removed (this should also cause nb-configuration.xml itself to be deleted if there are no other sections).
Fixed in 3e570ecd4b8d.
You fixed (b), I guess fixed (a), but did not fix (c). In fact it now appears to be impossible to remove a config file group after adding it, a regression! The fix is in the wrong place; it is ProjectConfigFileManagerImpl.writeConfiguration which needs to be patched.
Integrated into 'main-golden', will be available in build *201104130401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/3e570ecd4b8d User: Martin Fousek <marfous@netbeans.org> Log: #196855 - nb-configuration.xml created just by looking at Spring property panel
All three options should be fixed now. http://hg.netbeans.org/web-main/rev/4433886ac11d There is just one thing that existing projects with nb-configuration.xml and useless "spring-data" tag will not be empty and deleted until any Spring change happened there. On other side it would require to call remove or another AuxiliaryConfiguration method everytime when files and groups would be empty which could be inefficient.
Integrated into 'main-golden', will be available in build *201104140401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/4433886ac11d User: Martin Fousek <marfous@netbeans.org> Log: #196855 - nb-configuration.xml created just by looking at Spring property panel