Expand my Community achievements bar.

SOLVED

AEM analyser implementation

Avatar

Level 7

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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.

View solution in original post

3 Replies

Avatar

Community Advisor

@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


Avatar

Level 7

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>

Avatar

Correct answer by
Community Advisor

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.