On 04/30/2011 06:24 PM, Andrea Aime wrote:
> On Sat, Apr 30, 2011 at 6:07 PM, Joachim Van der Auwera
> <[email protected]>  wrote:
>> Cool.
>>
>> Did you do anything special to get this to run? I tried running it on
>> our ci/sonar system a couple of weeks ago but failed.
> This is running on my development machine, so I just made a manual
> maven run.
> This is more or less the recipe:
>
> - following the user guide reccomendations at:
>    http://docs.codehaus.org/display/SONAR/Analyse+with+Maven
>   do in your project (for example, GeoTools):
>   mvn clean install -Dtest=false -DfailIfNoTests=false -Dall
>   mvn sonar:sonar -Dall -Psonar
>
> - wait a lot, when the build finishes you should have the project information
>    available at http://localhost:9000
>
> Last week I tried with the embedded db and it was a real pain, looking
> around they in fact say it's good only for demo purposes on small projects
> with a small sonar build history
We have it running on postgres. Seem to work fine, though adding the 
sonar build step adds roughly 50% to the build times on our ci server.

>> I am a big fan of sonar. Especially the violations drilddown gives a lot
>> of interesting information. While there are undoubtably a lot of false
>> positives, most of the checks are worthwhile verifying. You can often
>> just use a comment (and sometimes an annotation) to tell sonar to ignore
>> the violations at a certain place (using "// NOPMD" for the pmd checks,
>> or in general "// NOSONAR").
> Ah, this is good to know in fact. I have seen some egregious false positives
> around, _if_ someone pops up that can run the tool in a continous build
> enviroment and we have Sonar running continuosly I'll definitely make use
> of it.
I was already trying to set it up on our CI system (Jenkins). It is 
failing though at the moment. I have to figure out what the problem is 
there. I will try to use the maven definitions you suggested. Hopefully 
that makes a difference. Once it works, there should be no problem to 
have that running daily.

Kind regards,
Joachim

-- 
Joachim Van der Auwera
Geosparc, supporting the Geomajas GIS community


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to