[Dev] [Automation][DS] Build is not getting fail since the find-bug finds bugs in the code

2015-11-19 Thread Rajeenthini Satkunam
Hi all,

I would like to integrate find-bug plugin with a maven build of product DS
Integration test module(Dashboard Server).So I have added the plugin maven
find-bug under plugins in POM of integration module of product DS.
Here is the code I have added in POM.


org.codehaus.mojo
findbugs-maven-plugin

Max
Low
true

${project.build.directory}/findbugs
true
true



analyze-compile
verify

check





But the build is not getting fail even I got some bugs through find-bug
tool.I can produce the findbugsXml.xml file under directory findBug.Can
anyone tell that do I need to add any other configurations to run this tool
for test sources rather than adding this plugin to POM?

I have asked this from StackOverFlow as well you can find the question
here[1].
[1] -
http://stackoverflow.com/questions/33796044/how-can-i-integrate-find-bug-maven-plugin-to-integration-test-module

references

[2] - http://gleclaire.github.io/findbugs-maven-plugin/
[3] -
http://stackoverflow.com/questions/33234692/maven-findbugs-plugin-how-to-run-findbug-on-the-test-classes
-- 

*Thank You.*

*Rajeenthini Satkunam*

*Associate Software Engineer | WSO2*


*E:rajeenth...@wso2.com *

*M :+94770832823   *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Automation][DS] Build is not getting fail since the find-bug finds bugs in the code

2015-11-19 Thread Rajeenthini Satkunam
Hi chamara,

I have already tried the way you have mentioned that removing testOnFailure
as well as change  to compile. Even when I changed the phase to
compile, it does not produce findbugxml file.And I have version
specification in a Parent POM as below.


org.apache.maven.plugins
findbugs-maven-plugin
${maven.findbugsplugin.version}


3.0.2

my current find-bug plugin in POM of test module.


org.codehaus.mojo
findbugs-maven-plugin

Max
Low
true

${project.build.directory}/findbugs
true



analyze-compile
compile

check





Can you please give more suggestions on this.Thanks in advance.


On Fri, Nov 20, 2015 at 9:31 AM, Isuru Rupasinghe  wrote:

> Hi Chamara,
>
> Released the message.
>
> Thanks & Regards,
>
> *Isuru Rupasinghe*
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middle-ware
>
> mobile: +94 77 590 4545
> <%2B94%2077%20352%C2%A05930>
> office: +94 11 214 5345 / +94 11 743 5800 ext: 5739
>
>
> On Fri, Nov 20, 2015 at 8:23 AM, Chamara Philips 
> wrote:
>
>> Please release the mail.
>> -- Forwarded message --
>> From: Chamara Philips 
>> Date: Fri, Nov 20, 2015 at 8:21 AM
>> Subject: Fwd: [Dev] [Automation][DS] Build is not getting fail since the
>> find-bug finds bugs in the code
>> To: WSO2 Developers' List 
>>
>>
>>
>> ---------- Forwarded message --
>> From: Chamara Philips 
>> Date: Fri, Nov 20, 2015 at 8:15 AM
>> Subject: Re: [Dev] [Automation][DS] Build is not getting fail since the
>> find-bug finds bugs in the code
>> To: Rajeenthini Satkunam 
>>
>>
>> Hi Rajeenthini,
>>
>> It is not necessary to set failOnError to true, as it is default. Can you
>> please try removing the "failOnError" property. Also you have missed the
>> version. Following plugin declaration worked for me to run it successfully
>> without integrating tests. I think adding "includeTests" should work fine
>> with tests.
>>
>> 
>> 
>> 
>> org.codehaus.mojo
>> findbugs-maven-plugin
>> 2.5.2
>> 
>>
>> Max
>>
>> Low
>>
>> true
>>
>>
>> ${project.build.directory}/findbugs
>> 
>> 
>> 
>> analyze-compile
>> compile
>> 
>> check
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> Thanks.
>>
>> On Thu, Nov 19, 2015 at 2:54 PM, Rajeenthini Satkunam <
>> rajeenth...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> I would like to integrate find-bug plugin with a maven build of product
>>> DS Integration test module(Dashboard Server).So I have added the plugin
>>> maven find-bug under plugins in POM of integration module of product DS.
>>> Here is the code I have added in POM.
>>>
>>> 
>>> org.codehaus.mojo
>>> findbugs-maven-plugin
>>> 
>>> Max
>>> Low
>>> true
>>> 
>>> ${project.build.directory}/findbugs
>>> true
>>> true
>>> 
>>> 
>>> 
>>> analyze-compile
>>> verify
>>> 
>>> check
>>> 
>>> 
>>> 
>>> 
>>>
>>> But the build is not getting fail even I got some bugs through find-bug
>>> tool.I can produce the findbugsXml.xml file under directory findBug.Can
>>> anyone tell that do I need to add any other configurations to run this tool
>>> for test sources rather than adding this plugin to POM?
>>>
>>> I have asked this from StackOverFlow as well you can find the question
>>> here[1].
>>> [1] -
>>> http://stackoverflow.com/questions/33796044/how-can-i-integrate-find-bug-maven-plugin-to-integration-test-module
>>>
>>> references
>>>
>>> [2] - http://gleclaire.github.io/findbugs-maven-plugin/
>>> [3] -
>>> http://stackoverflow.com/questions/33234692/maven-findbugs-plugin-how-to-run-findbug-on-the-test-classes
>>> --
>>>
>>> *Thank You.*
>>>
>>>