Please fill a bug about your wish to call sonar analysis from maven. Frederic 
will help with the settings file.

Cheers,
Mikael


> Le 17 août 2016 à 14:16, Lorenzo Bettini <[email protected]> a écrit :
> 
> On 17/08/2016 10:47, Mikaël Barbero wrote:
>> 
>>> Le 3 août 2016 à 16:35, Lorenzo Bettini <[email protected] 
>>> <mailto:[email protected]>
>>> <mailto:[email protected] <mailto:[email protected]>>> a 
>>> écrit :
>>> 
>>> On 28/07/2016 12:25, Frederic Gurr wrote:
>>>> My suggestion was to get this fixed in Hudson/Sonar plugin.
>>>> 
>>>> In the meantime, Mikael Barbero suggested that you don't need to use the
>>>> Sonar plugin to run an analysis.
>>>> According to
>>>> http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Maven
>>>> you can do it from Maven directly. The only thing that needs to be
>>>> changed to make this work is the .m2/settings.xml file.
>>> 
>>> Maybe I'm still missing something (Mikael is in CC): from what I
>>> understand, we need to use the sonar plugin to run the analysis since
>>> HIPP is configured with the correct user and password to access sonar,
>>> and this is kept hidden to us.  In fact, I see this line when using the
>>> sonar plugin in hudson (where the user and password are unknown to us
>>> and kept hidden)
>>> 
>>> -Dsonar.jdbc.driver=com.mysql.jdbc.Driver
>>> -Dsonar.jdbc.url=jdbc:mysql://dbmaster:3306/sonar?autoReconnect=true&useUnicode=true&characterEncoding=utf8
>>> ******** ******** -Dsonar.host.url=http://sonar.eclipse.org:9000/sonar
>>> 
>>> so how can I run the sonar analysis directly?
>> 
>> If you want to run the analysis straight from maven, we will add the
>> credentials to the maven settings, and this -D won't be needed anymore
>> as the sonar configuration will be retrieved from the settings file.
> 
> Thank you Mickael for the answer,
> then could you please handle this?
> 
> thanks again
>       Lorenzo
> 
>> 
>>> 
>>> Again, if the problem is the plugin version, would that be possible to
>>> downgrade that in HIPP?
>> 
>> I don't think it's possible. IIRC, we've upgraded the sonar plugin
>> because the old does not work with new version of Hudson...
>> 
> 
> 
> --
> Prof. Lorenzo Bettini, Computer Science, DISIA, Univ. Firenze
> HOME: http://www.lorenzobettini.it <http://www.lorenzobettini.it/>
> Xtext Book:
> http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book
>  
> <http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book>

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
cross-project-issues-dev mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/cross-project-issues-dev

Reply via email to