简体   繁体   English

是否有一个可以将EAR部署到Jboss EAP 6.3的maven插件?

[英]Is there a maven plugin that could deploy EAR to Jboss EAP 6.3?

We have Bamboo (Continuous Integration and Build Server) and have recently migrated our project from ANT to Maven. 我们拥有Bamboo(持续集成和构建服务器),并且最近已将我们的项目从ANT迁移到Maven。

We would like to deploy Maven built EAR to our JBoss AS 6.3. 我们想将Maven构建的EAR部署到我们的JBoss AS 6.3。 Do we have any maven plugin that could allow me to do the following, even if there is option to directly do some kind of scripting in Bamboo we are open to explore that: 1. Stop the server 2. Deploy/Re-deploy new artifact to the server 3. Start the server 我们是否有任何Maven插件可以允许我执行以下操作,即使可以在Bamboo中直接进行某种脚本编写,我们还是愿意探索:1.停止服务器2.部署/重新部署新工件到服务器3.启动服务器

Also we would like to rename the artifact before deploying to the server. 另外,我们想在部署到服务器之前重命名工件。 Say if the artifact is generated as abc-1.0.0-SNAPSHOT.ear we would like to deploy it as abc.ear 假设如果工件是作为abc-1.0.0-SNAPSHOT.ear生成的,我们想将其部署为abc.ear

We have already explore jboss-maven-plugin and jboss-as-maven-plugin. 我们已经探索了jboss-maven-plugin和jboss-as-maven-plugin。 Looks like latter is only for JBoss AS 7 and not sure if former could be used to deploy to JBoss AS 6 (most of the examples online talk about deploying to older version of JBoss). 看起来后者仅适用于JBoss AS 7,并且不确定前者是否可用于部署到JBoss AS 6(在线上的大多数示例都谈到了部署到JBoss的较早版本)。 We will continue our independent research but if someone could chime in and give info based on their experience that would be highly appreciated. 我们将继续进行独立研究,但是如果有人可以根据他们的经验来提出建议并提供信息,我们将不胜感激。

Thanks for taking time to understand our requirement. 感谢您抽出宝贵的时间来了解我们的要求。

Let me answer my own question here! 让我在这里回答我自己的问题!

jboss-maven-plugin does work but we need to provide the jmx credentials to the plugin. jboss-maven-plugin确实可以工作,但是我们需要向插件提供jmx凭据。 We did not want to open the jmx console so we opted to go with Deployments option under Bamboo which allows us to use SSH to do a hot deployment. 我们不想打开jmx控制台,因此我们选择了Bamboo下的Deployments选项,该选项允许我们使用SSH进行热部署。

Am not totally happy with the approach cause this doesn't allow us to stop the server, then deploy the artifacts and then restart the server. 我对这种方法并不完全满意,因为这不允许我们停止服务器,然后部署工件,然后重新启动服务器。 A cleaner approach would be to stop the server before deployment so as to ensure no one is connected to the server during deployment. 一种更清洁的方法是在部署之前停止服务器,以确保在部署期间没有人连接到服务器。

Good Luck! 祝好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM