I'm trying to run the SpringFirst sample project on page 10. Doesn't seem like exec:java is using the project's target/classes directory as part of the classpath.
Code:
C:\begspringcode_070808\src\chapter1\springfirst>mvn exec:java -Dexec.mainClass=com.wrox.bedspring.CalculateSpring -Dexec.args="123
456"
The -e switch shows the following error:
Code:
Caused by: java.lang.ClassNotFoundException: com.wrox.bedspring.CalculateSpring
I tried setting -Dexec.includeProjectDependencies=true, -Dexec.classpathScope=compile and -Dexec.classpathScope=runtime, but the same error always shows up.