Expand my Community achievements bar.

SOLVED

Unable to perform Maven Build project in Eclipse

Avatar

Level 4

Hi,

 

Eclipse Version: Oxygen.3a Release (4.7.3a)
Build id: 20180405-1200

 

I am unable to perform Maven build via Eclipse getting below error

 

INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ aem-guides-demo ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven) @ aem-guides-demo ---
[WARNING] Rule 0: org.apache.maven.plugins.enforcer.RequireMavenVersion failed with message:
Detected Maven Version: 3.2.1 is not in the allowed range [3.6.2,).
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] aem-guides-demo ................................... FAILURE [ 4.821 s]
[INFO] DEMO Sites Project - Core ......................... SKIPPED
[INFO] DEMO Sites Project - UI apps ...................... SKIPPED
[INFO] DEMO Sites Project - UI content ................... SKIPPED
[INFO] DEMO Sites Project - Integration Tests Bundles .... SKIPPED
[INFO] DEMO Sites Project - Integration Tests Launcher ... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] -----------------------------------------------------------------

 

 

Pom.xml :

 

arunk85184451_0-1589172501088.png

 

Even i tried to change the configuration to use MVN home dir

 

arunk85184451_1-1589172626234.png

, then i am getting below error in console 

-Dmaven.multiModuleProjectDirectory system property is not set.

 

also if i try to update m2e publish , i am getting below error

 
 

Capture.PNG

 
 

 

 

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Level 4

jre.PNG

 

Issue got fixed after setting the 

 

-Dmaven.multiModuleProjectDirectory system property for JRE and JDK

 

 
 

 

 

 

 

View solution in original post

3 Replies

Avatar

Community Advisor

Hi @sonuk85184451 

 

Your eclipse is detecting the maven version as 3.2.1 only.

Could you please verify the maven version using the command mvn -version and make sure the same version is set in an environment variable as well.If it is returning 3.2.1 then set the version which is allowed in the range in the allowed range [3.6.2,)

 

Also, give a try to build your project via the normal command prompt.

 

Regards,

Arpit

 

Avatar

Level 4

Thank You for responding , @ArpitVarshney 

I am using Maven version 3.6.2 and able to build Maven project from command prompt successfully 

 

arunk85184451_0-1589207518191.png

 

but when i am trying the same from eclipse its giving me error. let me know should i still install Maven 3.2.1 and configure Maven Var to 3.2.1 ?

Avatar

Correct answer by
Level 4

jre.PNG

 

Issue got fixed after setting the 

 

-Dmaven.multiModuleProjectDirectory system property for JRE and JDK