I know we can download the dependency jars... but can we download the parent poms of all dependency jars?
For example Project A brings in library B as dependency, but library B has parent pom C.xml.
I want to find a command that downloads all pom.xml in Bs and C.xml.
ideally if C.xml has another parent pom D.xml, I want to download that too.
Maven dependency plugin with add parent POMs option.
If that doesn't work because of Maven using an older version of the dependency plugin (you need 2.8 or later for the addParentPoms option), use the latest version explicitly:
These commands download dependencies (including transitive dependencies), their POMs and all the parent POMs recursively.