how to setup arquillian with managed jboss 5.1?
cremersstijn Feb 4, 2013 2:00 PMI'm experimenting with arquillian. I want to use arquillian with jboss as 5.1. I have found the following adapters for this version:
I would like to use the managed version, so that arquillian can startup and shutdown the as. So good so far, but when i run my arquillian test, my test fails because jbossHome is not set. This property needs to be set to the jboss 5 directory. But this directory can be different on other peoples pc. So i want to something like this:
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack</id>
<phase>process-test-classes</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.jboss.as</groupId>
<artifactId>jboss-as-dist</artifactId>
<version>7.1.1.Final</version>
<type>zip</type>
<overWrite>false</overWrite>
<outputDirectory>target</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
So that my arquillian config can contain this:
<container qualifier="jbossas-managed" default="true">
<configuration>
<property name="jbossHome">target/jboss-as-7.1.1.Final</property>
</configuration>
But this are code snippets for jboss 7, can i do somehow the same for jboss 5?
Note: this is a copy of http://stackoverflow.com/questions/14692601/how-to-setup-arquillian-with-managed-jboss-5-1