cd to project directory mine is var/www/app mvn clean package -Pmain -Dproject-path – compiles and builds the application archives. mvn jboss:hard-deploy -Pdeploy -Djboss-home=$JBOSS_HOME - copies the generated EAR files to destination directory for deployment to JBoss server mvn resources:copy-resources -Pdeploy -Djboss-home=$JBOSS_HOME - copies the configuration files to destination directory for deployment to JBoss server mvn resources:copy-resources -Pinit -Djboss-home=$JBOSS_HOME - copies the Informix JDBC driver to destination directory for deployment to JBoss server Check which jboss server(default/all) the configuration files is located mine is in all so i use sh /usr/local/jboss/bin/run.sh -c all tc.ear somtimes might fails and any reources with tc will result in 404 but other end point will result in page error(errorPage.jsp)(tcwebexception) envvars export M2_HOME=/usr/local/apache-maven/apache-maven-3.3.9 export M2=$M2_HOME/bin export MAVEN_OPTS="-Xms256m -Xmx512m" export PATH=$M2:$PATH export JBOSS_HOME=/usr/local/jboss export JAVA_HOME=/usr/lib/jvm/java-8-oracle/jre export APACHE_HOME=/usr/local/apache export PROJECT_HOME=/var/www/app