- This topic has 3 replies, 2 voices, and was last updated 12 years, 1 month ago by support-piotr.
-
AuthorPosts
-
pierre.henryMemberHello,
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 ?
support-piotrParticipantHello 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.
pierre.henryMemberHello 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.
support-piotrParticipantPierre,
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.
-
AuthorPosts