• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Intellij warning: Maven wrapper not correct, reverting to embedded

 
Greenhorn
Posts: 11
Python Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was doing some Spring Boot project with Thymeleaf on Intellij.
Whenever I open any Spring boot project in intellij, it gives me this warning (see attachment).

My M2_HOME directory is set on path & it is not .m2 one (see attachment).

It doesn't cause any issues but I'm still curious why that happens.

Any ideas or leads?
maven_ok_I_guess.png
cmd showing: Maven path M2_HOME
cmd showing: Maven path M2_HOME
maven_warning_intellij.png
Maven warning on intellij
Maven warning on intellij
 
Bartender
Posts: 15741
368
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
M2_HOME is not supposed to point to the bin directory, but Maven's root folder.

Environment variableAction
M2_HOMESet to C:\opt\apache-maven-3.8.5
M2Set to %M2_HOME%\bin
PATHAdd %M2%
 
Sheriff
Posts: 22849
132
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Stephan van Hulst wrote:M2_HOME is not supposed to point to the bin directory, but Maven's root folder.

Environment variableAction
M2_HOMESet to C:\opt\apache-maven-3.8.5
M2Set to %M2_HOME%\bin
PATHAdd %M2%


You don't need the M2 variable, I have added %M2%\bin directly to my path.
reply
    Bookmark Topic Watch Topic
  • New Topic