Bug 1193473

Summary: Arquillian tests fail on java.lang.ClassCastException
Product: [Retired] JBoss BRMS Platform 6 Reporter: Tomas David <tdavid>
Component: QuickstartsAssignee: Bill Rainford <brainfor>
Status: CLOSED EOL QA Contact: Tomas David <tdavid>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1.0   
Target Milestone: ER6   
Target Release: 6.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 20:05:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Exception none

Description Tomas David 2015-02-17 12:37:40 UTC
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:
-

Comment 1 Petr Široký 2015-02-17 12:51:39 UTC
This seems to related to the Sonatype Aether vs Eclipse Aether changes between different maven versions. I will investigate further.

Comment 2 Petr Široký 2015-02-17 12:53:36 UTC
PR sent by Tomas https://github.com/jboss-developer/jboss-brms-quickstarts/pull/18 Thanks, I will take a look.

Comment 3 Tomas David 2015-02-17 16:15:57 UTC
Sorry. Correct command is:

mvn clean install -Parq-jbossas-remote -s [settingsLocation] -Dorg.apache.maven.user-settings=[settingsLocation]

Comment 4 Petr Široký 2015-02-17 16:26:16 UTC
Fixed on 6.1.x (that is correct branch for the QS repo):
https://github.com/jboss-developer/jboss-brms-quickstarts/commit/fd286db5e44e6ff0a99b6ae2c14a1a5e038742d4

Comment 5 Tomas David 2015-03-10 08:04:07 UTC
Verified on BRMS 6.1.0.ER6.