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

sonar exclusion for acs commons

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 ?
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SantoshSai
SantoshSaiAccepted solution
New Participant
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

4 replies

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.

Translate
New Participant
September 2, 2025

Hi @uppari_ramesh  @santoshsai ,

 

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

Translate
Uppari_Ramesh
Level 5
September 2, 2025

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

 

Thanks 

Ramesh

Translate
SantoshSai
SantoshSaiAccepted solution
New Participant
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

Translate
Santosh Sai