AEM analyser implementation | Community
Skip to main content
Level 6
December 29, 2022
Solved

AEM analyser implementation

  • December 29, 2022
  • 1 reply
  • 1231 views

How to add aem analyser into my project and run it. I tried adding a plugin it won't work.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Himanshu_Singhal

Addition of plugin, dependency is alright. 
Did you try to build the project and check the target folder afterwards? 
After the addition of this plugin it generates the project installable in format that gets deployed over AEMaaCS. 
Generated package would be in format <package-name>-cp2fm-converted.zip

If that's there, it seems addition of plugin successful.

1 reply

Himanshu_Singhal
Community Advisor
Community Advisor
December 29, 2022

@ronnie09 How did you try to add the analyser plugin in your project? Did you try adding to container(all) module or tried creating separate module?
Here's the official documentation and it works fine. 
https://github.com/adobe/aemanalyser-maven-plugin/blob/main/aemanalyser-maven-plugin/README.md


Ronnie09Author
Level 6
December 30, 2022

Added in container(all) module. I am using AEMaaCS

<plugin> <groupId>com.adobe.aem</groupId> <artifactId>aemanalyser-maven-plugin</artifactId> <executions> <execution> <id>aem-analyser</id> <goals> <goal>project-analyse</goal> </goals> </execution> </executions> </plugin>



In Main Pom I have
<plugin>
<groupId>com.adobe.aem</groupId>
<artifactId>aemanalyser-maven-plugin</artifactId>
<version>1.4.20</version>
<extensions>true</extensions>
</plugin>

Himanshu_Singhal
Community Advisor
Himanshu_SinghalCommunity AdvisorAccepted solution
Community Advisor
December 30, 2022

Addition of plugin, dependency is alright. 
Did you try to build the project and check the target folder afterwards? 
After the addition of this plugin it generates the project installable in format that gets deployed over AEMaaCS. 
Generated package would be in format <package-name>-cp2fm-converted.zip

If that's there, it seems addition of plugin successful.