Add new users to JBoss WildFly when using WildFly Maven Plugin

When using WildFly Maven Plugin to deploy the application during development, with the basic configuration as in the article Run Java web applications with WildFly Maven Plugin, you will not be able to access the Management Console page of JBoss WildFly located at http://127.0.0.1:9990, to view and manage the configurations contained in this JBoss WildFly. The reason is as I mentioned in the article Install JBoss WildFly, the default user “admin” has been disabled. When you access the address http://127.0.0.1:9990, you will see a window asking you to enter username and password information to be able to access the Management Console page as follows:

To be able to add new users to JBoss WildFly when using the WildFly Maven Plugin, you need to add a configuration section related to adding new users as follows:

As you can see, in the configuration section of the WildFly Maven Plugin, I am declaring the <add-user> tag with the <users> list to add the users we need. Each user will be declared in the <user> tag with username and password information. You can add as many users as you want!

Now, run the application again and enter the username and password you declared above, you will be able to log in to the Management Console page.

My result is as follows:

Now you can see the configuration information we have added to this JBoss WildFly server!

Add Comment