facebook

Maven setup

  1. MyEclipse IDE
  2.  > 
  3. Feature Requests
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #232587 Reply

    Alex Hamer
    Member

    I know maven is not supported yet in Myeclipse. Im sure people are still using Maven and myeclipse separately though. Is so, how are you doing it?

    I just recently installed Maven, setup the recommended structure in MyEclipse, and created a project.xml. The directory structure that Maven suggests doesnt really conform to the structure that myeclipse uses. For example, Im using a directory structure that I got from a book to setup a webapp with maven

    project.xml
    project.properties
    maven.xml
    model
    —-project.xml
    —-project.properties
    —-maven.xml
    —-src
    ———java
    ———test
    web
    —-project.xml
    —-project.properties
    —-maven.xml
    —-src
    ———java
    ———webapp
    —————-WEB-INF

    1) Is this the directory structure you guys use? Im going to be creating a struts application.

    2) By default, adding a package in Myeclipse will always default to
    src directory where all packages are located. I cant add my packages under the maven structure (ex. web->src->java). I tried moving it over to that directory in myeclipse and its fine but doesnt treat it as a package under the Package Explorer window. How can this be done properly?

    Please help. Im new to Maven and would like to use it even if its not yet supported with MyEclipse.

    #232615 Reply

    Riyad Kalla
    Member

    1) Not quiet:
    http://www.myeclipseide.com/FAQ+index-myfaq-yes-id_cat-30.html#111

    2) This structure is ALMOST MyEclipse friendly, the only thing that you should change to make it friendlier is:
    1) have a single common /src dir at the same level as your model and web dirs (in the root of the project). All classes and resources go in here.
    2) Have a single output dir be your /web/WEB-INF/classes dir

    And that should be it. All you are trying to do is make sure everything under Web is a valid web project.

    #232824 Reply

    Alex Hamer
    Member

    Thanks. I will just split up the model into its own myeclipse project and another one for the web. This way, I will always have a common /src dir. I believe this works well with Maven as well.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Maven setup

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