facebook

[Closed] Web project with a maven structure

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #266268 Reply

    Karsten
    Member

    Hi 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/webapp

    I 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

    #266312 Reply

    Riyad Kalla
    Member

    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.

    #267576 Reply

    Simon TOSSER
    Participant

    @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

    #267587 Reply

    Riyad Kalla
    Member

    Simon, no solution at this time.

    #267601 Reply

    Simon TOSSER
    Participant

    Hi Riyad,
    I found this topic on the Web

    http://www.octonary.com/blog/?p=37

    I test it and report my test here

    Thanks

    #267625 Reply

    Riyad Kalla
    Member

    simon we weren’t aware of this post, that’s great. Thank you for diving in on this.

    #267667 Reply

    Simon TOSSER
    Participant

    Hi,
    I test to create a new Web Project with MyEclipse with a Maven structure
    Java source : src/main/java
    Webroot dir : src/main/webapp

    When 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

    #267668 Reply

    Simon TOSSER
    Participant

    Hi,
    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

    #267689 Reply

    Riyad Kalla
    Member

    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?

    #267875 Reply

    Simon TOSSER
    Participant

    No I don’t try that yet, but that’s workmaybe with symlinks (under unix/linux )

    #268120 Reply

    msquared
    Member

    @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”/>

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: [Closed] Web project with a maven structure

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