[ http://jira.codehaus.org/browse/MPMD-36?page=comments#action_69143 ]
Sharmarke Aden commented on MPMD-36: ------------------------------------ I have no control over directory structures if I use jar packaging. My project has to have the following directory structure: -> bin (directory) -> server -> lib (directory) -> conf (directory) -> config-templates (directory) -> app.config -> log4j.properties -> web (directory) -> WEB-INF -> classes -> [logs] (directory) -> start.sh I delved into the pmd plugin code in svn and it seems that the "canGenerateReport()" method in the AbstractPmdReport class returns false. The artifactHandler.getLanguage() call appears to return "none" which stops the plugin from further execution since the plugin requires that it return "java" to continue. > PMD Reports Not Generated for Projects Using POM Packaging > ----------------------------------------------------------- > > Key: MPMD-36 > URL: http://jira.codehaus.org/browse/MPMD-36 > Project: Maven 2.x Pmd Plugin > Type: Bug > Versions: 2.0 > Environment: WinXP SP2, Pentium 4, Cygwin, Maven 2.0.4 > Reporter: Sharmarke Aden > Assignee: Mike Perham > Attachments: modulePOM.xml, parentPOM.xml > > > My project uses the assembly plugin and thus uses pom based packaging: > <packaging>jar</packaging> > It seems that the PMD plugin only creates reports for projects utilizing > archive based packaging such as jar and war but not for projects using pom > based packaging. -- 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