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.
Plain Java web projects have an "Copy Static Resources on Save" option in the "Compile" panel. This option is missing for maven web projects. This seems to be the history: While debugging Netbeans used to copy static files on save. With NB 7.1(?) the option "Compile on save" was introduced. But static files where still copied on save regardless of this option (even if disable). Some people considered this as a bug and so it was "fixed". But not for maven web projects: version 7.1.2 still copies static resources on save (with "Compile on save" disabled). But this also got "fixed" in version 7.2. Not every one was happy with this "fix" (Bug 207149) so a new option was introduced with version 7.2: "Copy Static Resources on Save". But again, not for maven web projects.
I agree that we should make Ant and Maven projects consistent as much as possible, but this sounds more like a new feature to me (it was never implemented for Maven web based projects) and we are way after the feature freeze. I'm sorry, but we have to wave this into the next release.
But is it possible to switch back to the 7.1.2 behavior? That is: copy static resources on save regardless of the "Compile on save" setting. "Compile on save" does not work for me and developing without "copy static resources on save" is a nightmare so i still use NB 7.1.2 :-(
(In reply to comment #2) > But is it possible to switch back to the 7.1.2 behavior? That is: copy static > resources on save regardless of the "Compile on save" setting. > > "Compile on save" does not work for me and developing without "copy static > resources on save" is a nightmare so i still use NB 7.1.2 :-( This sounds like a bug, but I'm not able to reproduce it. I've just tried to create new Maven Web project, disable CoS, run it on Glassfish server and when changing the index.jsp file, it is correctly deployed on save and the changes are shows after using F5 in the browser. Does this work for you?
(In reply to comment #3) > (In reply to comment #2) > > But is it possible to switch back to the 7.1.2 behavior? That is: copy static > > resources on save regardless of the "Compile on save" setting. > > > > "Compile on save" does not work for me and developing without "copy static > > resources on save" is a nightmare so i still use NB 7.1.2 :-( > > This sounds like a bug, but I'm not able to reproduce it. I've just tried to > create new Maven Web project, disable CoS, run it on Glassfish server and when > changing the index.jsp file, it is correctly deployed on save and the changes > are shows after using F5 in the browser. > Does this work for you? Yes, this way it works for me too. But this will not work: - start NB 7.3b - create a new Maven Web project - disable "Compile on save" - close NB - start NB again - start debug webapp - change index.jsp - reload page - no changes :-( But I also have a simple work around: - enable "Compile on save" - disable "Compile on save" again - save changes in index.jsp - index.jsp gets copied! - will work as long as NB is not restarted, yipi! That's wired but I can live with it ...
Thanks, I can see the same problem as you are describing. I'll file a new ticket for that to separate the bug and this enhancement..
I have created new issue 221258 for that bug
*** This bug has been marked as a duplicate of bug 218345 ***