Bug#486938: maven2.jar seems to be missing classes from org.apache.maven:maven-toolchain

Alexander Hvostov alex at aoi.dyndns.org
Thu Jun 19 05:48:49 UTC 2008


Package: maven2
Version: 2.0.9-1
Severity: normal

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

The shipped maven2.jar has the Maven metadata for artifact
org.apache.maven:maven-toolchain:1.0 but does not seem to contain this
artifact's classes.

As a result, I get a NoClassDefFoundError when attempting to build a
project that uses
org.apache.maven.plugins:maven-surefire-plugin:2.4.3 for its tests.
Version 2.4.3 of the Surefire plugin depends on the maven-toolchain
artifact where previous versions did not.

The reason this is a problem is that Maven doesn't try to download the
maven-toolchain artifact, believing incorrectly that this artifact is
built in and so does not need to be downloaded. See excerpt from debug
log:

- ----BEGIN LOG----
[DEBUG]  The following artifacts were filtered out for plugin: org.apache.maven.plugins:maven-surefire-plugin:2.4.3 because they're already in the core of Maven:

org.apache.maven:maven-plugin-api:jar:2.0.6:runtime
org.apache.maven:maven-artifact:jar:2.0.6:runtime
org.apache.maven:maven-project:jar:2.0.6:runtime
org.apache.maven:maven-core:jar:2.0.6:runtime
org.apache.maven:maven-toolchain:jar:1.0:runtime

These will use the artifact files already in the core ClassRealm instead, to allow them to be included in PluginDescriptor.getArtifacts().
- -----END LOG-----

Please include the maven-toolchain classes in maven2.jar.

- -- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.25 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages maven2 depends on:
ii  libcommons-cli-java      1.1-3           API for working with the command l
ii  libdoxia-java            1.0-alpha-7-1   a powerful content generation fram
ii  libjsch-java             0.1.37-3        java secure channel
ii  libjtidy-java            7+svn20070309-1 a Java port of HTML Tidy, a HTML s
ii  libplexus-interactivity- 1.0-alpha-6-2   interactivity API for the Plexus f
ii  libplexus-utils-java     1:1.4.8-1       utilities for the Plexus framework
ii  libwagon-java            1.0-beta-2-2    tools to manage Maven artifacts an
ii  libxalan2-java           2.7.1-2         XSL Transformations (XSLT) process

maven2 recommends no packages.

- -- no debconf information

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

iD8DBQFIWfNAtHQW4HWNftkRAqYWAJ9Jrq1KScXqLUi/V4tPzZ5d+W2yAACeNUsS
sUzLYUnGFBGzYHC7OYzCD7k=
=pYk8
-----END PGP SIGNATURE-----





More information about the pkg-java-maintainers mailing list