- This topic has 10 replies, 4 voices, and was last updated 17 years, 7 months ago by msquared.
-
AuthorPosts
-
KarstenMemberHi group, hi myEclipse support team,
I just work very well with myEclipse Web Projects and one amazing feature is the hot deployment. My servlet engine is Tomcat 5.5.
Now I just have started migrating a project to a maven 2 and its structure:Required structure
src/main/java
src/main/webappI have problems getting the web root folder set the the Maven required src/main/webapp as myEclipse says that the web root folder (default is WebRoot) cannot be located below the src folder.
Is there a work around or anything to get this problem solved?
Thanks in advance
Karsten
Riyad KallaMemberKarsten,
I’m sorry to say at the moment MyEclipse doesn’t work well with a Maven2 project structure. But that is something we are evaluating heavily for a future release.
Simon TOSSERParticipant@support-rkalla wrote:
Karsten,
I’m sorry to say at the moment MyEclipse doesn’t work well with a Maven2 project structure. But that is something we are evaluating heavily for a future release.Hi,
I have the same problem but with maven 1.x
No more solutions ??
A release with maven support ?Thanks in advance
Simon
Riyad KallaMemberSimon, no solution at this time.
Simon TOSSERParticipantHi Riyad,
I found this topic on the Webhttp://www.octonary.com/blog/?p=37
I test it and report my test here
Thanks
Riyad KallaMembersimon we weren’t aware of this post, that’s great. Thank you for diving in on this.
Simon TOSSERParticipantHi,
I test to create a new Web Project with MyEclipse with a Maven structure
Java source : src/main/java
Webroot dir : src/main/webappWhen you create a new Web Project, replace in source folder filed “src” by “src/main/java” and replace in Web roto folder “WebRoot” by “src/main/webapp”
You have a Web Project with maven structure, I don’t test with maven at the moment but I do it soon.
Sorry for my bad English
Simon
Simon TOSSERParticipantHi,
I tested compilation with maven, that functions without problem. I do not have to test yet the generation of the WAR via Maven but that should function.
Highly Maven Integrated Into MyEclipse: -)My structure :
src |-main |-java |-ressources |-webapp |-test |-java |-ressources
I can poster my files classpath and mymetadata if you wish it, as well as the file project.xml for maven
Simon
Riyad KallaMemberSimon,
Typically the problem is when folks put their web.xml/struts-config/faces-config/etc. files under /src/main/resources and MyEclipse expects them under /src/main/webapp/WEB-INF in order to resolve dependencies and autocomplete.Have you tried that yet?
Simon TOSSERParticipantNo I don’t try that yet, but that’s workmaybe with symlinks (under unix/linux )
msquaredMember@support-rkalla wrote:
Simon,
Typically the problem is when folks put their web.xml/struts-config/faces-config/etc. files under /src/main/resources and MyEclipse expects them under /src/main/webapp/WEB-INF in order to resolve dependencies and autocomplete.Have you tried that yet?
I use MyEclipse with maven project structure, no real problems (aside from the obvious one of classpath vs pom dependencies which is not purely a MyEclipse issue although if Genuitec can solve it should attract alot of interest/customers).
I put all my resources in /src/main/resources, and add that as a src folder on classpath with output into WEB-INF/classes like so:
<classpathentry kind=”src” path=”src/main/resources”/>
<classpathentry kind=”output” path=”src/main/webapp/WEB-INF/classes”/> -
AuthorPosts