Maven Surefire

useSystemClassLoader introduces dependencies

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.3
  • Fix Version/s: 2.4
  • Component/s: None
  • Labels:
    None
  • Complexity:
    Intermediate
  • Number of attachments :
    0

Description

dependencies in a forked surefire instance should be avoided since any tests that use the same dependencies will be incompatible.

In this case, plexus-archiver, plexus-utils and plexus-container were introduced, causing any tests relying on newer versions of either to fail

Issue Links

Activity

Hide
Dan Fabulich added a comment -

Jason suggested that we might use the maven-shade-plugin to shade our plexus dependencies (repackaging them in different package names and updating dependencies); it's a good idea, but maven-shade-plugin fails to work properly on the plexus archiver (it doesn't translate interfaces correctly, apparently?).

Show
Dan Fabulich added a comment - Jason suggested that we might use the maven-shade-plugin to shade our plexus dependencies (repackaging them in different package names and updating dependencies); it's a good idea, but maven-shade-plugin fails to work properly on the plexus archiver (it doesn't translate interfaces correctly, apparently?).
Hide
Mauro Talevi added a comment -

Moving to 2.3.2

Show
Mauro Talevi added a comment - Moving to 2.3.2
Hide
Dan Fabulich added a comment -

Fixed in trunk in revision 602619. We probably won't fix this for Surefire 2.3.

Show
Dan Fabulich added a comment - Fixed in trunk in revision 602619. We probably won't fix this for Surefire 2.3.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: