https://docs.jboss.org/wildfly/plugins/maven/latest/
Some examples for Wildfly Maven Plugin with Mysql
All the example work with Wildfly 10
Add Mysql JDBC driver
Add Datasource to Wildfly Server
Example for multiple server Deployment
- Check out the project
- Go to the appropriate folder, depending on what you want to do (addDatasource or addJDBCDriver)
- Put your's settings in pom.xml in the properties section
mvn clean
mvn install
Use the pom.xml in this module as a template for your's pom.xml
For deploy the application execute
mvn wildfly:deploy -P wildfly-deploy-a,wildfly-deploy-b
If you are using Jenkins