Skip to main content
Aug 25, 2025 5:52 PM UTC
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
Community Advisor
Aug 25, 2025 8:15 PM UTC

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

SantoshSai
Community Advisor
SantoshSaiCommunity AdvisorAccepted solution
Community Advisor
Aug 25, 2025 8:15 PM UTC

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
Uppari_Ramesh
Level 5
Sep 1, 2025 2:03 PM UTC

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
Sep 2, 2025 3:52 AM UTC

Hi @uppari_ramesh  @santoshsai ,

 

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

Translate
Uppari_Ramesh
Level 5
Sep 2, 2025 5:49 AM UTC

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

 

Thanks 

Ramesh

Translate