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

后端 未结 11 2083
孤街浪徒
孤街浪徒 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:36

    I had the same issue with my project..

    The best way to avoid this problem that change your maven version..This problem is only with 3.3.3 version. So when I used 3.5.0 version, I got rid of this problem.

    0 讨论(0)
  • 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 
    
    0 讨论(0)
  • 2021-01-01 23:37

    I also had the same issue with content package plugin .17. I work for 2 clients and i had setup a new project and was using newest content package plugin i think version .24. Reverting to earlier maven version of 3.0.5 and restarting the command prompt worked for me.

    Now, i have to switch between version. What a cool thing to do :(

    0 讨论(0)
  • 2021-01-01 23:39

    Upgrade the version in POM.xml

    <plugin>
                        <groupId>com.day.jcr.vault</groupId>
                        <artifactId>content-package-maven-plugin</artifactId>
                        <version>0.0.24</version>
                        <extensions>true</extensions>
                        <configuration>
                            <failOnError>true</failOnError>
                            <username>${crx.username}</username>
                            <password>${crx.password}</password>
                        </configuration>
                    </plugin>

    Hope, your problem will resolve.

    0 讨论(0)
  • 2021-01-01 23:44

    I was able to solve on my OS X Mac by upgrading maven, e.g. 'brew upgrade maven' from 3.3.3 to 3.3.9 as tschaible suggested.

    0 讨论(0)
提交回复
热议问题