Intellij如何部署到JBoss? [英] How does Intellij deploy to JBoss?

查看:150
本文介绍了Intellij如何部署到JBoss?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我终于将我的应用程序放在IntelliJ中并部署到JBoss。我希望热部署工作,但看起来我需要了解IntelliJ和JBoss如何交互。

I finally have my application in IntelliJ and deploying to JBoss. I'd like to get hot deploy working but it looks like I need to understand how IntelliJ and JBoss interact.

当我在IntelliJ中构建项目然后启动JBoss时, ear文件没有出现在deploy目录中,因此我假设IntelliJ有一些神奇的功能,以便JBoss从不同的文件夹中读取。在这一步中发生了什么?

When I build my project in IntelliJ and then start JBoss, the ear file does not appear in the deploy directory so I assume that there is some magic that IntelliJ does so that JBoss reads from a different folder. What is happening during this step?

谢谢:)

推荐答案

请参阅以下文章:

  • Developing applications for JBoss AS in IntelliJ IDEA
  • Debugging applications for JBoss AS in IntelliJ IDEA

基本上,你需要一个爆炸的神器目录名以 .ear 结尾的配置。

Basically, you need an exploded Artifact configuration with the directory name ending with .ear.

构建|制作执行热部署以及更新操作(可配置,只能更新资源,资源和类,可选择重新部署或重新启动服务器)。

Build | Make performs hot deployment as well as Update action (which is configurable and can update only resources, resources and classes, optionally redeploy or restart the server).

IDEA不是将应用程序复制到JBoss,而是使用适当的参数运行它,以便它使用Artifact目录。配置非常灵活,您只需将工件目录位置更改为驻留在JBoss目录下。

Instead of copying your application to JBoss, IDEA runs it with appropriate parameters so that it uses Artifact directory instead. Configuration is very flexible and you can just change the artifact directory location to reside under JBoss directory.

这篇关于Intellij如何部署到JBoss?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆