<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Malan Pereira</title>
    <description>The latest articles on DEV Community by Malan Pereira (@4sterisko).</description>
    <link>https://dev.to/4sterisko</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F433839%2Fcde7cfa1-df9a-4866-a39f-a4e12dad0094.jpg</url>
      <title>DEV Community: Malan Pereira</title>
      <link>https://dev.to/4sterisko</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/4sterisko"/>
    <language>en</language>
    <item>
      <title>Como realizar scan do SonarQube utilizando maven</title>
      <dc:creator>Malan Pereira</dc:creator>
      <pubDate>Tue, 11 Apr 2023 01:18:59 +0000</pubDate>
      <link>https://dev.to/4sterisko/como-realizar-scan-do-sonarqube-utilizando-maven-4khd</link>
      <guid>https://dev.to/4sterisko/como-realizar-scan-do-sonarqube-utilizando-maven-4khd</guid>
      <description>&lt;p&gt;Para reunir a varredura remota e local do servidor no SonarQube, você precisa seguir os seguintes passos:&lt;/p&gt;

&lt;p&gt;Passo 1: Configure o servidor SonarQube local.&lt;/p&gt;

&lt;p&gt;Se você ainda não tiver configurado o servidor SonarQube local, siga as etapas descritas na documentação oficial do SonarQube.&lt;/p&gt;

&lt;p&gt;Passo 2: Adicione as configurações do plugin SonarQube Maven no arquivo pom.xml do seu projeto.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;build&amp;gt;
    &amp;lt;plugins&amp;gt;
        &amp;lt;plugin&amp;gt;
            &amp;lt;groupId&amp;gt;org.sonarsource.scanner.maven&amp;lt;/groupId&amp;gt;
            &amp;lt;artifactId&amp;gt;sonar-maven-plugin&amp;lt;/artifactId&amp;gt;
            &amp;lt;version&amp;gt;3.9.0.2155&amp;lt;/version&amp;gt;
        &amp;lt;/plugin&amp;gt;
    &amp;lt;/plugins&amp;gt;
&amp;lt;/build&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Passo 3: Configure as propriedades do SonarQube no arquivo pom.xml.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;properties&amp;gt;
    &amp;lt;!-- Informações do servidor SonarQube local --&amp;gt;
    &amp;lt;sonar.host.url&amp;gt;http://localhost:9000&amp;lt;/sonar.host.url&amp;gt;
    &amp;lt;sonar.login&amp;gt;SEU_TOKEN_AQUI&amp;lt;/sonar.login&amp;gt;
    &amp;lt;!-- Informações do servidor SonarQube remoto --&amp;gt;
    &amp;lt;sonar.remote.enabled&amp;gt;true&amp;lt;/sonar.remote.enabled&amp;gt;
    &amp;lt;sonar.remote.url&amp;gt;http://seu-servidor-sonarqube-remoto:9000&amp;lt;/sonar.remote.url&amp;gt;
    &amp;lt;sonar.remote.branch&amp;gt;nome-do-branch-remoto&amp;lt;/sonar.remote.branch&amp;gt;
    &amp;lt;sonar.remote.login&amp;gt;SEU_TOKEN_AQUI&amp;lt;/sonar.remote.login&amp;gt;
&amp;lt;/properties&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Substitua &lt;a href="http://seu-servidor-sonarqube-remoto:9000" rel="noopener noreferrer"&gt;http://seu-servidor-sonarqube-remoto:9000&lt;/a&gt; pela URL do servidor SonarQube remoto que você deseja usar. Defina nome-do-branch-remoto com o nome do branch remoto que você deseja analisar e substitua SEU_TOKEN_AQUI pelo token de acesso.&lt;/p&gt;

&lt;p&gt;Passo 4: Execute o comando Maven para analisar seu projeto com o SonarQube.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mvn sonar:sonar
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Isso fará com que o Maven analise o código-fonte do seu projeto local e remoto e envie os resultados para o servidor SonarQube local.&lt;/p&gt;

&lt;p&gt;Passo 5: Visualize o relatório de análise do SonarQube.&lt;/p&gt;

&lt;p&gt;Acesse a interface do usuário do SonarQube em seu navegador da web e navegue até o projeto que deseja visualizar. Você pode ver informações sobre a análise do código-fonte local e remoto no mesmo relatório.&lt;/p&gt;

&lt;p&gt;Com essas informações, você pode tomar decisões informadas sobre como melhorar a qualidade do seu código.&lt;/p&gt;

</description>
      <category>java</category>
      <category>programming</category>
      <category>testing</category>
    </item>
    <item>
      <title>How to reallyze SonarQube code-quality scan in Meven</title>
      <dc:creator>Malan Pereira</dc:creator>
      <pubDate>Tue, 11 Apr 2023 00:59:43 +0000</pubDate>
      <link>https://dev.to/4sterisko/how-to-reallyze-prompt-scan-in-sonarqube-5f3</link>
      <guid>https://dev.to/4sterisko/how-to-reallyze-prompt-scan-in-sonarqube-5f3</guid>
      <description>&lt;p&gt;Maven is a popular build automation tool for Java projects, while SonarQube is a powerful platform for continuous code quality inspection. By integrating Maven with SonarQube, developers can automatically scan code and get feedback on code quality, security, and reliability. This documentation will explain how to use Maven in SonarQube to analyze code for both local and remote server scans.&lt;/p&gt;

&lt;p&gt;The purpose of using Maven in SonarQube to analyze code for both local and remote server scans is to ensure that code quality is maintained across all code repositories, regardless of where they are located. By integrating SonarQube into the Maven build process, developers can receive feedback on code quality and identify potential issues without having to manually analyze code.&lt;/p&gt;

&lt;p&gt;How to use Maven in SonarQube for local and remote server scans:&lt;/p&gt;

&lt;p&gt;The first step is to install and configure SonarQube on your system. You can download the latest version of SonarQube from their official website.&lt;/p&gt;

&lt;p&gt;Once SonarQube is installed, you need to configure your Maven build to use it. You can do this by adding the following code to your pom.xml file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;build&amp;gt;
  &amp;lt;plugins&amp;gt;
    &amp;lt;plugin&amp;gt;
      &amp;lt;groupId&amp;gt;org.sonarsource.scanner.maven&amp;lt;/groupId&amp;gt;
      &amp;lt;artifactId&amp;gt;sonar-maven-plugin&amp;lt;/artifactId&amp;gt;
      &amp;lt;version&amp;gt;3.9.0.2155&amp;lt;/version&amp;gt;
    &amp;lt;/plugin&amp;gt;
  &amp;lt;/plugins&amp;gt;
&amp;lt;/build&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run local scan: To analyze code for a local scan, use the sonar:sonar goal of the sonar-maven-plugin. Use the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mvn sonar:sonar \
  -Dsonar.projectKey=&amp;lt;your-project-key&amp;gt; \
  -Dsonar.host.url=http://localhost:9000 \
  -Dsonar.login=&amp;lt;your-sonarqube-token&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Note: Replace your-project-key and  with the respective values for your project.&lt;/p&gt;

&lt;p&gt;To analyze code for a remote server scan, use the sonar:sonar goal of the sonar-maven-plugin. You need to specify the remote SonarQube server's URL and the authentication token to access it. Use the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mvn sonar:sonar \
  -Dsonar.projectKey=&amp;lt;your-project-key&amp;gt; \
  -Dsonar.host.url=&amp;lt;url-to-sonarqube-server&amp;gt; \
  -Dsonar.login=&amp;lt;your-sonarqube-token&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Note: Replace your-project-key, url-to-sonarqube-server, and  with the respective values for your remote SonarQube server.&lt;/p&gt;

&lt;p&gt;Once the analysis is complete, you can view the results in the SonarQube dashboard. The dashboard will show you an overview of your project's code quality, as well as any issues that need to be addressed.&lt;/p&gt;

&lt;p&gt;By following the steps outlined above, you can use Maven in SonarQube to analyze code for both local and remote server scans. This will help ensure that code quality is maintained across all code repositories, regardless of where they are located.&lt;/p&gt;

</description>
      <category>java</category>
      <category>programming</category>
      <category>testing</category>
    </item>
    <item>
      <title>Hello, world !</title>
      <dc:creator>Malan Pereira</dc:creator>
      <pubDate>Thu, 02 Feb 2023 17:17:18 +0000</pubDate>
      <link>https://dev.to/4sterisko/hello-world--1dpj</link>
      <guid>https://dev.to/4sterisko/hello-world--1dpj</guid>
      <description>&lt;p&gt;My first post has inpirated by another dev.to user lol&lt;/p&gt;

&lt;p&gt;So, i spend many days to post a first words to my space and show my goals and contents to write here, this informations i show bellow:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Java and springboot content and best pactices&lt;/li&gt;
&lt;li&gt;Scala best practices&lt;/li&gt;
&lt;li&gt;DevOps content with Docker and K8s&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So, thats it at moment, if you have questions dont hesite to send a comment, see ya.&lt;/p&gt;

</description>
      <category>crypto</category>
      <category>blockchain</category>
      <category>cryptocurrency</category>
      <category>web3</category>
    </item>
  </channel>
</rss>
