Re: PMD'S or findbug's report

2011-03-15 Thread pradeepcheers
Hi All,

Even I'm facing the same problem. I'm not able to use the rulesets from the
configuration tag of pom.xml. 
The command mvn pmd:pmd runs successfully with out errors and generates
report for the basic, imports and unusedcode ruleset but not for other like
braces or naming. 

I tried eclipse PMD plugin and it generates reports for all the ruleset
without any issue. 



  
org.apache.maven.plugins
maven-pmd-plugin
2.5


/rulesets/braces.xml

/rulesets/naming.xml

UTF-8   
false
1.6
true
true


  



Please help!
Thanks

--
View this message in context: 
http://maven.40175.n5.nabble.com/PMD-S-or-findbug-s-report-tp3397936p3700180.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: PMD'S or findbug's report

2011-02-25 Thread Wayne Fay
> Can I think that  "pmd-jdk14" is to config the
> JDK's version? if yes, Unfortunately, there is no any info in the pmd report

No, this generally means the plugin is coded to work with JDK4 or
higher. This means it does not use any special features of JDK5 or 6
that would mean that someone using JDK4 would not be able to use it.

> I had got error info with it in PMD report (mvn site), but only three. I had
> got a lot via plugin in Eclipse. that's why I inqured the difference.

Again, this list is the wrong place for a detailed discussion on PMD.
Please ask their user list for help.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: PMD'S or findbug's report

2011-02-24 Thread jy hu
Hi
Can I think that  "pmd-jdk14" is to config the
JDK's version? if yes, Unfortunately, there is no any info in the pmd report
with JDK1.4.  It doesn't work cos Jdk1.6 is useful to run my project, so I
defined the JDK as shown .

...

 ${compileSource}

...
 
...
  1.6
...

I had got error info with it in PMD report (mvn site), but only three. I had
got a lot via plugin in Eclipse. that's why I inqured the difference.

I scrutinized the *Using Rule Sets.* and learned that PMD plugin uses three
default rule sets in Maven. wanna use other rule sets to configure it in the
plugin as shown
...

d:\your folder\design.xml
...

As for it, I am not sure if i am right. Anyway, More info I gained in PMD
report, More ruleset I added in POM.xml.
Maybe someone can make a detailed descripation of it. thanks

Cheer
Jaina,



On Fri, Feb 25, 2011 at 10:19 AM, Wayne Fay  wrote:

> > Am I correct based on the above version No. which look like different? if
> > not, could you pls tell me how to rectify? thanks!
>
>
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-pmd-plugin/2.5/maven-pmd-plugin-2.5.pom
> tells us that m-pmd-p version 2.5 uses
> 
>  pmd
>  pmd-jdk14
>  4.2.5
> 
>
> and
>
> http://repo1.maven.org/maven2/org/codehaus/mojo/findbugs-maven-plugin/2.3.1/findbugs-maven-plugin-2.3.1.pom
> tells us that findbugs-m-p version 2.3.1 uses
> 
>  com.google.code.findbugs
>  findbugs-ant
>  1.3.9
> 
>
> As for how to guarantee you are running the same rulesets and versions
> etc, I have absolutely no idea. Perhaps the findbugs and pmd user
> lists would be more useful for such a specific line of questioning...
>
> Wayne
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 
**
*Warm wishes,*
*Jaina(hu jun ying)*


Re: PMD'S or findbug's report

2011-02-24 Thread Wayne Fay
> Am I correct based on the above version No. which look like different? if
> not, could you pls tell me how to rectify? thanks!

http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-pmd-plugin/2.5/maven-pmd-plugin-2.5.pom
tells us that m-pmd-p version 2.5 uses

  pmd
  pmd-jdk14
  4.2.5


and
http://repo1.maven.org/maven2/org/codehaus/mojo/findbugs-maven-plugin/2.3.1/findbugs-maven-plugin-2.3.1.pom
tells us that findbugs-m-p version 2.3.1 uses

  com.google.code.findbugs
  findbugs-ant
  1.3.9


As for how to guarantee you are running the same rulesets and versions
etc, I have absolutely no idea. Perhaps the findbugs and pmd user
lists would be more useful for such a specific line of questioning...

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: PMD'S or findbug's report

2011-02-24 Thread jy hu
Hi,

Let me add the configuration of Pmd/Findbugs in maven:
org.apache.maven.plugins
maven-pmd-plugin
2.5
__
org.codehaus.mojo
findbugs-maven-plugin
2.3.1


Also I install the pmd/findbugs pulg-in via the Help> Install new software
in Eclipse.

PMD: http://pmd.sf.net/eclipse, select PMD for Eclipse3, version
3.2.6V200903300643
FindBugs: http://findbugs.cs.umd.edu/eclipse, select Findbus version
1.3.9.20090821
Am I correct based on the above version No. which look like different? if
not, could you pls tell me how to rectify? thanks!

Best regards,
Jaina

On Fri, Feb 25, 2011 at 5:14 AM, Collins, Russell wrote:

> As far as Findbugs goes, also make sure you are using the same thresholds
> (analysis effort) and the same bugs are included/excluded in both places.
>
>
> Russell Collins
> Sr. Software Engineer
> CoreLogic Spatial Solutions
>
> "Do or do not, there is no try." - Yoda
>
> -Original Message-
> From: bmat...@gmail.com [mailto:bmat...@gmail.com] On Behalf Of Baptiste
> MATHUS
> Sent: Thursday, February 24, 2011 1:04 AM
> To: Maven Users List
> Subject: Re: PMD'S or findbug's report
>
>  Hi,
> Most likely, you might not be using the same version of pmd/findbugs.
> As long as you take care to define the same rule you'll have the same
> results (at least I can say that for pmd as we're using it almost every
> day).
>
> Cheers
> Le 24 févr. 2011 01:59, "jy hu"  a écrit :
> > Hi Everyone,
> >
> > I am wondering why there is a maked difference in the checking result
> > (Pmd,or Findbugs) between mvn site and plug-in in Eclipse .
> >
> >
> > Here are two checks for the same maven project as bellow ,
> > 1, I installed the Pmd and Findbugs's plug-in in Eclipse. then to check
> the
> > project by using PMD or Findbugs.I found many codes were marked in java
> > files.
> >
> > 2, I typed mvn site via Cmd or run MVN in Eclipse after I configed Pmd
> and
> > FindBugs's report in POM.xml. then I open the index.html in site folder,
> but
> > only several errors were marked in the Pmd or FindBug's report.
> > particularly, PMD's report included an info in a java file.
> >
> > I don't why, Does anyone tell me what I am missing in MVN? why are they
> > difference? Many thanks!
> >
> > --
> > **
> > *Warm wishes,*
> > *Jaina(hu jun ying)*
>
> ***
> This message may contain confidential or proprietary information intended
> only
> for the use of the addressee(s) named above or may contain information that
> is
> legally privileged. If you are not the intended addressee, or the person
> responsible for delivering it to the intended addressee, you are hereby
> notified that reading, disseminating, distributing or copying this message
> is
> strictly prohibited. If you have received this message by mistake, please
> immediately notify us by replying to the message and delete the original
> message and any copies immediately thereafter.
>
> Thank you.
> 
>



-- 
**
*Warm wishes,*
*Jaina(hu jun ying)*


RE: PMD'S or findbug's report

2011-02-24 Thread Collins, Russell
As far as Findbugs goes, also make sure you are using the same thresholds 
(analysis effort) and the same bugs are included/excluded in both places.


Russell Collins
Sr. Software Engineer
CoreLogic Spatial Solutions

"Do or do not, there is no try." - Yoda

-Original Message-
From: bmat...@gmail.com [mailto:bmat...@gmail.com] On Behalf Of Baptiste MATHUS
Sent: Thursday, February 24, 2011 1:04 AM
To: Maven Users List
Subject: Re: PMD'S or findbug's report

Hi,
Most likely, you might not be using the same version of pmd/findbugs.
As long as you take care to define the same rule you'll have the same
results (at least I can say that for pmd as we're using it almost every
day).

Cheers
Le 24 févr. 2011 01:59, "jy hu"  a écrit :
> Hi Everyone,
>
> I am wondering why there is a maked difference in the checking result
> (Pmd,or Findbugs) between mvn site and plug-in in Eclipse .
>
>
> Here are two checks for the same maven project as bellow ,
> 1, I installed the Pmd and Findbugs's plug-in in Eclipse. then to check
the
> project by using PMD or Findbugs.I found many codes were marked in java
> files.
>
> 2, I typed mvn site via Cmd or run MVN in Eclipse after I configed Pmd and
> FindBugs's report in POM.xml. then I open the index.html in site folder,
but
> only several errors were marked in the Pmd or FindBug's report.
> particularly, PMD's report included an info in a java file.
>
> I don't why, Does anyone tell me what I am missing in MVN? why are they
> difference? Many thanks!
>
> --
> **
> *Warm wishes,*
> *Jaina(hu jun ying)*

***
This message may contain confidential or proprietary information intended only
for the use of the addressee(s) named above or may contain information that is
legally privileged. If you are not the intended addressee, or the person
responsible for delivering it to the intended addressee, you are hereby
notified that reading, disseminating, distributing or copying this message is
strictly prohibited. If you have received this message by mistake, please
immediately notify us by replying to the message and delete the original
message and any copies immediately thereafter.

Thank you.



Re: PMD'S or findbug's report

2011-02-23 Thread Baptiste MATHUS
Hi,
Most likely, you might not be using the same version of pmd/findbugs.
As long as you take care to define the same rule you'll have the same
results (at least I can say that for pmd as we're using it almost every
day).

Cheers
Le 24 févr. 2011 01:59, "jy hu"  a écrit :
> Hi Everyone,
>
> I am wondering why there is a maked difference in the checking result
> (Pmd,or Findbugs) between mvn site and plug-in in Eclipse .
>
>
> Here are two checks for the same maven project as bellow ,
> 1, I installed the Pmd and Findbugs's plug-in in Eclipse. then to check
the
> project by using PMD or Findbugs.I found many codes were marked in java
> files.
>
> 2, I typed mvn site via Cmd or run MVN in Eclipse after I configed Pmd and
> FindBugs's report in POM.xml. then I open the index.html in site folder,
but
> only several errors were marked in the Pmd or FindBug's report.
> particularly, PMD's report included an info in a java file.
>
> I don't why, Does anyone tell me what I am missing in MVN? why are they
> difference? Many thanks!
>
> --
> **
> *Warm wishes,*
> *Jaina(hu jun ying)*