Skip to main content
Level 2
Jul 11, 2023 5:21 PM UTC
Solved

Build Failure in 'All'

Error: Failed to execute goal com.adobe.aem:aemanalyser-maven-plugin:1.5.8:project-analyse (aem-analyser) on project wwg.all

 

I have updated the version of "aemanalyser" as mentioned here: https://stackoverflow.com/questions/71043425/failed-to-execute-build-analyzer-maven-plugin-in-local-sdk

But still the above error is comming.

 

Also, I'm using the latest AEM SDK version: AEM SDK for AEM v2023.7.12585.20230706T160730Z-230601

 

Any solution for this error?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Nupur_Jain
Nupur_JainAccepted solution
Adobe Employee
Jul 12, 2023 7:48 AM UTC

Hi @sanchay1

 

looking at the error you are getting in build, the build is unable to find SDK in maven central repository. You need to setup adobe repository in order to download this particular artifact. For this, follow https://experienceleague.adobe.com/docs/experience-cloud-kcs/kbarticles/KA-17454.html?lang=en

 

Once, you make sure that the changes are made to setting.xml, you can start building the project again with mvn command with -U option after mvn.

-U option tell maven to update your local repository's remote dependencies (usually third party dependencies).

 

Hope it helps!

Thanks

Nupur

6 replies

ManviSharma
Adobe Employee
Adobe Employee
Jul 11, 2023 5:41 PM UTC

Hi,

 

The error message you provided suggests that there is an issue with the execution of the AEM Analyser Maven Plugin (com.adobe.aem:aemanalyser-maven-plugin) on your project wwg.all. Even though you have updated the version of the plugin as mentioned in the Stack Overflow post, the error persists. You also mentioned that you are using the latest AEM SDK version: AEM SDK for AEM v2023.7.12585.20230706T160730Z-230601.

I recommend the following step:

  1. Verify the plugin configuration: Double-check your Maven configuration to ensure that the AEM Analyser Maven Plugin is correctly configured in your project's pom.xml file.

Translate
BrianKasingli
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
Jul 11, 2023 10:17 PM UTC

After taking a look at the repo.maven.apache.org for the Adobe Experience Manager SDK dependency, it looks like the version you are trying to build your AEM with does not exist, Maven Repository: com.adobe.aem » aem-sdk-api (mvnrepository.com).

You can try to change the version of your dependency that actually exists, and then rebuild the code. Try this version, 2023.7.12549.20230704T084019Z-230601.

Translate
DPrakashRaj
Community Advisor
Community Advisor
Jul 11, 2023 11:43 PM UTC

It seems the aem ask api that you are using on your Pom. Xml doesn’t exist.

latest aem sdk that I can see on maven repo is https://mvnrepository.com/artifact/com.adobe.aem/aem-sdk-api/2023.7.12549.20230704T084019Z-230601

try using this one 

Translate
Nupur_Jain
Adobe Employee
Nupur_JainAdobe EmployeeAccepted solution
Adobe Employee
Jul 12, 2023 7:48 AM UTC

Hi @sanchay1

 

looking at the error you are getting in build, the build is unable to find SDK in maven central repository. You need to setup adobe repository in order to download this particular artifact. For this, follow https://experienceleague.adobe.com/docs/experience-cloud-kcs/kbarticles/KA-17454.html?lang=en

 

Once, you make sure that the changes are made to setting.xml, you can start building the project again with mvn command with -U option after mvn.

-U option tell maven to update your local repository's remote dependencies (usually third party dependencies).

 

Hope it helps!

Thanks

Nupur

Translate
Nikhil-Kumar
Community Advisor
Community Advisor
Jul 12, 2023 12:07 PM UTC

It should be because you are not downloading the dependency from the correct URL. Try updating you pom.xml and settings.xml inside .m2 folder.

Translate
New Member
Jul 29, 2024 10:05 PM UTC

I have the same issue, added the file and still not working. Is there anything I missed? Thanks. 

Translate