Are you sure this works on all platforms? At any rate this should not be necessary because it should be defined by the JBoss parent pom to automatically pick up the correct jar.