I have "pom.xml" file which is connecting to maven and checking out the code and creating a war file. Now I have to deploy the created war file to JBoss Application Server 7. Below is my pom.xml
.
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org /2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany.deploy</groupId>
<artifactId>deploy-app</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<name>deploy-app Maven Webapp</name>
<url>http://maven.apache.org</url>
<scm>
<connection>scm:svn:http://d-113017553/svn/PRONTO/trunk/dev</connection>
<developerConnection>scm:svn:http://d-113017553/svn/PRONTO/trunk /dev</developerConnection>
<url>http://d-113017553/svn/PRONTO/trunk/dev</url>
</scm>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<finalName>deploy-app</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
<version>1.8.1</version>
<configuration>
<connectionType>connection</connectionType>
<username>keerthana</username>
<password>keerthana</password>
<checkoutDirectory>${project.basedir}/co/src</checkoutDirectory>
<workingDirectory>${project.basedir}/co/src</workingDirectory>
</configuration>
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.2.2</version>
<configuration>
<releaseProfiles>release</releaseProfiles>
<goals>scm:checkout</goals>
</configuration>
</plugin>
<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>7.3.Final</version>
<configuration>
<jboss_Home>D:\Workspace\deploy-app\target</jboss_Home>
<serverName>default</serverName>
<fileName>target/deploy-app.war</fileName>
</configuration>
</plugin>
</plugins>
</build>
</project>
Please give me the steps to deploy my war file to the Jboss Server.
First, use
bin/add-user.sh
to add management user.Then, store that into your settings.xml.
Then, configure the
pom.xml
....
and then simply...
This is reduced from one JBoss project, may contain typos, but should work.
First, use bin/add-user.sh to add management user(admin/1234).
Second add to pom.xml:
Three: edit JBoss_Home/standalone/configuration/standalone.xml change the Ip address to 0.0.0.0:
Four, deploy using #clean install jboss-as:redeploy