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

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

    Thats an open issue in Maven https://issues.apache.org/jira/browse/MNG-5787. I was facing the exact same issue and got it fixed by upgrading Maven from 3.3.1 to 3.3.9.

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

    For all AEM users, who experience the same problem after generating a maven project with the archetype: I solved the problem by updating the version of the content-package-maven-plugin to version 0.0.24:

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

    I was facing the similiar issue and reverting back to maven 3.0.5 worked for me.

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

    upgrade the version of content-package-maven-plugin p

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

    In the end I chose the simplest solution which didn't require a work around of custom POM configuration.

    Reverted to using Maven 3.2.5

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

    I had the same problem, I'm using MAC-OS

    this command wasnt working:

    mvn -PautoInstallPackage install
    

    then I had to go to this folder

    /usr/local/apache-maven/apache-maven-3.3.3/
    

    and then i download the 3.0 version and put those files inside ...

    and is working !!!!!!!!!!!!!

    so I put the folder apache-maven-3.0.5 but I changed the name to apache-maven-3.3.3, then I closed the terminal, re-opened it and put

    export PATH=$PATH:/usr/local/apache-maven/apache-maven-3.3.3/bin
    

    and voila !!!!!!!!!!! is working !!

    NOW I CAN USE

    mvn -PautoInstallPackage install
    

    TO UPLOAD MY PROJECTS TO AEM CRX/DE

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