Re: BBWM : Chapter 6 build failure due to PMD

2006-07-21 Thread Hendrik Busch

Hi,


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:


What exactly is your question? You have several options: remove the PMD 
errors by correcting the code (see http://pmd.sf.net), remove the PMD 
check from the POM or contact the writers of the book and ask them to 
repair the source code.
Perhaps some new PMD rules were released since the writing of this book 
or the autors used a customized PMD configuration.



--
Mit freundlichen Grüßen / Kind regards

Hendrik Busch - Stellv. Leiter der Softwareentwicklung

LexisNexis Deutschland GmbH
http://www.lexisnexis.de
Feldstiege 100
D-48161 Münster
phone +49 (0) 2533-9300-455
fax +49 (0) 02533-9300-50
[EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: BBWM : Chapter 6 build failure due to PMD

2006-07-21 Thread dcabasson


Jeff Mutonho wrote:
 
 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:
 

Are you sure your archive file is unaltered? Maybe you're missing something.

I just downloaded the example from mergere, and everything is working fine:
[INFO]
-
---
[INFO] Building Maven Proficio XStream Store
[INFO]task-segment: [install]
[INFO]
-
---
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 1 source file to
E:\Temp\proficio\proficio-stores\proficio-store-xstre
am\target\classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
Compiling 2 source files to
E:\Temp\proficio\proficio-stores\proficio-store-xstr
eam\target\test-classes
[INFO] [surefire:test]
[INFO] Surefire report directory:
E:\Temp\proficio\proficio-stores\proficio-stor
e-xstream\target\surefire-reports

---
 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.541 sec
Running com.mergere.mvnbook.proficio.store.memory.AppTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.04 sec

Results :
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0

[INFO] [jar:jar]
[INFO] Building jar:
E:\Temp\proficio\proficio-stores\proficio-store-xstream\tar
get\proficio-store-xstream-1.0-SNAPSHOT.jar
[INFO] Preparing pmd:check
[INFO] [pmd:pmd]
[INFO] [pmd:check {execution: default}]
[INFO] Preparing cobertura:check
..

run a mvn pmd:check with the -e options on proficio-store-xstream, maybe we
could learn more about your PMD error.

Denis
-- 
View this message in context: 
http://www.nabble.com/BBWM-%3A-Chapter-6-build-failure-due-to-PMD-tf1980425.html#a5434932
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: BBWM : Chapter 6 build failure due to PMD

2006-07-21 Thread Mike Perham
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]



Re: BBWM : Chapter 6 build failure due to PMD

2006-07-21 Thread Jeff Mutonho

Thanks Mike

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]