Download and unpack JBoss AS 7 distribution through Maven
I quite unintentionally happened to find the JBoss AS 7 distribution in the JBoss maven repository while looking for something completely unrelated.
My first thought when I found this was that given the size of the distribution (72MB) and the amazing startup times, I can very easily download the entire distribution, unpack it, and run my integration tests (using arquillian) in the unpacked container itself, without affecting to the build times too adversely. This would allow the project build to be self contained in that it doesn’t have to rely on or assume the availability of a remote or local JBoss installation.
The maven artifact information for the AS 7 distribution is:
Before you proceed, make sure that you’ve added the JBoss maven repository to your POM or nexus repository. More details on the JBoss maven repository can be found here. Using this information, I can download and unpack the server before the integration tests are to run by including the following in my POM:
The unpacked server will be placed in