For this purpose you may use the deploy command of jboss-cli.
./jboss-cli.sh --connect --command='deploy --help'
will provide more details
You are right, Wolfgang. But technical requirements of my project, deployment should be done from Java application, without using of shell scripts, with JMX or some API. That`s why i searching for this API.
Not exactly. We can deploy with maven plugin only when the maven lifecyle runnig. As i understand, i can`t call this plugin from my java code.
But, this plugin uses API which i`m looking for. My goal is to find this API.
Are you referring to JSR 88 (JavaTM EE Application Deployment)?
I understand JSR 88 is not supported by WildFly anymore WildFly 8 Final is released! · WildFly
It has become optional in JEE7jsr88 wildfly
"Java EE 7 further simplifies the platform by making optional the technologies that were identified as candidates for pruning in Java EE 6, namely: EJB Entity Beans, JAX-RPC 1.1, JAXR 1.0, and JSR-88 1.2."
But you could use the CLI scripting https://blog.akquinet.de/2014/09/18/jboss-eap-wildfly-management-interfaces-and-clients/
The problem is resolved. I used CLI API for deployment management. It works under WildFly and JBoss also.