Re: maven-pmd-plugin empty pmd.xml
Basically I've got several modules in one parent dir: AllModules ++Module1 ++Module2 ++Module3 I've got one pom for AllModules that simply integrates all other modules. Here are the poms: http://pastebin.com/DWhWCKcU I've got empty report even if I run pmd using child poms. Thanks. 2012/2/6 Wayne Fay wayne...@gmail.com When I'm running mvn clean compile test pmd:pmd pmd:check my pmd.xml inside target dir is empty. put error-prone souce file directly into src/main/java my build fails. So it maybe a problem with lookup of the source files. This suggests that you've customized your source paths in the pom, is that right? Why did you do this? Maven is opinionated and things like this should be avoided unless absolutely required. You probably need to show some more lines from your pom file. Ideally you'd post it at pastebin.com and send a link here rather than sending a full pom. BTW this list strips attachments. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven-pmd-plugin empty pmd.xml
Hi Wayene. Thank you very much for answer. There is reason why I use thoses phases -- Jenkins CI. I don't need full site lifecycle. The reason why pmd is needed -- is to enforce coding style and standarts and fail build in case of some violations. There is no need of html/csv reports in my scenario at all. I just don't understand why maven pmd plugin doesn't work as expected in my simpliest poms provided above - perhaps some hidden feature not listed in official documentation. Please advise. PS. site also generates empty report. 2012/2/6 Wayne Fay wayne...@gmail.com I've got empty report even if I run pmd using child poms. ... When I'm running mvn clean compile test pmd:pmd pmd:check my pmd.xml inside target dir is empty. You probably need to run mvn site rather than the complicated clean compile test pmd:pmd etc. Try that and report back. And go back to Maven.org to read up on Intro to Maven documentation so you understand how the lifecycle works. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven-pmd-plugin empty pmd.xml
I've put pmd config into build section of my pom (exactly as is in documentation). Still no effect and empty pmd.xml: ?xml version=1.0 encoding=UTF-8? pmd version=4.3 timestamp=2012-02-07T08:34:59.070 /pmd Please advise 2012/2/7 Barrie Treloar baerr...@gmail.com On Tue, Feb 7, 2012 at 7:19 AM, Wayne Fay wayne...@gmail.com wrote: Jenkins CI. I don't need full site lifecycle. The reason why pmd is needed -- is to enforce coding style and standarts and fail build in case of some violations. There is no need of html/csv reports in my scenario at all. I don't use this plugin as a regular thing so I can't tell you why it isn't working. I am simply going on the documentation that is published. If you aren't using the site and just want to have PMD complain about rule violations, you probably don't want to use the reporting section but instead the build section of your pom. And you probably want to use the check goal. As Wayne says: http://maven.apache.org/plugins/maven-pmd-plugin/examples/violationChecking.html - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org