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.
Summary: | Auto-deploy HTML files in multi-module-maven-project doesn't work | ||
---|---|---|---|
Product: | javaee | Reporter: | CptS |
Component: | Maven | Assignee: | Martin Janicek <mjanicek> |
Status: | NEW --- | ||
Severity: | normal | CC: | DavidLeoni, heatseeker, jumperchen |
Priority: | P2 | ||
Version: | 8.0 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Attachments: |
a small and simple example project
a EAR example project |
Description
CptS
2014-04-02 15:47:45 UTC
I will take a look at it.. Well this is basically impossible to support. Your project structure is: - WAR module containing dependency on JAR module - Only WAR module is needed for deployment and it includes JAR module as a library dependency For a correct auto-deployment we would need to rebuild your JAR module everytime when you would make any kind of change. That would obviously make the IDE uncomfortable to use. The way how auto-deployment usually works is that we take the updated files and copy them (+ compile them in case of .java/groovy files) to the exploded directory used by the server for deployment. That allow us to avoid compiling the whole module. EAR project used to wrap up your module would help, but I guess that wont work for you if you need to use lightweight Tomcat for the deployment. Don't see any simple solution at the moment, but I will try to think about it a little more. I have tried a EAR in wildfly 8. But again, it unfortunately does not work. I do not see any change after reload of the browser when I change one of the 4 files (HomePage.java, homepage.html, TestPanel.java, TestPanel.html). I think Netbeans doesn't compile anything on save in one of the modules. [Tools] [Options] [Java] [Java Debugger] "Apply code changes after save ..." is enabled. In all Modules [Properties] [Build] [Compile] "Compile On Save" is enabled. Have I missed something? I've attached the modified sample project. Tested in NetBeans IDE 8.0 (Build 201403101706) with Wildfly 8.0.0 and GlassFish Server Open Source Edition 4.0 (build 89). Created attachment 148105 [details]
a EAR example project
Sorry, there won't be enough of time to fix this issue into 8.0.1 patch. Changing to enhancement and increasing priority - we will need a special support to allow this. *** Bug 223217 has been marked as a duplicate of this bug. *** *** Bug 206030 has been marked as a duplicate of this bug. *** |