Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

AEM Sonar Integration | AEM Community Blog Seeding

Avatar

Administrator

BlogImage.jpg

AEM Sonar Integration by Varun Sharma

Abstract

Usually in any of the project, code quality plays an important role not only in the performance of your site as well as to detect bugs, code smells and security vulnerabilities. In this article I am going to discuss how we can set up sonar on our local instance to get all the issues fixed up before we merge our code.


Follow the below steps to integrate Sonar Qube Server with Code Branch :

1) Download Sonar Qube version 7.7 https://www.sonarqube.org/downloads/ ( Version compatible with Java 8)

2) Unzip the package, go inside the folder \bin\windows-x86-64 (Windows), and run StartSonar.bat.

3) Once up Sonar will be running on Port 9000. (default port)

4) Now go the pom.xml of core branch of your project and add the following changes:

a) 
http://localhost:9000


b) 
org.sonarsource.scanner.maven
sonar-maven-plugin
3.6.0.1398


verify

sonar





5) Now run mvn clean install on the core branch and check the sonar , you will be able to see all the changes of Sonar.

Note 😆 Do not commit changes on point 4. If don’t want changes in pom.xml, run command mvn sonar:sonar

Additionally download and install sonar lint eclipse plugin to have inbuilt code issues identified. This will give additional help to identify the quality issues upfront.

Read Full Blog

AEM Sonar Integration

Q&A

Please use this thread to ask the related questions.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

0 Replies