In addition to koppor's answer, which is a clean and simple solution to get the groupId:artifactId:version
tuple for each dependency, you can use mvn dependency:purge-local-repository
to force a redownload of maven dependencies.
The URLs of the resolved dependencies are written to the console output during that process. You could possibly redirect the output of that command (just like dependency:list
) with -DoutputFile
.
Note that depending on whether you analyze a single project or a full project-structure you may want to set -DappendOutput
to true.
Retrieving the License and License-URL is significantly harder, because that is not mandatory information. The simplest way I can imagine for that to work is to actually download the dependencies' jar and pom. POMs may include license information, and if they don't the jar would need to be analyzed.