facebook

Can’t run webapp and junit/main apps with same output folder

  1. MyEclipse IDE
  2.  > 
  3. Maven for MyEclipse (Maven4MyEclipse)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #299432 Reply

    mxnmatch
    Member

    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. 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.

    #299544 Reply

    Loyal Water
    Member
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Can’t run webapp and junit/main apps with same output folder

You must be logged in to post in the forum log in