I want to print all the jars, along with their versions at runtime. I found this link, but it prints just the classpath resources.
EDIT
Ok. Can I log all jars along with their versions while building the project?
I want to print all the jars, along with their versions at runtime. I found this link, but it prints just the classpath resources.
EDIT
Ok. Can I log all jars along with their versions while building the project?
mvn dependency:tree
That's what you can get. Jars and versions.
But not at runtime ofc ;) Maven is a build tool. It builds. Not runs. So you can check current jars and versions (dependencies) you're project using. Read ppeterka comment above.