【问题标题】:How to fix 'log 4 j logger' when I want run project?当我想运行项目时如何修复'log4j logger'?
【发布时间】:2019-12-31 08:19:27
【问题描述】:

我想在 Eclipse 中运行项目,但出现错误:

"描述资源路径位置类型

块引用

Project build error: "Non-parse able" POM C:\Users\pop\git\j a b m\pom .x ml: Duplicated tag: 'repository' (position: START_TAG seen ...</repository>\n\t\t<repository>... @135:15) pom. x ml /j a b m-examples line 1 Maven pom Loading Problem

如何修复错误?

【问题讨论】:

    标签: java maven log4j pom.xml


    【解决方案1】:

    我找不到 pom.xml 的详细信息。但我认为你的 pom.xml 中有重复的标签

    我猜到你的 pom.xml 细节是这样的。

    <repositories>
        <repositoryA/>
    </repositories>
    <repositories>
        <repositoryB/>
    </repositories>
    

    您应该在一个标签中添加所有标签。正确的方式:

    <repositories>
        <repositoryA/>
        <repositoryB/>
    </repositories>
    

    【讨论】:

    猜你喜欢
    • 2021-11-02
    • 2019-11-05
    • 2022-01-18
    • 1970-01-01
    • 1970-01-01
    • 2023-03-30
    • 2016-01-05
    • 2021-01-27
    相关资源
    最近更新 更多