Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Unable to perform Maven Build project in Eclipse

Avatar

Avatar
Validate 10
Level 2
arunk85184451
Level 2

Likes

4 likes

Total Posts

43 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 1
Give Back
Boost 3
View profile

Avatar
Validate 10
Level 2
arunk85184451
Level 2

Likes

4 likes

Total Posts

43 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 1
Give Back
Boost 3
View profile
arunk85184451
Level 2

10-05-2020

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

 
 

 

 

 

 

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 10
Level 2
arunk85184451
Level 2

Likes

4 likes

Total Posts

43 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 1
Give Back
Boost 3
View profile

Avatar
Validate 10
Level 2
arunk85184451
Level 2

Likes

4 likes

Total Posts

43 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 1
Give Back
Boost 3
View profile
arunk85184451
Level 2

16-05-2020

jre.PNG

 

Issue got fixed after setting the 

 

-Dmaven.multiModuleProjectDirectory system property for JRE and JDK

 

 
 

 

 

 

 

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
MVP
ArpitVarshney
MVP

Likes

136 likes

Total Posts

185 posts

Correct Reply

36 solutions
Top badges earned
Validate 1
Establish
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Validate 1
MVP
ArpitVarshney
MVP

Likes

136 likes

Total Posts

185 posts

Correct Reply

36 solutions
Top badges earned
Validate 1
Establish
Give Back 5
Give Back 3
Give Back 25
View profile
ArpitVarshney
MVP

10-05-2020

Hi @arunk85184451 

 

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