Maven: remove a single transitive dependency

前端 未结 3 1842
猫巷女王i
猫巷女王i 2020-12-02 20:52

My project includes a jar file because it is listed as a transitive dependency.

However, I have verified not only that I don\'t need it but it causes problems becaus

3条回答
  •  醉梦人生
    2020-12-02 21:07

    You can do this by explicitly excluding the problematic artifact. Take the dependency that includes the problem and mark it to be excluded:

    From the maven website:

    
      group-a
      artifact-a
      1.0
      
        
          group-c
          excluded-artifact
        
      
    
    

提交回复
热议问题