How do I match versions of Wildfly 9.0.1 with org.wildfly.arquillian:wildfly-arquillian-container-managed

Upgrading a J2EE application from Wildfly 8.2.1.FInal to 9.0.1.Final I discovered the namespace and versioning change of the Arquillian Wildfly container.

In the JBoss Developer forum I read

This is working with the Maven “org.wildfly.arquillian” group artifacts instead, having versions matching the Wildfly J2EE spec instead of the Wildfly container version, seems more reasonable both by name and version numbering.

What is the “Wildfly J2EE spec” and how do I go about matching Wildfly versions with versions of org.wildfly.arquillian:wildfly-arquillian-container-managed?

Cheers Mats

Addendum

If someone lands in this page because they have that same problem here is my recommendation: [Arquillian Chameleon for the sake of simplicity] (http://www.lordofthejars.com/2016/09/arquillian-chameleon-for-sake-of.html). Arquillian Chameleon is an automatic container downloader-install-container manager for Arquillian integration tests.

If you’re going for the org.wildfly.arquillian:wildfly-arquillian-container-managed, the verion to use with Wildfly 9.0.1.Final is org.wildfly.arquillian:wildfly-arquillian-container-managed:1.0.0.Final.

Answer

The easy way to work out what version of Arquillian jars to use with a specific version of WildFly is to look at the WildFly Source on GitHub.

Click on the “Branch: master” button and choose the “Tags” tab.

Look down the list until you find 9.0.1.Final and select it.

Open the pom.xml file and search the page for version.org.wildfly.arquillian.

You will see

1.0.0.Final

which is the version that you’re after.

For 10.1.0.Final it says:

1.0.2.Final

which looks like a bug fix release that will likely work just fine with WildFly 9.0.1 as well.

Leave a comment