简体   繁体   English

JBoss 更改部署标记文件位置

[英]JBoss change the deployment marker file location

By default, JBoss creates abc.war.deployed marker file for a deployed war file abc.war in deployment directory on successful deployment.默认情况下,JBoss 会在部署成功时在部署目录中为部署的战争文件 abc.war 创建 abc.war.deployed 标记文件。

Is it possible to change this?有可能改变这个吗? I mean just the marker file location.我的意思只是标记文件的位置。 I think entire deployment directory can be changed.我认为可以更改整个部署目录。 But I would like to change just the marker file location.但我只想更改标记文件的位置。

I am using JBoss 7.我正在使用 JBoss 7。

You can't change that as each marker file has a sense for the deployment scanner.您无法更改它,因为每个标记文件都对部署扫描程序有意义。 One way to avoid that is not to deploy using the deployment scanner but using the management API (via jboss-cli deploy command or HAL).避免这种情况的一种方法是不使用部署扫描程序进行部署,而是使用管理 API(通过 jboss-cli deploy 命令或 HAL)进行部署。

The Wildfly Deployment Scanner (which very likely is being used verbatim in JBoss) does not provide configuration to change or avoid the deployment marker files. Wildfly 部署扫描器(很可能在 JBoss 中逐字使用)不提供配置来更改或避免部署标记文件。

https://docs.wildfly.org/26.1/Admin_Guide.html#Deployment_Scanner https://docs.wildfly.org/26.1/Admin_Guide.html#Deployment_Scanner

But what you definitely can do is to disable the JBoss deployment scanner, then tell the JBoss microkernel to use a subsystem that you provide: Your own, tweaked version of the deployment scanner.但是您绝对可以做的是禁用 JBoss 部署扫描器,然后告诉 JBoss 微内核使用您提供的子系统:您自己的调整版本的部署扫描器。 It will have all the features that you implement.它将具有您实现的所有功能。

BTW, why do you want to get rid of the marker files?顺便说一句,你为什么要摆脱标记文件?

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

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