You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Pether Sorling (JIRA)" <ji...@codehaus.org> on 2010/09/22 11:55:32 UTC

[jira] Created: (MJAVADOC-293) Maven3 conflict with plexus-archiver

Maven3 conflict with plexus-archiver
------------------------------------

                 Key: MJAVADOC-293
                 URL: http://jira.codehaus.org/browse/MJAVADOC-293
             Project: Maven 2.x Javadoc Plugin
          Issue Type: Bug
    Affects Versions: 2.7, 2.8
         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


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

        

[jira] Commented: (MSITE-506) Maven3 conflict with plexus-archiver

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=236345#action_236345 ] 

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

oups my bad there is an other call (really superfluous !!) to this canGenerateReport .
Thanks to benjamin eyes :-)

> 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

        

[jira] Commented: (MNG-4833) Maven3 conflict with plexus-archiver

Posted by "Stuart McCulloch (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=236249#action_236249 ] 

Stuart McCulloch commented on MNG-4833:
---------------------------------------

OK, here's the problem:

The maven-site-plugin calls the canGenerateReport method of the JavadocReport without setting the TCCL or lookupRealm to the maven-javadoc-plugin realm. This means any (string-based) Plexus component lookup requests will use the site plugin context. As the stack trace below shows, the JavadocReport looks up an UnArchiver while processing the canGenerateReport request. Because it is using the site plugin context and not the javadoc plugin context, the ZipUnArchiver it finds is not classloader compatible (it is doing a pure string-based lookup so we only find out about the incompatibility when the value is assigned).

Solution:

Presumably canGenerateReport implementations are allowed to lookup Plexus components, so the maven-site-plugin must set the TCCL to the appropriate realm before calling the method and reset it afterwards (as it already does for isMavenReport). Otherwise the maven-javadoc-plugin would have to set (and reset) the TCCL itself when looking up the UnArchiver - unless of course they could switch to a type-based role lookup instead of the existing string-based one.

Either way, this is something that needs to be resolved between the site and javadoc plugins.

{code}
at org.codehaus.plexus.archiver.manager.DefaultArchiverManager.getUnArchiver(DefaultArchiverManager.java:76)
at org.apache.maven.plugin.javadoc.resolver.ResourceResolver.resolveAndUnpack(ResourceResolver.java:357)
at org.apache.maven.plugin.javadoc.resolver.ResourceResolver.resolveFromArtifacts(ResourceResolver.java:302)
at org.apache.maven.plugin.javadoc.resolver.ResourceResolver.resolveDependencySourcePaths(ResourceResolver.java:143)
at org.apache.maven.plugin.javadoc.AbstractJavadocMojo.getDependencySourcePaths(AbstractJavadocMojo.java:2169)
at org.apache.maven.plugin.javadoc.AbstractJavadocMojo.getSourcePaths(AbstractJavadocMojo.java:2058)
at org.apache.maven.plugin.javadoc.JavadocReport.canGenerateReport(JavadocReport.java:213)
at org.apache.maven.plugins.site.DefaultMavenReportExecutor.canGenerateReport(DefaultMavenReportExecutor.java:272)
at org.apache.maven.plugins.site.DefaultMavenReportExecutor.buildMavenReports(DefaultMavenReportExecutor.java:254)
at org.apache.maven.plugins.site.AbstractSiteRenderingMojo.getReports(AbstractSiteRenderingMojo.java:208)
at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:105)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:195)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:314)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:132)
{code}


> Maven3 conflict with plexus-archiver
> ------------------------------------
>
>                 Key: MNG-4833
>                 URL: http://jira.codehaus.org/browse/MNG-4833
>             Project: Maven 2 & 3
>          Issue Type: Bug
>    Affects Versions: 3.0-beta-3
>         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
>         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

        

[jira] Commented: (MJAVADOC-293) Maven3 conflict with plexus-archiver

Posted by "Stuart McCulloch (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MJAVADOC-293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=236067#action_236067 ] 

Stuart McCulloch commented on MJAVADOC-293:
-------------------------------------------

I can't recreate this locally and I was also able to build the 2.8-SNAPSHOT of the javadoc plugin with the latest Maven 3.0-RC1 binary (including UTs and ITs) so it's probably something specific to your project configuration.

A detailed build log or (even better) an example project would really help identify the problem.

> Maven3 conflict with plexus-archiver
> ------------------------------------
>
>                 Key: MJAVADOC-293
>                 URL: http://jira.codehaus.org/browse/MJAVADOC-293
>             Project: Maven 2.x Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 2.7, 2.8
>         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
>
> 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

        

[jira] Commented: (MJAVADOC-293) Maven3 conflict with plexus-archiver

Posted by "Pether Sorling (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MJAVADOC-293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=236116#action_236116 ] 

Pether Sorling commented on MJAVADOC-293:
-----------------------------------------

Attached a simple java project, same problem with 2.8-SNAPSHOT. 

> Maven3 conflict with plexus-archiver
> ------------------------------------
>
>                 Key: MJAVADOC-293
>                 URL: http://jira.codehaus.org/browse/MJAVADOC-293
>             Project: Maven 2.x Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 2.7, 2.8
>         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
>         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

        

[jira] Moved: (MNG-4833) Maven3 conflict with plexus-archiver

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4833?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann moved MJAVADOC-293 to MNG-4833:
-------------------------------------------------

           Complexity: Intermediate
    Affects Version/s:     (was: 2.8)
                           (was: 2.7)
                       3.0-beta-3
                  Key: MNG-4833  (was: MJAVADOC-293)
              Project: Maven 2 & 3  (was: Maven 2.x Javadoc Plugin)

> Maven3 conflict with plexus-archiver
> ------------------------------------
>
>                 Key: MNG-4833
>                 URL: http://jira.codehaus.org/browse/MNG-4833
>             Project: Maven 2 & 3
>          Issue Type: Bug
>    Affects Versions: 3.0-beta-3
>         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
>         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

        

[jira] Moved: (MSITE-506) Maven3 conflict with plexus-archiver

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSITE-506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann moved MNG-4833 to MSITE-506:
----------------------------------------------

           Complexity:   (was: Intermediate)
    Affects Version/s:     (was: 3.0-beta-3)
                       3.0-beta-2
                  Key: MSITE-506  (was: MNG-4833)
              Project: Maven 2.x Site Plugin  (was: Maven 2 & 3)

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

        

[jira] Commented: (MNG-4833) Maven3 conflict with plexus-archiver

Posted by "Stuart McCulloch (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=236227#action_236227 ] 

Stuart McCulloch commented on MNG-4833:
---------------------------------------

Interestingly I get the exact same ClassCastException when I swap out Guice and put back the old Plexus container, which suggests it's not a straightforward compatibility issue.

> Maven3 conflict with plexus-archiver
> ------------------------------------
>
>                 Key: MNG-4833
>                 URL: http://jira.codehaus.org/browse/MNG-4833
>             Project: Maven 2 & 3
>          Issue Type: Bug
>    Affects Versions: 3.0-beta-3
>         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
>         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

        

[jira] Updated: (MSITE-506) Maven3 conflict with plexus-archiver

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSITE-506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy updated MSITE-506:
-------------------------------

    Fix Version/s: 3.0-beta-3

> 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

        

[jira] Commented: (MSITE-506) Maven3 conflict with plexus-archiver

Posted by "Pether Sorling (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=236350#action_236350 ] 

Pether Sorling commented on MSITE-506:
--------------------------------------

Thanks, works excellent now. Will update http://cia.sourceforge.net/apidocs/index.html asap, nice to get aggregated javadocs again. 

> 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

        

[jira] Commented: (MNG-4833) Maven3 conflict with plexus-archiver

Posted by "Stuart McCulloch (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=236207#action_236207 ] 

Stuart McCulloch commented on MNG-4833:
---------------------------------------

PS. the reason this doesn't show up with maven-javadoc-plugin 2.6.1 is because the error is triggered by the new ResourceResolver added in 2.7.

> Maven3 conflict with plexus-archiver
> ------------------------------------
>
>                 Key: MNG-4833
>                 URL: http://jira.codehaus.org/browse/MNG-4833
>             Project: Maven 2 & 3
>          Issue Type: Bug
>    Affects Versions: 3.0-beta-3
>         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
>         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

        

[jira] Commented: (MJAVADOC-293) Maven3 conflict with plexus-archiver

Posted by "Pether Sorling (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MJAVADOC-293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=236118#action_236118 ] 

Pether Sorling commented on MJAVADOC-293:
-----------------------------------------

Sorry forgot to mention I get the exception running "mvn site". 

> Maven3 conflict with plexus-archiver
> ------------------------------------
>
>                 Key: MJAVADOC-293
>                 URL: http://jira.codehaus.org/browse/MJAVADOC-293
>             Project: Maven 2.x Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 2.7, 2.8
>         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
>         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

        

[jira] Commented: (MJAVADOC-293) Maven3 conflict with plexus-archiver

Posted by "Stuart McCulloch (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MJAVADOC-293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=236127#action_236127 ] 

Stuart McCulloch commented on MJAVADOC-293:
-------------------------------------------

thanks, I can recreate the exception using your example project (I don't have the JIRA rights to assign this issue to myself, but in case anyone is reading this I will work on this issue tomorrow)

> Maven3 conflict with plexus-archiver
> ------------------------------------
>
>                 Key: MJAVADOC-293
>                 URL: http://jira.codehaus.org/browse/MJAVADOC-293
>             Project: Maven 2.x Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 2.7, 2.8
>         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
>         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

        

[jira] Updated: (MJAVADOC-293) Maven3 conflict with plexus-archiver

Posted by "Pether Sorling (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MJAVADOC-293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pether Sorling updated MJAVADOC-293:
------------------------------------

    Attachment: testmaven3.zip

Simple maven projects, fails with maven3. Version 2.7 of the maven-javadoc plugin..

> Maven3 conflict with plexus-archiver
> ------------------------------------
>
>                 Key: MJAVADOC-293
>                 URL: http://jira.codehaus.org/browse/MJAVADOC-293
>             Project: Maven 2.x Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 2.7, 2.8
>         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
>         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

        

[jira] Commented: (MJAVADOC-293) Maven3 conflict with plexus-archiver

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MJAVADOC-293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=236053#action_236053 ] 

Benjamin Bentmann commented on MJAVADOC-293:
--------------------------------------------

This looks more like an issue with the Guice-based Plexus shim, can you share some more details like the full build log or an example project to reproduce it?

> Maven3 conflict with plexus-archiver
> ------------------------------------
>
>                 Key: MJAVADOC-293
>                 URL: http://jira.codehaus.org/browse/MJAVADOC-293
>             Project: Maven 2.x Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 2.7, 2.8
>         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
>
> 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

        

[jira] Closed: (MSITE-506) Maven3 conflict with plexus-archiver

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSITE-506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy closed MSITE-506.
------------------------------

    Resolution: Fixed

fixed [rev 1000852|http://svn.apache.org/viewvc?rev=1000852&view=rev]
Thanks guys for help !

> 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

        

[jira] Commented: (MSITE-506) Maven3 conflict with plexus-archiver

Posted by "Stuart McCulloch (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=236334#action_236334 ] 

Stuart McCulloch commented on MSITE-506:
----------------------------------------

Updating the site plugin copy of the plexus-archiver jar won't make any difference, it is still separate from the copy in the javadoc plugin realm. In order for string-based Plexus lookups to work the TCCL must be set to the plugin realm when invoking plugin specific code. This is the same for the original Plexus container as well as the new adapter. The container has to have some way to disambiguate a pure string role into an actual type and this is done by looking at the TCCL to see what realms are visible in the context of the request. This is why Maven core always sets the TCCL to the plugin realm before calling plugin code, and the site plugin has to do the same when calling report 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

        

[jira] Commented: (MSITE-506) Maven3 conflict with plexus-archiver

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=236331#action_236331 ] 

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

thanks Stuart for detailled analysis.
Next try. I have updated plexus-archiver version to the same version as in the javadoc plugin.
Now the exception says :
{code}
A type incompatibility occured while executing org.apache.maven.plugins:maven-site-plugin:3.0-beta-3-SNAPSHOT:site: org.codehaus.plexus.archiver.zip.ZipUnArchiver$__plexus6 cannot be cast to org.codehaus.plexus.archiver.UnArchiver
{code}
full here http://pastie.org/1178940.
Searching in class loader stuff ....


> 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

        

[jira] Commented: (MSITE-506) Maven3 conflict with plexus-archiver

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
    [ 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