Preventing overriding dependency version in Maven child pom

后端 未结 1 977
孤街浪徒
孤街浪徒 2020-12-28 22:11

I have a dependencyManagement section in parent pom like


    
        org.apache.httpcomponents         


        
1条回答
  •  鱼传尺愫
    2020-12-28 22:52

    You could add a dependency:analyze-dep-mgt execution in your parent pom and configure it to fail on version mismatches:

      
        
          
            org.apache.maven.plugins
            maven-dependency-plugin
            2.6
            
              
                analyze
                package
                
                  analyze-dep-mgt
                
                
                  true
                  false
                
              
            
          
        
      
    

    0 讨论(0)
提交回复
热议问题