In Maven, how output the classpath being used?

后端 未结 7 1307
庸人自扰
庸人自扰 2020-12-12 23:31

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.

7条回答
  •  南方客
    南方客 (楼主)
    2020-12-13 00:22

    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" 
    

提交回复
热议问题