If you are starting with JBOSS. Before starting JBOSS application server. add the management user
- Refer link to add management user.
- Start Server by running standalone.bat( windows) or standalone.sh(linux) under bin directory
- You can quickly verify if the server is started or not by logging into home page
http://localhost:9990/console
. - In the log verify if port 9999 is listening which is used for deployment( a default configuration, else you can check which port is listening for remoting)
Use the following maven plug-in configuration. user name and password is the management user and password
<plugin> <groupId>org.jboss.as.plugins</groupId> <artifactId>jboss-as-maven-plugin</artifactId> <version>${jboss.as.plugin.version}</version> <configuration> <hostname>localhost</hostname> <username>{user name}</username> <password>{password}</password> <port>9999</port> </configuration> </plugin>
You can use either jboss-as:deploy or jboss-as:redeploy