热部署不适用于 IntelliJ IDEA 和 Wildfly 8.2.0

Hot deploy not working with IntelliJ IDEA and Wildfly 8.2.0

我目前正在尝试在 IntelliJ IDEA 14Wildfly 8.2.0 上设置 hot deployment

我的设置是:

Wildfly 8.2.0Deployment scanners 启用,Auto-deploy ZippedAuto-deploy Exploded 设置为真,scan interval 设置为 2000

IntelliJ IDEA 14On update actionOn frame deactivation 都设置为更新 类 和资源

但是还是不行。我必须重新部署应用程序才能更新 java 文件。

编辑:

[standalone@localhost:9990 /] /subsystem=deployment-scanner:read-resource(recursive=true)
{
    "outcome" => "success",
    "result" => {"scanner" => {"default" => {
        "auto-deploy-exploded" => true,
        "auto-deploy-xml" => true,
        "auto-deploy-zipped" => true,
        "deployment-timeout" => 600,
        "path" => "deployments",
        "relative-to" => "jboss.server.base.dir",
        "runtime-failure-causes-rollback" => false,
        "scan-enabled" => true,
        "scan-interval" => 2000
    }}}

我不熟悉 IntelliJ,但你想要的东西对我来说似乎无法开箱即用(目前)。
至少如果你想走标准的路。标准 JVM 尚不具备完整的热部署功能,这就是为什么有 JRebel 或替代 JVM 实现或工具(HotSwap?)等产品可以解决该问题的原因。

参见:

  • What makes hot deployment a "hard problem"?
  • Change a method at runtime via a hot swap mechanism