The book was probably written against pmd-plugin 2.0 or earlier. We've upgraded the PMD version several times since then and they add new rules to our default rulesets all the time. In other words, you might not have done anything wrong and still see errors due to new rules being triggered.
Take a look at the PMD report and fix the errors or remove the pmd:check goal in the build. -----Original Message----- From: Jeff Mutonho [mailto:[EMAIL PROTECTED] Sent: Friday, July 21, 2006 9:08 AM To: Maven Users List Subject: BBWM : Chapter 6 build failure due to PMD I'm going through chapter 6 .Running "mvn install" for the examples(as instructed on page 158) is giving me build failure due to PMD violations.The offending projecting is proficio-store-xstream: [INFO] [surefire:test] [INFO] Surefire report directory: D:\Better_Builds_With_Maven\_content-files-cod e-Code_Ch06-1\proficio\proficio-stores\proficio-store-xstream\target\sur efire-re ports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running com.mergere.mvnbook.proficio.store.xstream.AppTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.157 sec Running com.mergere.mvnbook.proficio.store.memory.AppTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec Results : Tests run: 2, Failures: 0, Errors: 0, Skipped: 0 [INFO] [jar:jar] [INFO] Building jar: D:\Better_Builds_With_Maven\_content-files-code-Code_Ch06-1 \proficio\proficio-stores\proficio-store-xstream\target\proficio-store-x stream-1 .0-SNAPSHOT.jar [INFO] Preparing pmd:check [INFO] [pmd:pmd] [INFO] [pmd:check {execution: default}] [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] You have 2 PMD violations. [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 20 seconds [INFO] Finished at: Fri Jul 21 16:04:37 CAT 2006 [INFO] Final Memory: 13M/24M [INFO] ------------------------------------------------------------------------ -- Jeff Mutonho GoogleTalk : ejbengine Skype : ejbengine Registered Linux user number 366042 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
