Maven error - java.lang.NoClassDefFoundError: org/slf4j/helpers/MarkerIgnoringBase

后端 未结 11 1992
孤街浪徒
孤街浪徒 2021-01-01 23:10

Getting up and running with Maven.

Trying to build a project I\'ve inherited. I\'ve resolved majority of the issues but am now seeing a weird error:

         


        
11条回答
  •  清酒与你
    2021-01-01 23:37

    This happened to me when doing:

    brew upgrade
    

    It automatically updated my maven version to 3.3.3 that seems to have some issues as I was getting exactly the same message as the original post.

    My solution was:

    brew uninstall maven                               // to get rid of 3.3.3
    brew install homebrew/versions/maven32             // to install maven 
    brew pin homebrew/versions/maven32                 // to prevent unintended upgrade
    

    And then make sure you have a line like this on ~/.bash_profile pointing to the correct maven path:

    export M2_HOME=~/usr/local/Cellar/maven32/3.2.5    ~/.bash_profile 
    

提交回复
热议问题