简体   繁体   English

使用Jenkins和Maven Deploy插件在JBoss EAP 6上进行部署

[英]Deploying on JBoss EAP 6 using Jenkins and Maven Deploy plugin

I am setting up a CI environment to build and deploy java projects to a remote server using mvn jboss-as:deploy goal. 我正在设置一个CI环境,以使用mvn jboss-as:deploy目标构建Java项目并将其部署到远程服务器。

Couple of questions 1. Do i need to do anything specific on jboss standalone.xml to enable hot deployment. 几个问题1.我需要对jboss standalone.xml进行任何特定的操作以启用热部署。 For example auto-deploy:exploded option needs to be enabled? 例如,是否需要启用auto-deploy:exploded选项?

  1. Presently the deployment is manual process: copying the war to deploy folder and then touch the ar file. 目前,部署是手动过程:将war复制到部署文件夹,然后触摸ar文件。 Do I need to remove the old wars under deploy folder for remote hot deployment to work successfully? 我是否需要删除deploy文件夹下的旧战才能使远程热部署成功工作?

  2. Once hot deployment is performed using jenkins, if a server restart is performed, older version of the war is getting deployed. 使用jenkins执行热部署后,如果执行服务器重新启动,则将部署较早版本的war。 Any clue on this? 有什么线索吗?

Please help. 请帮忙。

I figured out the issue. 我发现了问题。 Since previously the war was deployed manually, I had to remove the war files from Standalone/deployments folder. 由于以前是手动部署战争的,所以我不得不从Standalone / deployments文件夹中删除war文件。 On a server restart the war under this folder would be deployed causing older version of the application to show up. 在服务器重启时,将部署此文件夹下的战争,从而导致该应用程序的较旧版本显示出来。

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

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