Is there anyway to exclude artifacts inherited from a parent POM?

后端 未结 9 1229
礼貌的吻别
礼貌的吻别 2020-11-30 22:02

Artifacts from dependencies can be excluded by declaring an element inside a But in this case it\'s needed to

9条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-30 22:46

    Have you tried explicitly declaring the version of mail.jar you want? Maven's dependency resolution should use this for dependency resolution over all other versions.

    
      4.0.0
      test
      jruby
        0.0.1-SNAPSHOT
        
            base
            es.uniovi.innova
            1.0.0
        
                  
            
                javax.mail
                mail
                VERSION-#
                provided
             
            
                com.liferay.portal
                ALL-DEPS
                1.0
                provided
                pom
            
        
    
    

提交回复
热议问题