In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "the use of Sonar tutorial", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn the tutorial on the use of Sonar.
Sonarqube server
The installation process cannot be started with a root account. You must use an ordinary account such as esuser. After startup, an Elasticsearch instance will be launched automatically (the Elasticsearch instance is included in the Sonarqube installation package). If you misuse the root account to start sonar, you need to delete the temp folder under Sonarqube, otherwise you will not be able to start it all the time. Enter the address http://localhost:9000 to see the console interface.
Sonar Maven Settin
Add the address of Sonarqube under the profiles tag in Maven's setting.xml configuration file:
Sonar true http://192.168.17.137:9000 project dependencies
In the pom file of the R & D project / module, add the Sonar Maven plug-in under the build/plugins tag
Org.springframework.boot spring-boot-maven-plugin true org.sonarsource.scanner.maven sonar-maven-plugin 3.4.0.905 IDE start command
In the IDEA R & D environment, add Maven startup commands
Org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar
Such as screenshot: double-click to start code scanning
Code repair
On the Sonarqube console, you can view the classified suspected problems in the corresponding project, and fix them according to the above requirements and prompts. After the repair is completed, perform a new scan to see if the repair is complete. The above repair guidelines are relatively complete, so I won't repeat them here.
At this point, I believe you have a deeper understanding of the "tutorial on the use of Sonar". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.