[ 
http://jira.codehaus.org/browse/MSITE-506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=236344#action_236344
 ] 

Olivier Lamy commented on MSITE-506:
------------------------------------

Yup I missed to mention this in my previous comment but this what I have done 
too :
{code}
    private boolean canGenerateReport( MavenReport mavenReport, MojoExecution 
mojoExecution )
    {
        ClassLoader originalClassLoader = 
Thread.currentThread().getContextClassLoader();
        try
        {
               
           
Thread.currentThread().setContextClassLoader(mojoExecution.getMojoDescriptor().getRealm()
 );

            
            return mavenReport.canGenerateReport();
        }
        catch ( AbstractMethodError e )
        {
            // the canGenerateReport() has been added just before the 2.0 
release and will cause all the reporting
            // plugins with an earlier version to fail (most of the 
org.codehaus mojo now fails)
            // be nice with them, output a warning and don't let them break 
anything

            getLog().warn(
                           "Error loading report " + 
mavenReport.getClass().getName()
                               + " - AbstractMethodError: canGenerateReport()" 
);
            return true;
        }
        catch (Exception e)
        {
            getLog().error( e.getMessage(), e );
            return false;
        }
        finally
        {
            Thread.currentThread().setContextClassLoader( originalClassLoader );
        } 
{code}

> Maven3 conflict with plexus-archiver
> ------------------------------------
>
>                 Key: MSITE-506
>                 URL: http://jira.codehaus.org/browse/MSITE-506
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 3.0-beta-2
>         Environment: Apache Maven 3.0-SNAPSHOT (r999839; 2010-09-22 
> 11:43:26+0200)
> Java version: 1.7.0-ea
> Java home: /home/pether/tools/jdk1.7.0/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux" version: "2.6.32-25-generic" arch: "amd64" Family: "unix"
>            Reporter: Pether Sorling
>            Assignee: Olivier Lamy
>             Fix For: 3.0-beta-3
>
>         Attachments: testmaven3.zip
>
>
> Verson 2.7 and 2.8-SNAPSHOT have some issues with maven3. Works with 2.6.1, 
> different version of plexus archiver conflicts with maven.
> failed to get Reports: 
> org.codehaus.plexus.archiver.zip.ZipUnArchiver$__plexus5 cannot be cast to 
> org.codehaus.plexus.archiver.UnArchiver 

-- 
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

        

Reply via email to