For my current purposes I have a Maven project which creates a war file, and I want to see what actual classpath it is using when creating the war.
war
Added the missing arg for scope to Janiks answer. Now it is complete. You are welcome.
mvn -q exec:exec -Dexec.classpathScope="compile" -Dexec.executable="echo" -Dexec.args="%classpath"