You can simply remove the deployment scanner subsystem.
Remove <extension module="org.jboss.as.deployment-scanner"/> , and then delete:
<subsystem xmlns="urn:jboss:domain:deployment-scanner:1.1"> <deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000" auto-deploy-zipped="false" auto-deploy-exploded="false"/> </subsystem>
If you do not want to remove the subsystem, add auto-deploy-zipped="false" auto-deploy-exploded="false" in the <deployment-scanner/> .
source share