Bug 1193473 - Arquillian tests fail on java.lang.ClassCastException
Summary: Arquillian tests fail on java.lang.ClassCastException
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Quickstarts
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ER6
: 6.1.0
Assignee: Bill Rainford
QA Contact: Tomas David
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-17 12:37 UTC by Tomas David
Modified: 2020-03-27 20:05 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-27 20:05:47 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Exception (15.21 KB, text/plain)
2015-02-17 12:37 UTC, Tomas David
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.