libcommons-lang3-java FTBFS due to circular build-dep (multiple versions in classpath)

Bug #1788735 reported by Tiago Stürmer Daitx
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libcommons-lang3-java (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

maven relies on surefire for running tests and surefire depends on libcommons-lang3-java. So whenever libcommons-lang3-java is updated there are 2 versions in the classpath during the testing: the old version in the deb package from surefire's dependency and the new version that was just build. Unfortunately the old version takes precedence in maven/surefire's classpath, thus any test that relies in the new features/classes/interfaces/methods will fail.

This circular build dependency can only be broken by disabling testing for any libcommons-lang3-java update that also modifies the tests - I haven't found a way to force surefire/maven to load and use only the new version under test (or, in other words, to prevent it from loading/using the old classes).

The easiest way to skip the tests is by adding "maven.test.skip=true" to debian/maven.properties [1].

References:
[1] https://wiki.debian.org/Java/MavenBuilder#line-87

Revision history for this message
Tiago Stürmer Daitx (tdaitx) wrote :

attaching debdiff that prevents tests from being run during the build

tags: added: cosmic ftbfs
tags: added: patch
Simon Quigley (tsimonq2)
Changed in libcommons-lang3-java (Ubuntu):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libcommons-lang3-java - 3.7-1ubuntu2

---------------
libcommons-lang3-java (3.7-1ubuntu2) cosmic; urgency=medium

  * Re-enable tests now that we're bootstrapped.

 -- Steve Langasek <email address hidden> Thu, 23 Aug 2018 20:57:08 -0700

Changed in libcommons-lang3-java (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.