facebook

Dir layout change: MyEclipse keeps recreating WebRoot folder

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

    pierre.henry
    Member

    Hello,

    I had a MyEclipse Web project using Maven4MyEclipse in ME 9.1.

    I recently moved to ME 10.6. Then I decided to retrofit the project to the standard Maven layout since it is now possible in ME, and so to simplify the pom.xml

    I move my WebRoot folder to src/main/webapp, moved my java sources to src/main/java and my resources to src/main/resources.

    Then I went to project properties – MyEclipse -> Web and put “src/main/webapp/” in the WebRoot field.

    Finally I adjusted my pom.xml (mostly removed stuff since more things now work according to default).

    It all seems to work, except that MyEclipse keeps recreating a WebRoot folder that contains a WEB-INF folder, in the root of the project, even though I keep deleting it (form inside and ouside MxEclipse).

    It is not so bad since all the rest works, but is weird and not really clean…

    What can I do to stop it ?

    #330779 Reply

    support-piotr
    Participant

    Hello Pierre,

    I am sorry you’re having troubles with ME. However, I have checked such a change locally and I do not observe the behaviour you describe. Can you tell me when exactly the directory is recreated? Have you updated project configuration (Right click on the project -> MyEclipse4Maven -> Update Project Configuration)? In <build> element there is <outputDirectory> element, have you removed it or modified to fit new layout? If none of the above helps, please paste here <build> section of you pom.xml.

    #330782 Reply

    pierre.henry
    Member

    Hello Piotrek,

    The folder was re-created right after I deleted it.

    I did the MyEclipse4Maven -> Update Project Configuration thing and it seems to have solved the problem.

    What exactly is it that is does ?

    Thanks a lot for your answer.

    #330784 Reply

    support-piotr
    Participant

    Pierre,

    I am glad that it worked. Basically, if you change anything in pom.xml, you need to reflect those changes in “eclipse” configuration of the project. In ME 9.x that was done automatically. There were issues with such approach and now you need to manually invoke MyEclipse4Maven -> Update Project Configuration to synchronize project configuration with pom.xml.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Dir layout change: MyEclipse keeps recreating WebRoot folder

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