Created attachment 992649 [details] Exception Description of problem: When settings.xml file is located in other location than ~/.m2, arquillian tests fail on java.lang.ClassCastException. Version-Release number of selected component (if applicable): 6.1.0.ER5 How reproducible: - Steps to Reproduce: 1. Run command mvn clean install jboss-as:deploy -s [settingsLocation] -Dorg.apache.maven.user-settings=[settingsLocation] in helloworld-cep or stateful-ksession directory. Actual results: java.lang.ClassCastException: Cannot cast org.apache.maven.repository.internal.DefaultVersionResolver to org.sonatype.aether.impl.VersionResolver Expected results: Tests pass. Additional info: -
This seems to related to the Sonatype Aether vs Eclipse Aether changes between different maven versions. I will investigate further.
PR sent by Tomas https://github.com/jboss-developer/jboss-brms-quickstarts/pull/18 Thanks, I will take a look.
Sorry. Correct command is: mvn clean install -Parq-jbossas-remote -s [settingsLocation] -Dorg.apache.maven.user-settings=[settingsLocation]
Fixed on 6.1.x (that is correct branch for the QS repo): https://github.com/jboss-developer/jboss-brms-quickstarts/commit/fd286db5e44e6ff0a99b6ae2c14a1a5e038742d4
Verified on BRMS 6.1.0.ER6.