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.
Here's the situation: 1. There's a netbeans project, under version control (git) 2. There's a branch where I try to convert the project to maven Reproduce: 1. checkout nbproject branch 2. open the project 3. close project 4. checkout maven branch 5. try to open project - opens in a corrupt way (as a normal project, not mvn). Same thing when opening the nbproject after opening maven. After IDE restart all is good. Thanks!
For various reasons - netbeans is caching the project metadata in memory even after a project was closed in a session (e.g. it might be reopened again during the same netbeans run). What typically does not happen (virtually never) is that the project type (metadata) would change. Doing the branch switch as described breaks this expectation. Even though valid, but this being a extremely seldom use case im going to resolve this as wontfix. not sure is this is liable for you, but did you consider to have both branches in separate checkout on your disk? thanks for understanding.