NutzCN Logo
问答 nutzboot启动报错 org.slf4j.impl.Log4jLoggerFactory无法转换为ch.qos.logback.classic.LoggerContext
发布于 1885天前 作者 hryc 1380 次浏览 复制 上一个帖子 下一个帖子
标签:

"C:\Program Files\Java\jdk1.8.0_131\bin\java.exe" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:50348,suspend=y,server=n -Dnutz.profiles.active=prod -javaagent:C:\Users\Administrator.IntelliJIdea2018.2\system\captureAgent\debugger-agent.jar=file:/C:/Users/Administrator/AppData/Local/Temp/capture324.props -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_131\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\rt.jar;D:\dev\workspace\xuexiBoot\wk-app\wk-nb-service-sys\target\classes;D:\dev\workspace\xuexiBoot\wk-framework\target\classes;D:\dev\workspace\xuexiBoot\wk-app\wk-model\target\classes;D:\dev\maven_repos\org\projectlombok\lombok\1.16.16\lombok-1.16.16.jar;D:\dev\maven_repos\cn\hutool\hutool-all\4.1.19\hutool-all-4.1.19.jar;D:\dev\maven_repos\org\nutz\nutz-integration-json4excel\1.r.68-SNAPSHOT\nutz-integration-json4excel-1.r.68-SNAPSHOT.jar;D:\dev\workspace\xuexiBoot\wk-app\wk-common\target\classes;D:\dev\maven_repos\cn\afterturn\easypoi-base\3.2.0\easypoi-base-3.2.0.jar;D:\dev\maven_repos\org\apache\poi\poi\3.15\poi-3.15.jar;D:\dev\maven_repos\commons-codec\commons-codec\1.10\commons-codec-1.10.jar;D:\dev\maven_repos\org\apache\commons\commons-collections4\4.1\commons-collections4-4.1.jar;D:\dev\maven_repos\org\apache\poi\poi-ooxml\3.15\poi-ooxml-3.15.jar;D:\dev\maven_repos\com\github\virtuald\curvesapi\1.04\curvesapi-1.04.jar;D:\dev\maven_repos\org\apache\poi\poi-ooxml-schemas\3.15\poi-ooxml-schemas-3.15.jar;D:\dev\maven_repos\org\apache\xmlbeans\xmlbeans\2.6.0\xmlbeans-2.6.0.jar;D:\dev\maven_repos\stax\stax-api\1.0.1\stax-api-1.0.1.jar;D:\dev\maven_repos\com\google\guava\guava\16.0.1\guava-16.0.1.jar;D:\dev\maven_repos\javax\validation\validation-api\1.1.0.Final\validation-api-1.1.0.Final.jar;D:\dev\maven_repos\cn\afterturn\easypoi-web\3.2.0\easypoi-web-3.2.0.jar;D:\dev\maven_repos\org\springframework\spring-web\4.3.21.RELEASE\spring-web-4.3.21.RELEASE.jar;D:\dev\maven_repos\org\springframework\spring-aop\4.3.21.RELEASE\spring-aop-4.3.21.RELEASE.jar;D:\dev\maven_repos\org\springframework\spring-beans\4.3.21.RELEASE\spring-beans-4.3.21.RELEASE.jar;D:\dev\maven_repos\org\springframework\spring-webmvc\3.1.1.RELEASE\spring-webmvc-3.1.1.RELEASE.jar;D:\dev\maven_repos\org\springframework\spring-asm\3.1.1.RELEASE\spring-asm-3.1.1.RELEASE.jar;D:\dev\maven_repos\org\springframework\spring-context-support\4.3.21.RELEASE\spring-context-support-4.3.21.RELEASE.jar;D:\dev\maven_repos\org\springframework\spring-expression\4.3.21.RELEASE\spring-expression-4.3.21.RELEASE.jar;D:\dev\maven_repos\org\springframework\spring-core\4.3.21.RELEASE\spring-core-4.3.21.RELEASE.jar;D:\dev\maven_repos\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;D:\dev\maven_repos\cn\afterturn\easypoi-annotation\3.2.0\easypoi-annotation-3.2.0.jar;D:\dev\maven_repos\org\nutz\nutzboot-core\2.3.8-SNAPSHOT\nutzboot-core-2.3.8-SNAPSHOT.jar;D:\dev\maven_repos\org\nutz\nutz\1.r.68-SNAPSHOT\nutz-1.r.68-SNAPSHOT.jar;D:\dev\maven_repos\javax\servlet\javax.servlet-api\3.1.0\javax.servlet-api-3.1.0.jar;D:\dev\maven_repos\org\nutz\nutzboot-starter-dubbo\2.3.8-SNAPSHOT\nutzboot-starter-dubbo-2.3.8-SNAPSHOT.jar;D:\dev\maven_repos\org\nutz\nutz-integration-dubbo\1.r.68-SNAPSHOT\nutz-integration-dubbo-1.r.68-SNAPSHOT.jar;D:\dev\maven_repos\org\apache\curator\curator-framework\4.0.1\curator-framework-4.0.1.jar;D:\dev\maven_repos\org\apache\curator\curator-client\4.0.1\curator-client-4.0.1.jar;D:\dev\maven_repos\com\alibaba\dubbo\2.6.6\dubbo-2.6.6.jar;D:\dev\maven_repos\org\springframework\spring-context\4.3.21.RELEASE\spring-context-4.3.21.RELEASE.jar;D:\dev\maven_repos\org\javassist\javassist\3.24.0-GA\javassist-3.24.0-GA.jar;D:\dev\maven_repos\org\jboss\netty\netty\3.2.5.Final\netty-3.2.5.Final.jar;D:\dev\maven_repos\org\slf4j\jcl-over-slf4j\1.7.28\jcl-over-slf4j-1.7.28.jar;D:\dev\maven_repos\org\apache\zookeeper\zookeeper\3.4.8\zookeeper-3.4.8.jar;D:\dev\maven_repos\org\slf4j\slf4j-log4j12\1.7.28\slf4j-log4j12-1.7.28.jar;D:\dev\maven_repos\log4j\log4j\1.2.17\log4j-1.2.17.jar;D:\dev\maven_repos\jline\jline\0.9.94\jline-0.9.94.jar;D:\dev\maven_repos\io\netty\netty\3.7.0.Final\netty-3.7.0.Final.jar;D:\dev\maven_repos\io\netty\netty-handler\4.1.34.Final\netty-handler-4.1.34.Final.jar;D:\dev\maven_repos\io\netty\netty-common\4.1.34.Final\netty-common-4.1.34.Final.jar;D:\dev\maven_repos\io\netty\netty-buffer\4.1.34.Final\netty-buffer-4.1.34.Final.jar;D:\dev\maven_repos\io\netty\netty-transport\4.1.34.Final\netty-transport-4.1.34.Final.jar;D:\dev\maven_repos\io\netty\netty-resolver\4.1.34.Final\netty-resolver-4.1.34.Final.jar;D:\dev\maven_repos\io\netty\netty-codec\4.1.34.Final\netty-codec-4.1.34.Final.jar;D:\dev\maven_repos\com\101tec\zkclient\0.11\zkclient-0.11.jar;D:\dev\maven_repos\org\nutz\nutzboot-starter-nutz-dao\2.3.8-SNAPSHOT\nutzboot-starter-nutz-dao-2.3.8-SNAPSHOT.jar;D:\dev\maven_repos\org\nutz\nutz-plugins-daocache\1.r.68-SNAPSHOT\nutz-plugins-daocache-1.r.68-SNAPSHOT.jar;D:\dev\maven_repos\org\nutz\nutzboot-starter-jdbc\2.3.8-SNAPSHOT\nutzboot-starter-jdbc-2.3.8-SNAPSHOT.jar;D:\dev\maven_repos\org\nutz\nutzboot-starter-redis\2.3.8-SNAPSHOT\nutzboot-starter-redis-2.3.8-SNAPSHOT.jar;D:\dev\maven_repos\org\nutz\nutz-integration-jedis\1.r.68-SNAPSHOT\nutz-integration-jedis-1.r.68-SNAPSHOT.jar;D:\dev\maven_repos\redis\clients\jedis\2.9.0\jedis-2.9.0.jar;D:\dev\maven_repos\org\apache\commons\commons-pool2\2.4.2\commons-pool2-2.4.2.jar;D:\dev\maven_repos\org\nutz\nutzboot-starter-wkcache\2.3.8-SNAPSHOT\nutzboot-starter-wkcache-2.3.8-SNAPSHOT.jar;D:\dev\maven_repos\org\nutz\nutz-plugins-wkcache\1.r.68-SNAPSHOT\nutz-plugins-wkcache-1.r.68-SNAPSHOT.jar;D:\dev\maven_repos\org\nutz\nutzboot-starter-sentinel-dubbo\2.3.8-SNAPSHOT\nutzboot-starter-sentinel-dubbo-2.3.8-SNAPSHOT.jar;D:\dev\maven_repos\com\alibaba\csp\sentinel-dubbo-adapter\1.5.0\sentinel-dubbo-adapter-1.5.0.jar;D:\dev\maven_repos\com\alibaba\csp\sentinel-core\1.5.0\sentinel-core-1.5.0.jar;D:\dev\maven_repos\com\alibaba\csp\sentinel-transport-simple-http\1.5.0\sentinel-transport-simple-http-1.5.0.jar;D:\dev\maven_repos\com\alibaba\csp\sentinel-transport-common\1.5.0\sentinel-transport-common-1.5.0.jar;D:\dev\maven_repos\com\alibaba\csp\sentinel-datasource-extension\1.5.0\sentinel-datasource-extension-1.5.0.jar;D:\dev\maven_repos\com\alibaba\fastjson\1.2.56\fastjson-1.2.56.jar;D:\dev\maven_repos\com\alibaba\csp\sentinel-cluster-client-default\1.5.0\sentinel-cluster-client-default-1.5.0.jar;D:\dev\maven_repos\com\alibaba\csp\sentinel-cluster-common-default\1.5.0\sentinel-cluster-common-default-1.5.0.jar;D:\dev\maven_repos\com\alibaba\csp\sentinel-cluster-server-default\1.5.0\sentinel-cluster-server-default-1.5.0.jar;D:\dev\maven_repos\com\alibaba\csp\sentinel-parameter-flow-control\1.5.0\sentinel-parameter-flow-control-1.5.0.jar;D:\dev\maven_repos\com\googlecode\concurrentlinkedhashmap\concurrentlinkedhashmap-lru\1.4.2\concurrentlinkedhashmap-lru-1.4.2.jar;D:\dev\maven_repos\org\nutz\nutzboot-starter-logback-exts\2.3.8-SNAPSHOT\nutzboot-starter-logback-exts-2.3.8-SNAPSHOT.jar;D:\dev\maven_repos\org\nutz\nutzboot-starter-test-junit4\2.3.8-SNAPSHOT\nutzboot-starter-test-junit4-2.3.8-SNAPSHOT.jar;D:\dev\maven_repos\com\alibaba\druid\1.1.20\druid-1.1.20.jar;D:\dev\maven_repos\mysql\mysql-connector-java\5.1.48\mysql-connector-java-5.1.48.jar;D:\dev\maven_repos\org\apache\commons\commons-lang3\3.7\commons-lang3-3.7.jar;D:\dev\maven_repos\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;D:\dev\maven_repos\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;D:\dev\maven_repos\org\slf4j\slf4j-api\1.7.26\slf4j-api-1.7.26.jar;D:\Program Files\JetBrains\IntelliJ IDEA 2018.2.4\lib\idea_rt.jar" cn.wizzer.app.sys.commons.core.DubboRpcSysMainLauncher
Connected to the target VM, address: '127.0.0.1:50348', transport: 'socket'
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/D:/dev/maven_repos/org/slf4j/slf4j-log4j12/1.7.28/slf4j-log4j12-1.7.28.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/D:/dev/maven_repos/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
log4j:WARN No appenders could be found for logger (org.nutz.boot.banner.SimpleBannerPrinter).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
INFO: log base dir is: C:\Users\Administrator\logs\csp\
INFO: log name use pid is: false
java.lang.ClassCastException: org.slf4j.impl.Log4jLoggerFactory cannot be cast to ch.qos.logback.classic.LoggerContext
at org.nutz.boot.starter.logback.exts.loglevel.LoglevelService.getLevel(LoglevelService.java:129)
at org.nutz.boot.starter.logback.exts.loglevel.LoglevelService.saveToRedis(LoglevelService.java:56)
at org.nutz.boot.starter.logback.exts.loglevel.LoglevelService.init(LoglevelService.java:37)
at org.nutz.boot.starter.logback.exts.loglevel.LoglevelService$FM$init$cff301be46c87e2fbea60f4ef344bacb.invoke(LoglevelService.java)
at org.nutz.ioc.impl.ObjectMakerImpl$2.trigger(ObjectMakerImpl.java:181)
at org.nutz.ioc.weaver.DefaultWeaver.onCreate(DefaultWeaver.java:89)
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:141)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:161)
at org.nutz.boot.starter.logback.exts.LogbackStarter.start(LogbackStarter.java:92)
at org.nutz.boot.AppContext.startServers(AppContext.java:310)
at org.nutz.boot.NbApp.execute(NbApp.java:210)
at org.nutz.boot.NbApp.run(NbApp.java:182)
at cn.wizzer.app.sys.commons.core.DubboRpcSysMainLauncher.main(DubboRpcSysMainLauncher.java:39)
java.lang.ClassCastException: org.slf4j.impl.Log4jLoggerFactory cannot be cast to ch.qos.logback.classic.LoggerContext
at org.nutz.boot.starter.logback.exts.loglevel.LoglevelService.getLevel(LoglevelService.java:129)
at org.nutz.boot.starter.logback.exts.loglevel.LoglevelService.saveToRedis(LoglevelService.java:56)
at org.nutz.boot.starter.logback.exts.loglevel.LoglevelHeartbeatThread.run(LoglevelHeartbeatThread.java:27)
java.lang.ClassCastException: org.slf4j.impl.Log4jLoggerFactory cannot be cast to ch.qos.logback.classic.LoggerContext
at org.nutz.boot.starter.logback.exts.loglevel.LoglevelService.getLevel(LoglevelService.java:129)
at org.nutz.boot.starter.logback.exts.loglevel.LoglevelService.saveToRedis(LoglevelService.java:56)
at org.nutz.boot.starter.logback.exts.loglevel.LoglevelHeartbeatThread.run(LoglevelHeartbeatThread.java:27)
java.lang.ClassCastException: org.slf4j.impl.Log4jLoggerFactory cannot be cast to ch.qos.logback.classic.LoggerContext
at org.nutz.boot.starter.logback.exts.loglevel.LoglevelService.getLevel(LoglevelService.java:129)
at org.nutz.boot.starter.logback.exts.loglevel.LoglevelService.saveToRedis(LoglevelService.java:56)
at org.nutz.boot.starter.logback.exts.loglevel.LoglevelHeartbeatThread.run(LoglevelHeartbeatThread.java:27)

13 回复

发帖提示总是被无视

@wendal 明白了 下次会注意的

把slf4j-log4j依赖去掉

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/D:/dev/maven_repos/org/slf4j/slf4j-log4j12/1.7.28/slf4j-log4j12-1.7.28.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/D:/dev/maven_repos/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <parent>
        <artifactId>wk-app</artifactId>
        <groupId>cn.wizzer.app</groupId>
        <version>5.2.7-SNAPSHOT</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>
    <packaging>jar</packaging>
    <artifactId>wk-nb-service-sys</artifactId>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <commons-lang3.version>3.7</commons-lang3.version>
    </properties>
    <dependencies>
        <dependency>
            <groupId>cn.wizzer</groupId>
            <artifactId>wk-framework</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>cn.wizzer.app</groupId>
            <artifactId>wk-model</artifactId>
            <version>${project.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>cn.wizzer.app</groupId>
                    <artifactId>wk-code-generator-nb</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>cn.wizzer.app</groupId>
            <artifactId>wk-common</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutzboot-core</artifactId>
            <version>${nutzboot.version}</version>
        </dependency>
        <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutzboot-starter-dubbo</artifactId>
            <version>${nutzboot.version}</version>
        </dependency>
        <dependency>
            <groupId>io.netty</groupId>
            <artifactId>netty-handler</artifactId>
            <version>${netty.version}</version>
        </dependency>
        <!--<dependency>-->
            <!--<groupId>com.101tec</groupId>-->
            <!--<artifactId>zkclient</artifactId>-->
            <!--<version>${zkclient.version}</version>-->
            <!--<exclusions>-->
                <!--<exclusion>-->
                    <!--<groupId>org.slf4j</groupId>-->
                    <!--<artifactId>slf4j-log4j12</artifactId>-->
                <!--</exclusion>-->
                <!--<exclusion>-->
                    <!--<groupId>log4j</groupId>-->
                    <!--<artifactId>log4j</artifactId>-->
                <!--</exclusion>-->
            <!--</exclusions>-->
        <!--</dependency>-->
        <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutzboot-starter-nutz-dao</artifactId>
            <version>${nutzboot.version}</version>
        </dependency>
        <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutzboot-starter-jdbc</artifactId>
            <version>${nutzboot.version}</version>
        </dependency>
        <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutzboot-starter-redis</artifactId>
            <version>${nutzboot.version}</version>
        </dependency>
        <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutzboot-starter-wkcache</artifactId>
            <version>${nutzboot.version}</version>
        </dependency>
        <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutzboot-starter-sentinel-dubbo</artifactId>
            <version>${nutzboot.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>io.netty</groupId>
                    <artifactId>netty-handler</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutzboot-starter-logback-exts</artifactId>
            <version>${nutzboot.version}</version>
        </dependency>
        <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutzboot-starter-test-junit4</artifactId>
            <version>${nutzboot.version}</version>
        </dependency>
        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>druid</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>com.alibaba</groupId>
                    <artifactId>jconsole</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.alibaba</groupId>
                    <artifactId>tools</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>${mysql-connector-java.version}</version>
        </dependency>
        <!--<dependency>-->
            <!--<groupId>com.oracle</groupId>-->
            <!--<artifactId>classes12</artifactId>-->
            <!--<version>10.2.0.2.0</version>-->
            <!--<scope>system</scope>-->
            <!--<systemPath>D://oracle/product/10.2.0/db_1/jdbc/lib/classes12.jar</systemPath>-->
        <!--</dependency>-->
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
            <version>${commons-lang3.version}</version>
        </dependency>
        <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-core</artifactId>
            <version>${logback.version}</version>
        </dependency>
        <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-classic</artifactId>
            <version>${logback.version}</version>
        </dependency>
        <!--<dependency>-->
            <!--<groupId>org.slf4j</groupId>-->
            <!--<artifactId>slf4j-api</artifactId>-->
            <!--<version>${slf4j.version}</version>-->
        <!--</dependency>-->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.7.0</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                    <compilerArgs>
                        <arg>-parameters</arg>
                    </compilerArgs>
                    <useIncrementalCompilation>false</useIncrementalCompilation>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>3.0.1</version>
                <configuration>
                    <encoding>UTF-8</encoding>
                    <charset>UTF-8</charset>
                    <docencoding>UTF-8</docencoding>
                </configuration>
                <executions>
                    <execution>
                        <id>attach-javadocs</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                        <configuration>
                            <additionalJOption>-Xdoclint:none</additionalJOption>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.nutz.boot</groupId>
                <artifactId>nutzboot-maven-plugin</artifactId>
                <version>${nutzboot.version}</version>
            </plugin>
        </plugins>
    </build>

</project>

这个依赖我都去掉了 还是报那个错

在wk-framework的pom.xml找

既然有依赖,根据maven的依赖树就能找到源头

这个项目别人电脑上能启动起来 我之前也能启动起来 代码都是一样的 突然就报了这个错 重新下载打开后也是报这个错

上面这句毫无意义

你贴的日志里面就有这么一些字样

D:\dev\maven_repos\org\slf4j\slf4j-log4j12\1.7.28\slf4j-log4j12-1.7.28.jar;

证明 slf4j-log4j12 是直接/间接被引用到, 既然当前项目没有直接引用到, 那就得查查间接依赖

感谢提供思路 一个个排查依赖冲突 然后再exclusions 排除依赖 果然解决了 @wendal

@qq_0e08b035 做项目,请使用正式版本号~~

添加回复
请先登陆
回到顶部