Maven 依赖项会自动添加到我的 pom.xml

Maven dependencies are added automatically to my pom.xml

有没有可能是我的pom.xml自己添加依赖项和排除项?

例如:几乎这部分是自动添加的!!

    <dependency>
        <groupId>org.opensaml</groupId>
        <artifactId>opensaml</artifactId>
        <version>2.6.0</version>
        <exclusions>
            <exclusion>
                <groupId>org.apache.xerces</groupId>
                <artifactId>xercesImpl</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
    <dependency>
        <groupId>xerces</groupId>
        <artifactId>xercesImpl</artifactId>
        <version>2.10.0</version>
    </dependency>
    <dependency>
        <groupId>ch.qos.logback</groupId>
        <artifactId>logback-core</artifactId>
        <version>1.0.13</version>
    </dependency>
    <dependency>
        <groupId>ch.qos.logback</groupId>
        <artifactId>logback-classic</artifactId>
        <version>1.0.13</version>
    </dependency>

有什么想法吗?谢谢

Maven 有一个名为 'Transitive Dependencies' 的功能。当一个应用程序有一个依赖项有它自己的依赖项时,Maven 会自动将这些依赖项添加到您的项目中。您可以在 Maven 网站 here.

上阅读有关传递依赖项的更多信息

我认为我的问题的答案是 IDEA IntelliJ 正在将依赖项添加到我的 pom.xml

Intellij 过去要求我授权它自动更新依赖项,我同意了。

所以感谢每一位帮助过我的人:)