How to find a Maven dependency version declaration imported from a BOM

后端 未结 6 1900
面向向阳花
面向向阳花 2021-02-08 05:18

A multi-module parent POM declares the following BOM import:


  
    
      io.s         


        
6条回答
  •  失恋的感觉
    2021-02-08 05:44

    According to How do I show the Maven POM hierarchy? it looks like it not possible with a simple command.

    You should write your own plugin or script to climb the hierarchy to the top and find the artifact you are interested in.

    Small Tip: to retrieve the version of an artifact you're using, you can open the pom.xml in the Idea Editor and hold Ctrl while hovering on the artifactId, and the full name of its pom will be displayed, with its version.

提交回复
热议问题