I am a bit new to maven and wildfly. I can successfully deploy my app on 127.0.0.1:8080/myapp using eclipse and the wildfly-maven-plugin but I would like to deploy it on the IP address of my machine (192.168.0.101) so I can access it from another computer. My POM looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<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>org.vch.apps</groupId>
<artifactId>myapp-chat</artifactId>
<packaging>war</packaging>
<version>1.0</version>
<name>vch-myapp</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>1.0.13</version>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
<version>1.9.3</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>profileIP</id>
<build>
<finalName>myapp</finalName>
<plugins>
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>1.0.1.Final</version>
<configuration>
<jbossHome>/usr/local/wildfly-8.0.0.Final</jbossHome>
<!--hostname>192.168.0.101</hostname>
<port>8080</port-->
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
If I execute wilfly:run from eclipse and specify the profileIP in the Profiles box in Eclipse, the wildfly I downloaded and unpacked to '/usr/local/wildfly-8.0.0.Final' will start on 127.0.0.1:8080 and my application will be deployed to this address. If I uncomment the hostname and port elements my app is still deployed on localhost.
Is there a way to deploy my app on the ip specified in the hostname element using the maven plugin or do I need to make changes to the configuration files in the wildfly folder? I only downloaded wildfly and unpacked it and did not add any wildlfy servers to eclipse.