Your message dated Mon, 26 Mar 2012 05:23:04 +0000
with message-id <[email protected]>
and subject line Bug#664641: fixed in surefire 2.10-3
has caused the Debian Bug report #664641,
regarding libsurefire-java: Surefire does not correctly detect JUnit 4 from 
Debian Maven Repository
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
664641: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=664641
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libsurefire-java
Version: 2.10-2
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

I hit this when debugging the FTBFS for libcommons-lang3-java.

This package depends on JUnit4; Tweaking the Maven debug level up 
with -X revealed that surefire was exectuing the tests with the JUnit3
provider which was the cause of the test failures.

Surefire looks at the JUnit artifact versioning on startup and makes
an intelligent decision about which version of the provider to use:

{{{
if the JUnit version in the project >= 4.7 and the parallel attribute has ANY 
value
    use junit47 provider
if JUnit >= 4.0 is present
    use junit4 provider
else
    use junit3.8.1
}}}

See http://maven.apache.org/plugins/maven-surefire-plugin/examples/junit.html

However the 4.x artifact in /usr/share/maven-repo/junit/junit fails this test
and surefire reverts to 3.x behaviour.

I worked around this by 

a) Mapping the JUnit artifact directly to the current 4.8.2 artifact in 
/usr/share/maven-repo.

b) Forcing the provider by specifying it through plugin dependencies.

Neither of these is ideal but b) is less brittle.

Surefire uses the standard Maven Versioning classes to determing whether 
the JUnit presented is in specific ranges - see 

maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java

for details of how this works.

I'll work on something to fix this up - it should be relatively easy to detect 
the 4.x string
in the version (we know its >= 4.7) and fixup the behaviour.

- -- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-18-generic (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libsurefire-java depends on:
ii  libmaven-common-artifact-filters-java  1.2-1

Versions of packages libsurefire-java recommends:
ii  junit   3.8.2-8
ii  junit4  4.10-1

libsurefire-java suggests no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCAAGBQJPZ0gIAAoJEL/srsug59jDNfwP/3g+I58pkajieAuSC7nCW0u3
fbiOWgsz6pNq4BzVDXjUJ+grt9bSBDFOtPfn+oTmOrdSrWPyhgyljBTc8gZFrFpR
fpTchoXtKVcwvSeFxBrCZAvJh0+WmmWA09Etvo1Q+vJP3aafsXTIK8WJgyHSxoAv
6bV+cJFqZ64+kW9WFiB49DAs/3z0Xd4+LzNjnG6sSOmukVv85ACwd/e4BQbgws8v
3LhVMMdO+AjNJZ73e7h1igIMBgsZvBEJHWkF4FgAvedvrOxuCGU4HCnaZxQKX2Uo
ifJ86I7gjYRFBuuthjfhbg96xu3A7ocOdSchVG9/7yIBAPUzfea/rbry2zAEzpft
G/wfJV+u4SWXk+Lg8295c0o1kbFCm98BUZdeOtZPQHLDgmSpkdEP6mHbjJBMWNkV
CrU4rFv24jsVJ4rDV1kpaqV00K5SUCLUmnHBY5wN7NNwgyzJcqgTdsV/Mj0uK+ek
6C2lneW/MVZKkJClyQIpEZDA7q8FmZlAu+VE923ZWKIQxsU956eUgx4FzW4m19ag
gehLQWQVytJmQ4/PAuKLiEBdVBLOthexy5KS7rFbGaL+MsT6536WPqxAu6c6uJV3
nZ/mh4mRzhXzU1Jm3aU252ejTCS4Mg4lxSFYqsScElRIYMhW6rsC1hyilAK4OyqJ
7E/rLPRZbrjbmtODuOaD
=Nq0/
-----END PGP SIGNATURE-----



--- End Message ---
--- Begin Message ---
Source: surefire
Source-Version: 2.10-3

We believe that the bug you reported is fixed in the latest version of
surefire, which is due to be installed in the Debian FTP archive:

libsurefire-java_2.10-3_all.deb
  to main/s/surefire/libsurefire-java_2.10-3_all.deb
surefire_2.10-3.debian.tar.gz
  to main/s/surefire/surefire_2.10-3.debian.tar.gz
surefire_2.10-3.dsc
  to main/s/surefire/surefire_2.10-3.dsc



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Miguel Landaeta <[email protected]> (supplier of updated surefire package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Thu, 22 Mar 2012 19:49:18 -0430
Source: surefire
Binary: libsurefire-java
Architecture: source all
Version: 2.10-3
Distribution: unstable
Urgency: low
Maintainer: Debian Java Maintainers 
<[email protected]>
Changed-By: Miguel Landaeta <[email protected]>
Description: 
 libsurefire-java - Surefire test framework for Java
Closes: 664641
Changes: 
 surefire (2.10-3) unstable; urgency=low
 .
   * Team upload.
   * Fix JUnit 4 detection during unit tests in build time.
     Thanks to James Page for the patch. (Closes: #664641).
   * Bump Standards-Version to 3.9.3. No changes were required.
Checksums-Sha1: 
 3e2fe3a300fbd785ffe6da8e2404a106d0e47c37 2338 surefire_2.10-3.dsc
 08063daf51c57a15e0ddffe64e325305775d12b8 6236 surefire_2.10-3.debian.tar.gz
 3973953dc30b6cb92eb196a78f6821ca27327331 293626 libsurefire-java_2.10-3_all.deb
Checksums-Sha256: 
 2b71d0ec475b502d9df017aff317813bd32606e2cb22cd33711b1e92e9a8cdfe 2338 
surefire_2.10-3.dsc
 70c2855809ac774764f1a06f9bd3ce9f6443871750260da5df3d67c4017f8c91 6236 
surefire_2.10-3.debian.tar.gz
 bc5b03c33f3bd876795ce054a5cf2a1f61d488efcd563b17ba476c5b95ea53a4 293626 
libsurefire-java_2.10-3_all.deb
Files: 
 081bf910be67fd1d41759fef471582a2 2338 java optional surefire_2.10-3.dsc
 b04db108b56e2f9433b676ff93b7a078 6236 java optional 
surefire_2.10-3.debian.tar.gz
 146dbd497eb6378d810594a346358f2c 293626 java optional 
libsurefire-java_2.10-3_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBAgAGBQJPb/qxAAoJECHSBYmXSz6WdOIP/0jCUv6aQxq+6bd4G0f4k5VM
yPqqifXZSY+QZ7EeLqLC0iDMhO7Gi4cy9k5QWgdUpE6ZlBRfJ8LhVjNgs+JGHZG2
wXXThX1uQsBGAbI51/GwnLUuzhC/GGEbsAy4Px1vJiRkGnmeEHxb5Hhznm3BWQCB
bptDrjHDlcemSJvlSuCn1pnA0mblrSDSO92fb40T3Fg2oOam9bK1zVXEKeK6C4/m
htUrom7aNaLATJVxTXnzhE+DoILhTectypaV7nB3nmasJthg0bUOIcx/4pLJhfa6
2gke7dJfMxNps7F2F6RpoDOO0HM3I9zz9a4P99HYVuUTvt7wMNokPYHhEAPIjTTV
0Z+CZBQOuK4d6CVld4jrppY9Cf3aBlHmB5p+qD6nbo/9zk4VI9cenoSUZnNVtTil
ysmwte2PN/K1Ge6RwoO5n4EY8Y0veIrJNZ+wvVBRAFESEvzlVNGMgmT+KI/9QMPH
OjCfDGevopzsOz4oj8rM0eKUNJEkNmv4H7SPLkLVbSoAzLW6/d5bYE2wI3XnmLWl
FNXxD264i8+jGiHC5hbzH74mmde+VQ1fjfAMIwu0znY/d966tEwI6WYLXh+Z0Fid
OQ+STunTm61dMpaRvWvIzY5eYHi2kqugq4e4m9Dhax2r2F+s4cMjlI6NhZsPjrK/
5TT9JrxiWLNcsKIOJqWK
=5uLD
-----END PGP SIGNATURE-----



--- End Message ---
__
This is the maintainer address of Debian's Java team
<http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers>. 
Please use
[email protected] for discussions and questions.

Reply via email to