Duplicate class org.apache.commons.logging



Duplicate class.如何解决这个问题?构建失败,谢谢。

implementation 'org.springframework:spring-web:5.1.9.RELEASE'
implementation 'org.springframework:spring-context:5.1.9.RELEASE'
implementation 'org.apache.httpcomponents:httpclient:4.5.9'

在模块中找到重复的类org.apache.commons.logging.log commons-logging-1.2.jar (commons-logging:commons-logging:1.2( 和 春季-jcl-5.1.9.发布.jar (org.springframework:spring-jcl:5.1.9.RELEASE(重复类 org.apache.commons.logging.LogFactory 在模块中找到 commons-logging-1.2.jar (commons-logging:commons-logging:1.2( 和 春季-jcl-5.1.9.发布.jar (org.springframework:spring-jcl:5.1.9.RELEASE(重复类 org.apache.commons.logging.LogFactory$1 在模块中找到 commons-logging-1.2.jar (commons-logging:commons-logging:1.2( 和 春季-jcl-5.1.9.发布.jar (org.springframework:spring-jcl:5.1.9.RELEASE(重复类 org.apache.commons.logging.impl.NoOpLog in modules commons-logging-1.2.jar (commons-logging:commons-logging:1.2( 和 春季-jcl-5.1.9.发布.jar (org.springframework:spring-jcl:5.1.9.RELEASE(重复类 org.apache.commons.logging.impl.SimpleLog in modules commons-logging-1.2.jar (commons-logging:commons-logging:1.2( 和 春季-jcl-5.1.9.发布.jar (org.springframework:spring-jcl:5.1.9.RELEASE(

Duplicate class org.apache.commons.logging.LogFactory found in modules jetified-commons-logging-1.2.jar (commons-logging:commons-logging:1.2) and jetified-spring-jcl-5.1.8.RELEASE.jar (org.springframework:spring-jcl:5.1.8.RELEASE)
Duplicate class org.apache.commons.logging.LogFactory$1 found in modules jetified-commons-logging-1.2.jar (commons-logging:commons-logging:1.2) and jetified-spring-jcl-5.1.8.RELEASE.jar (org.springframework:spring-jcl:5.1.8.RELEASE)
Duplicate class org.apache.commons.logging.impl.NoOpLog found in modules jetified-commons-logging-1.2.jar (commons-logging:commons-logging:1.2) and jetified-spring-jcl-5.1.8.RELEASE.jar (org.springframework:spring-jcl:5.1.8.RELEASE)
Duplicate class org.apache.commons.logging.impl.SimpleLog found in modules jetified-commons-logging-1.2.jar (commons-logging:commons-logging:1.2) and jetified-spring-jcl-5.1.8.RELEASE.jar (org.springframework:spring-jcl:5.1.8.RELEASE)

依赖项中两个包中的类文件重复,请删除任何一个以解决此问题。您可以将一个.jar重命名为删除.class文件的.zip

相关内容

最新更新