maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jordan Hein (JIRA)" <j...@codehaus.org>
Subject [jira] (MPMD-142) PMD Report for maven site fails with ClassCastException
Date Tue, 07 Feb 2012 17:46:03 GMT

    [ https://jira.codehaus.org/browse/MPMD-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=291070#comment-291070
] 

Jordan Hein commented on MPMD-142:
----------------------------------

You are right, this effects only 2.7. I only had the pmd plugin configured in the reporting
section of my pom and not in the build section, thus I was unwittingly using 2.7. Once I sorted
this out for good measure I did test with 2.5 and 2.6 and they both work fine. Thanks again
for the quick fix and I'll look forward to the next release.
                
> PMD Report for maven site fails with ClassCastException 
> --------------------------------------------------------
>
>                 Key: MPMD-142
>                 URL: https://jira.codehaus.org/browse/MPMD-142
>             Project: Maven 2.x PMD Plugin
>          Issue Type: Bug
>    Affects Versions: 2.7
>         Environment: Maven 2.2.1, Jenkins 1.424.1, Linux RHEL 5
>            Reporter: Jan Ruzicka
>            Assignee: Dennis Lundberg
>             Fix For: 2.7.1
>
>         Attachments: testpom.xml
>
>
> Maven 2.2.1 is complaining when mvn site is run.
> It is stopping in PMD report.
> Section from log is below.
> This error appeared freshly this morning. The site goal run successfully before. 
> [INFO] Generating "PMD Report" report.
> [WARNING] Deprecated API called - not org.apache.maven.doxia.sink.Sink instance and no
SinkFactory available. Please update this plugin.
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] java.lang.String cannot be cast to java.io.File
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.ClassCastException: java.lang.String cannot be cast to java.io.File
> 	at org.apache.maven.plugin.pmd.AbstractPmdReport.getFilesToProcess(AbstractPmdReport.java:284)
> 	at org.apache.maven.plugin.pmd.PmdReport.generateReport(PmdReport.java:249)
> 	at org.apache.maven.plugin.pmd.PmdReport.execute(PmdReport.java:175)
> 	at org.apache.maven.plugin.pmd.PmdReport.executeReport(PmdReport.java:149)
> 	at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:190)
> 	at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:144)
> 	at org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:139)
> 	at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:269)
> 	at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:101)
> 	at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:133)
> 	at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:100)
> 	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> 	at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> 	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> 	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> 	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message