问答详情
源自:3-5 Hello Spring MVC

pom.xml中总是提示Missing artifact org.slf4j:slf4j-log4j12:jar: 1.76

照着老师代码敲得

但是pom.xml中总是提示Missing artifact org.slf4j:slf4j-log4j12:jar:1.76

执行mvn jetty:run 时报错

[ERROR] Failed to execute goal on project spring-blog: Could not resolve dependencies for project rd-arthur:spring-blog:jar:1.0-SNAPSHOT: Failure to find org.slf4j:slf4j-log4j12:jar:1.76 in http://maven.aliyun.com/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of alimaven has elapsed or updates are forced -> [Help 1]

是不是有什么步骤漏了没讲?

提问者:杯具的艾 2016-09-19 17:22

个回答

  • 慕仰3423871
    2019-08-21 19:54:25

    你这个问题解决了吗?我也遇到了,好烦啊


  • java_forever
    2017-01-12 16:43:41

    是1.7.6   不是1.76  OK???

  • adamylk
    2016-09-20 15:02:47

    log4j 的包在你指定的代码库中找不到 

    1. 要不手动下载配置 

    2. 要不查下正确的库位置