That's one way you can get a classpath suitable for running a class in your project. I.e. it includes your 'target/classes'.
Now, how do you get the classpath for 'test'?
EDIT.
A to the Q: you use the 'classpathScope' parameter. Like so:
mvn exec:exec -Dexec.executable="echo" -Dexec.classpathScope=test -Dexec.args="%classpath"
No comments:
Post a Comment