使用Intellij-idea实现接缝热部署

时间:2021-12-07 20:00:27

How can I achieve hot deployment with Intellij-IDEA and Seam 2?

如何使用Intellij-IDEA和Seam 2实现热部署?

I've set up a separate module to deploy hot deployable class files to WEB-INF/dev/, but it still deploys as one big clump.

我已经设置了一个单独的模块来将热可部署的类文件部署到WEB-INF / dev /,但它仍然部署为一个大的丛。

1 个解决方案

#1


Steps to get hot deployment with Intellij-IDEA and Jboss: (This is assuming your WAR project already deploys from an exploded directory successfully)

使用Intellij-IDEA和Jboss进行热部署的步骤:(假设您的WAR项目已成功从展开的目录部署)

  1. Create a new module and move your hot source folder into it.
  2. 创建一个新模块并将热源文件夹移动到其中。

  3. Open your primary module settings and add your new hot-module as a new dependency.
  4. 打开主模块设置,并将新的热模块添加为新的依赖项。

  5. Open the web-facet of your primary module, and in Modules and Libraries to package click 'add', 'add module'. change its 'output relative path' to WEB-INF/dev
  6. 打开主模块的web-facet,在Modules and Libraries中打包,单击“添加”,“添加模块”。将其“输出相对路径”更改为WEB-INF / dev

  7. Edit your run configuration and enable 'Build on frame deactivation'.
  8. 编辑运行配置并启用“Build on frame deactivation”。

  9. Run the server.
  10. 运行服务器。

Now, whenever you alt-tab out of IDEA, your views and seam POJO controllers are redeployed automatically.

现在,每当您从IDEA中选择alt-tab时,您的视图和接缝POJO控制器都会自动重新部署。

#1


Steps to get hot deployment with Intellij-IDEA and Jboss: (This is assuming your WAR project already deploys from an exploded directory successfully)

使用Intellij-IDEA和Jboss进行热部署的步骤:(假设您的WAR项目已成功从展开的目录部署)

  1. Create a new module and move your hot source folder into it.
  2. 创建一个新模块并将热源文件夹移动到其中。

  3. Open your primary module settings and add your new hot-module as a new dependency.
  4. 打开主模块设置,并将新的热模块添加为新的依赖项。

  5. Open the web-facet of your primary module, and in Modules and Libraries to package click 'add', 'add module'. change its 'output relative path' to WEB-INF/dev
  6. 打开主模块的web-facet,在Modules and Libraries中打包,单击“添加”,“添加模块”。将其“输出相对路径”更改为WEB-INF / dev

  7. Edit your run configuration and enable 'Build on frame deactivation'.
  8. 编辑运行配置并启用“Build on frame deactivation”。

  9. Run the server.
  10. 运行服务器。

Now, whenever you alt-tab out of IDEA, your views and seam POJO controllers are redeployed automatically.

现在,每当您从IDEA中选择alt-tab时,您的视图和接缝POJO控制器都会自动重新部署。