I would like Maven to start up a wildfly server which is available in my target-folder at /path/to/project/target/wildfly-8.1.2-Final. The plugin is supposed to deploy a war-artifact during pre-integration-test phase. That very artifact was created by maven-war-plugin during package-phase right before wildfly-maven-plugin starts.
When running the maven build, wildfly starts up, however does not deploy anything. It just hangs after starting up and lets the Maven build fail after a timeout of 60 seconds...
This is my effective pom:
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>1.1.0.Alpha8</version>
<executions>
<execution>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
<goal>deploy</goal>
</goals>
<configuration>
<port>18080</port>
<timeout>60</timeout>
<skip>false</skip>
<hostname>127.0.0.1</hostname>
<name>/path/to/project/target/my-artifact.war</name>
<targetDir>/path/to/project/target/wildfly-8.2.1.Final/standalone/deployments</targetDir>
<server-config>standalone.xml</server-config>
<username>wildfly-test</username>
<password>wildfly.1234</password>
<add-user>
<users>
<user>
<username>wildfly-admin</username>
<password>wildfly.1234</password>
<groups>
<group>admin</group>
<group>user</group>
</groups>
<application-user>false</application-user>
<realm>ManagementRealm</realm>
</user>
<user>
<username>wildfly-test</username>
<password>wildfly.1234</password>
<groups>
<group>user</group>
</groups>
<application-user>true</application-user>
<realm>ApplicationRealm</realm>
</user>
</users>
</add-user>
</configuration>
</execution>
<execution>
<phase>post-integration-test</phase>
<goals>
<goal>undeploy</goal>
<goal>shutdown</goal>
</goals>
<configuration>
<hostname>127.0.0.1</hostname>
<port>18888</port>
<skip>false</skip>
<name>/path/to/project/target/my-artifact.war</name>
<targetDir>/path/to/project/target/wildfly-8.2.1.Final/standalone/deployments</targetDir>
<server-config>standalone.xml</server-config>
<username>wildfly-test</username>
<password>wildfly.1234</password>
<add-user>
<users>
<user>
<username>wildfly-admin</username>
<password>wildfly.1234</password>
<groups>
<group>admin</group>
<group>user</group>
</groups>
<application-user>false</application-user>
<realm>ManagementRealm</realm>
</user>
<user>
<username>wildfly-test</username>
<password>wildfly.1234</password>
<groups>
<group>user</group>
</groups>
<application-user>true</application-user>
<realm>ApplicationRealm</realm>
</user>
</users>
</add-user>
</configuration>
</execution>
</executions>
<configuration>
<skip>false</skip>
<hostname>127.0.0.1</hostname>
<port>18080</port>
<name>/path/to/project/target/my-artifact.war</name>
<targetDir>/path/to/project/target/wildfly-8.2.1.Final/standalone/deployments</targetDir>
<server-config>standalone.xml</server-config>
<username>wildfly-test</username>
<password>wildfly.1234</password>
<add-user>
<users>
<user>
<username>wildfly-admin</username>
<password>wildfly.1234</password>
<groups>
<group>admin</group>
<group>user</group>
</groups>
<application-user>false</application-user>
<realm>ManagementRealm</realm>
</user>
<user>
<username>wildfly-test</username>
<password>wildfly.1234</password>
<groups>
<group>user</group>
</groups>
<application-user>true</application-user>
<realm>ApplicationRealm</realm>
</user>
</users>
</add-user>
</configuration>
</plugin>
Has anybody experienced a similar behaviour?
Maybe somebody could give me a pointer on what is wrong here... Any help is highly appreciated.
Thanks Walter