I seek a method of application autosetup with security domain and module named Database.
Please someone advise me, how to add a section in standalone.xml or domain.xml at the deployment (maven) or setup (runtime) phase for purpose of initial setup simplifying?
You can use a WildFly Maven Plugin (wildfly-maven-plugin). The
wildfly-maven-plugin
is used to deploy, redeploy, undeploy or run your application. You can also deploy or undeploy artifacts, such as JDBC drivers, and add or remove resources. There is also the ability to execute CLI commands.Eg. (execute commands from a CLI script)
config.cli
add a security domain:I hope this help.