10.8. Define a Custom Directory for Deployed Content

JBoss EAP provides the option to define the location that the server will use for storing deployed content.
Define a Custom Directory for Deployed Content in Standalone Mode

By default, deployed content in Standalone Mode is stored in the EAP_HOME/standalone/data/content directory.

  • This location can be changed by passing in the -Djboss.server.deploy.dir argument when starting the server:
    ./standalone.sh -Djboss.server.deploy.dir=/path/to/new_deployed_content
  • The chosen location should be unique among JBoss EAP instances.

Note

jboss.server.deploy.dir specifies the directory used for storing content that has been deployed via the Management Console or Management CLI. For defining a custom deployments directory to be monitored by the deployment scanner, see Section 10.5.9, “Define a Custom Deployment Scanner”.
Define a Custom Directory for Deployed Content in Domain Mode

By default, deployed content in Domain Mode is stored in the EAP_HOME/domain/data/content directory.

  • This location can be changed by passing in the -Djboss.domain.deployment.dir argument when starting the domain:
    ./domain.sh -Djboss.domain.deployment.dir=/path/to/new_deployed_content
  • The chosen location should be unique among JBoss EAP instances.