Expand my Community achievements bar.

SOLVED

AEM Cloud Project Creation with React Front End Module [ERROR COMPILATION]

Avatar

Level 2

Hello Team, 

 

I have been creating a cloud project by using the following archetype:

 

mvn -B archetype:generate \
 -D archetypeGroupId=com.adobe.aem \
 -D archetypeArtifactId=aem-project-archetype \
 -D archetypeVersion=28 \
 -D appTitle="React" \
 -D appId="react" \
 -D artifactId="react" \
 -D groupId="com.new.react" \
 -D frontendModule="react" \
 -D aemVersion="cloud"

 

Using: 

java version "11.0.11" 2021-04-20 LTS

 

It is successfully created but when I try to run it with mvn clean install I get the following error:


[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 55.434 s
[INFO] Finished at: 2021-08-11T10:32:37+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.adobe.aem:aemanalyser-maven-plugin:1.0.10:project-analyse (aem-analyser) on project react.all: Execution aem-analyser of goal com.adobe.aem:aemanalyser-maven-plugin:1.0.10:project-analyse failed.: ArrayIndexOutOfBoundsException -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :react.all

 

Can you help me guiding me what could be the issue?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @mancillaign , I was able to reproduce the issue and i fixed it by updating aemanalyser version to latest in root pom.xml file

 

<aemanalyser.version>1.1.2</aemanalyser.version>

Can you please try updating aem analyser version from 1.0.10 to 1.1.2

 

Please find the latest versions of aem-analyser-plugin here https://repo1.maven.org/maven2/com/adobe/aem/aemanalyser-maven-plugin/

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi @mancillaign , I was able to reproduce the issue and i fixed it by updating aemanalyser version to latest in root pom.xml file

 

<aemanalyser.version>1.1.2</aemanalyser.version>

Can you please try updating aem analyser version from 1.0.10 to 1.1.2

 

Please find the latest versions of aem-analyser-plugin here https://repo1.maven.org/maven2/com/adobe/aem/aemanalyser-maven-plugin/