- This topic has 10 replies, 4 voices, and was last updated 18 years, 3 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
KarstenFebruary 19, 2007 at 12:01 pm #266312
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.March 19, 2007 at 10:13 am #267576
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
March 19, 2007 at 10:51 am #267587
Riyad KallaMemberSimon, no solution at this time.
March 19, 2007 at 11:13 am #267601
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
March 19, 2007 at 12:35 pm #267625
Riyad KallaMembersimon we weren’t aware of this post, that’s great. Thank you for diving in on this.
March 20, 2007 at 5:46 am #267667
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
March 20, 2007 at 6:47 am #267668
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
March 20, 2007 at 10:12 am #267689
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?
March 22, 2007 at 6:42 am #267875
Simon TOSSERParticipantNo I don’t try that yet, but that’s workmaybe with symlinks (under unix/linux )
March 29, 2007 at 5:59 am #268120
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