{"id":413,"date":"2013-04-10T16:09:07","date_gmt":"2013-04-10T15:09:07","guid":{"rendered":"http:\/\/qualilogy.com\/en\/?p=413"},"modified":"2013-09-02T19:12:43","modified_gmt":"2013-09-02T18:12:43","slug":"install-sonarqube-sonarqube-runner","status":"publish","type":"post","link":"http:\/\/qualilogy.com\/en\/install-sonarqube-sonarqube-runner\/","title":{"rendered":"Install SonarQube &#8211; SonarQube Runner"},"content":{"rendered":"<p><a href=\"http:\/\/vicken.deviantart.com\/\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-700\" alt=\"Installing Sonar Runner\" src=\"http:\/\/qualilogy.com\/fr\/wp-content\/uploads\/sites\/2\/2013\/04\/SonarRunner.jpg\" width=\"350\" height=\"307\" \/><\/a>The SonarQube Runner allows us to perform source code analyzes without using tools such as Ant or Maven.<\/p>\n<p>These toos are well known from J2EE (or any other new technology) development teams, but let&#8217;s remember that our objective in this serie about the installation of SonarQube, and more generally in our blog, is to allow anyone to perform code quality and applications analyzes, without requiring any knowledge of these new technologies.<!--more--><\/p>\n<p>How many technical directors, Quality consultants, Mainframe Cobol or SAP project managers, DBAs, member or responsable of QA teams, and IT managers or stakeholders, how many consider that Open Source tools such as SonarQube are reserved for J2EE experts? I know some of them.<\/p>\n<p>With the SonarQube-Runner, and also a tool like Jenkins that we will see nextly, everyone can analyze all kinds of languages\u200b\u200b, not just Java. And without knowing anything about new technologies, or at least a minimal knowledge easy to acquire (for instance, through my blog).<\/p>\n<h2>Installing SonarQube Runner<\/h2>\n<p>We will first download the installation file from the SonarQube Runner page: <a title=\"Installing and configuing the Sonar Runner\" href=\"http:\/\/docs.codehaus.org\/display\/SONAR\/Installing+and+Configuring+SonarQube+Runner\" target=\"_blank\">Installing and Configuring SonarQube Runner<\/a>.\u00a0In my case, at the time of this post, it will be the version 2.1.<\/p>\n<p>We decompress this file in a folder \u2018sonar-runner-2.1\u2019 (thus in \u2018C:\\Soft\\Sonar\\sonar-runner-2.1\u2019 in my environement).<\/p>\n<p>In this folder, we look for the \u2018\\conf\u2019 directory to find the file &#8216;sonar-runner.properties&#8217;.<\/p>\n<p>We will use this properties file to manage the connection to the SonarQube application under Tomcat. In fact, we just have to indicate the same parameters as during the\u00a0<a title=\"Installing Sonar\" href=\"http:\/\/qualilogy.com\/en\/install-sonar-the-sonar-webap\/\" target=\"_blank\">SonarQube installation<\/a>.<\/p>\n<p>First the SonarQube server url:<\/p>\n<p style=\"padding-left: 30px\"><strong>#\u2014\u2013 Default Sonar server<\/strong><br \/>\n<strong>sonar.host.url=http:\/\/localhost:8888\/sonar\/<\/strong><\/p>\n<p>And then the information to connect our database. The connection string consists of the jdbc driver, our server (&#8216;localhost&#8217;) and the database JPORA11 on the default port 1521 of Oracle.<\/p>\n<p style=\"padding-left: 30px\"><strong>#\u2014\u2013 Oracle<\/strong><br \/>\n<strong>sonar.jdbc.url: jdbc:oracle:thin:@localhost:1521\/JPORA11<\/strong><br \/>\n<strong>#\u2014\u2013 Global database settings<\/strong><\/p>\n<p>Then we indicate the <a title=\"Installing an User Oracle\" href=\"http:\/\/qualilogy.com\/en\/install-sonar-oracle-user\/\" target=\"_blank\">Oracle user<\/a> and his password,\u00a0to access the &#8216;sonar&#8217; schema.<\/p>\n<p><strong>sonar.jdbc.username: sonar<\/strong><br \/>\n<strong>sonar.jdbc.password: sonar<\/strong><\/p>\n<p>Et voil\u00e0. To run the SonarQube Runner, you just have to launch the \u2018sonar-runner.bat\u2019 file located into the \u2018..\\bin\u2019 directory. We will see that in our first SonarQube analysis.<\/p>\n<p>If you want to try by yourself, or if you want to get some code samples to test, SonarSource provides several examples from <a title=\"Sonar Examples\" href=\"https:\/\/github.com\/SonarSource\/sonar-examples\/tree\/master\/projects\/languages\" target=\"_blank\">this page<\/a>. You will also find examples of analysis configuration with the SonarQube Runner, for different programming languages.<\/p>\n<p>I let you navigate this page and search which may possibly interest you. Next post will be about our first analysis with SonarQube Runner.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The SonarQube Runner allows us to perform source code analyzes without using tools such as Ant or Maven. These toos are well known from J2EE (or any other new technology) development teams, but let&#8217;s remember that our objective in this serie about the installation of SonarQube, and more generally in our blog, is to allow [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-413","post","type-post","status-publish","format-standard","hentry","category-sonar-installation"],"_links":{"self":[{"href":"http:\/\/qualilogy.com\/en\/wp-json\/wp\/v2\/posts\/413"}],"collection":[{"href":"http:\/\/qualilogy.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/qualilogy.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/qualilogy.com\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/qualilogy.com\/en\/wp-json\/wp\/v2\/comments?post=413"}],"version-history":[{"count":15,"href":"http:\/\/qualilogy.com\/en\/wp-json\/wp\/v2\/posts\/413\/revisions"}],"predecessor-version":[{"id":640,"href":"http:\/\/qualilogy.com\/en\/wp-json\/wp\/v2\/posts\/413\/revisions\/640"}],"wp:attachment":[{"href":"http:\/\/qualilogy.com\/en\/wp-json\/wp\/v2\/media?parent=413"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/qualilogy.com\/en\/wp-json\/wp\/v2\/categories?post=413"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/qualilogy.com\/en\/wp-json\/wp\/v2\/tags?post=413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}