Is there a way to trace origin of a property in maven pom?

后端 未结 1 1802
小蘑菇
小蘑菇 2021-02-19 22:41

I have a complex maven project with a lot of managed dependencies, and have a little problem tracing versions of these dependencies. For example, spring libraries\' version is g

1条回答
  •  感情败类
    2021-02-19 23:09

    You could give help:effective-pom a go. Just make sure that you use the 3.2.0 version (or later) together with the -Dverbose=true flag set. This will print out the source of the POM value.

    To force the right version of the plugin:

    
        
          
            
              maven-help-plugin
              3.2.0
            
          
        
    
    

    To use it:

    %> mvn help:effective-pom -Dverbose=true 
    

    This will print out the following:

    
    
    
    
    
    
    
    
    
    
    
    
    
    
      4.0.0  
      
        org.springframework.boot  
        spring-boot-starter-parent  
        2.0.5.RELEASE  
          
      
      org.example  
      test-project  
      0.0.1-SNAPSHOT  
      Test Project  
      Blabla.  
      https://projects.spring.io/spring-boot/#/spring-boot-starter-parent/test-project  
      
        
          Apache License, Version 2.0  
          http://www.apache.org/licenses/LICENSE-2.0  
        
      
      
        
          Pivotal  
          info@pivotal.io  
          Pivotal Software, Inc.  
          http://www.spring.io  
        
      
      
        5.15.6  
        2.7.7  
        1.9.64  
        2.4.0  
        1.8.13  
        ...
      
      
        
          
            org.springframework.boot  
            spring-boot  
            2.0.5.RELEASE  
          
          ...
        
      
    
    

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