问题描述
我想知道是否可以让Maven管理Java EE应用程序,并自动将它从Eclipse部署到JBoss。据我所知,我目前右键单击我的项目并选择Make install。完成后,我打开服务器窗格并右键单击我已部署的ear并选择Full Publish或Incremental Publish。有没有办法将这些操作压缩成一次点击?我试着写一个Windows批处理文件,但我没有太多运气,它只适用于我们在Windows机器上工作的开发人员。我知道我可以进行运行配置,但是当我尝试制作它时,它非常令人生畏,我会感到沮丧并放弃。
I was wondering if it is possible to make a Java EE application being managed by Maven and automatically deploy it to JBoss all from Eclipse. To my knowledge I current right click on my project and select "Make install". After that completes, I open the server pane and right click on my deployed ear and either select "Full Publish" or "Incremental Publish". Is there a way to condense these actions into one click? I tried to write a windows batch file but I didn't have much luck with that, and it would only work for our devs working on Windows machines. I know I can make run configurations but when I try to make one it is very intimidating and I get frustrated and give up.
感谢您的帮助!
推荐答案
您可以使用JBoss Tools 3.3.0(当前里程碑M4)与maven集成轻松地将项目(战争或耳朵)部署到您的AS7服务器。
You can use JBoss Tools 3.3.0 (Current milestone M4) with the maven integration to easily deploy projects (wars or ears) to your AS7 server.
在eclipse中定义AS7实例后,您所要做的就是右键单击您的项目> Run As ...> Run on Server。它会启动你的app服务器,如果它已经停止,或者只是部署你的应用程序,如果它已经运行。
Once you defined your AS7 instance in eclipse, all you have to do is right click on your project > Run As ...> Run on Server. It'll start your app server if it's stopped, or just deploy your app if it's already running.
参见
和
这篇关于使用Eclipse / Maven / JBoss AS 7单击构建和部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!