I used to get a not found exception when running junit and command line apps in my maven project. I eventually discovered that I could run junit and command line apps if I just modified the output folder for the project. However, doing that means that webapps are not deployed properly.
So, I am constantly needing to modify the output folder of the project every time I want to run one or the other type of app.
For command line apps the output folder that works is:
AccessControl/target/classes
for the webapp the output folder that works is:
AccessControl/src/main/webapp/WEB-INF/classes
For the above paths, obviously the project is named “AccessControl”.
Personally I’d prefer that the output folder be in the target directory so that auto generated files are not put under the src directory. However, I’d be happy if I just didn’t need to modify the output folder all the time.
I am using MyEclipse 7.1.1-20090310.