sonar exclusion for acs commons | Community
Skip to main content
August 25, 2025
Solved

sonar exclusion for acs commons

  • August 25, 2025
  • 2 replies
  • 1762 views

Hello there,

 

I am trying to avoid sonar scan for third party packages/code for some reasons in cloud manager CI/CD pipeline.

 

Tried configuring below configuration in root pom file.

<properties>

        ....

        ...

        <sonar.exclusions>

           **/apps/acs-commons/**,
           **/apps/acs-commons*/**,
           **/ui.apps/src/main/content/jcr_root/apps/acs-commons/**,
           **/ui.content/src/main/content/jcr_root/apps/acs-commons/**,
           **/core/src/main/java/com/adobe/acs/**,
           **/etc/acs-commons/**
        </sonar.exclusions>
    </properties>
 
But this dint help me. Any thoughts ?. is it possible to override the pipeline so that our configuration gets priority for scanning ? or its not possible at all to avoid this scanning ?
Best answer by SantoshSai

Hi @pradeepmc1,

  • I think, Adobe does not use your project’s sonar.exclusions configuration by default.

  • As I know, The code quality scan in Cloud Manager is centrally controlled by Adobe and runs its own set of rules with SonarQube.

  • This means that your <sonar.exclusions> or even a custom sonar-project.properties is ignored in the Cloud Manager pipeline.

Please refer if this helps: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/sonar-s-code-scanning-configuration/m-p/613769

2 replies

SantoshSai
Community Advisor
SantoshSaiCommunity AdvisorAccepted solution
Community Advisor
August 25, 2025

Hi @pradeepmc1,

  • I think, Adobe does not use your project’s sonar.exclusions configuration by default.

  • As I know, The code quality scan in Cloud Manager is centrally controlled by Adobe and runs its own set of rules with SonarQube.

  • This means that your <sonar.exclusions> or even a custom sonar-project.properties is ignored in the Cloud Manager pipeline.

Please refer if this helps: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/sonar-s-code-scanning-configuration/m-p/613769

Santosh Sai
Uppari_Ramesh
Level 5
September 1, 2025

Hi @pradeepmc1 ,

 

I had this issue earlier and as @santoshsai mentioned it will not work for cloud manager pipeline. But it works for your own CI CD pipeline like Azure pipelines.

 

Thanks,

Ramesh.

September 2, 2025

Hi @uppari_ramesh  @santoshsai ,

 

So, there is no way to override the cloud pipeline's sonar exclusion ?

Uppari_Ramesh
Level 5
September 2, 2025

@pradeepmc1 Please check this once with Adobe CSE if there is any way.

 

Thanks 

Ramesh