Maven build [WARNING] we have a duplicate class

前端 未结 8 1284
醉话见心
醉话见心 2020-12-03 16:30

Anybody has any idea what happened to my maven build? I am getting a lot of duplicate warnings.

[WARNING] We have a duplicate org/apache/commons/logging/impl         


        
8条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-03 17:16

    Take a look at the "Dependency Exclusions" section in the Maven doc.

    In your provided example, I'll exclude the commons-logging:commons-logging-api:jar:1.0.4:compile dependency from org.apache.hadoop.hive:hive-common:jar:0.7.1-cdh3u3:compile. In your pom.xml :

        
            org.apache.hadoop.hive
            hive-common:jar
            0.7.1-cdh3u3
            
                
                    commons-logging
                    commons-logging-api
                
            
        
    

提交回复
热议问题