You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org> on 2011/01/05 08:52:58 UTC

[jira] Closed: (SUREFIRE-85) java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException

     [ http://jira.codehaus.org/browse/SUREFIRE-85?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kristian Rosenvold closed SUREFIRE-85.
--------------------------------------

    Resolution: Cannot Reproduce
      Assignee: Kristian Rosenvold

After a review of the classloader code wrt this error, I am fairly certain this must be happening due to corrupt pom or jar files in the local repository. Purging local repositories seems to be solving this issue, which backs this up.

There are a lot of things that can be done to avoid this:
1. Turn on strict checksumming in downloads (-C)
2. Make sure you use the latest versions of all plugins and preferably maven too.
   * There are several threading bugs in older maven versions/plugins that could contribute to corrupting local artifacts.

If this issue re-surfaces and is *not* fixable by purging local repository, I suggest a new issue is created, preferably with a link to this issue, including stacktraces and all relevant information (minimum -X log files).


> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> -------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-85
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-85
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: classloading
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Windows XP / Sun JDK 1.5.0_06
>            Reporter: David J. M. Karlsen
>            Assignee: Kristian Rosenvold
>             Fix For: Backlog
>
>         Attachments: log.txt
>
>
> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> Exception in thread "main"
> is thrown during execution of the maven-surefire-plugin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira