facebook

Meven2 dpendencies not included in webapp deployment

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #244986 Reply

    andrew.britz
    Member

    Hi All

    I am evaluating eclipse 3.1.1, with the myeclipse 4.0.3 and the meven2 plugin 0.0.4 (http://m2eclipse.codehaus.org/)
    This is on an XP service pack 2 box running under jdk1.5.0_01. When I try to deploy my webapp to Tomcat (5.5.4), None of the libs under the meven2 grouping of the build path are getting copied to the lib directory of my webapp. I would like to know if this is possible at all, as this is quite a show stopper for us.

    regards
    Andy

    #245001 Reply

    Riyad Kalla
    Member

    Andy,
    It depends how the libraries are added to your build path. If you open up your Project Properties > MyEclipse-WEb > Deployment, near the bottom you can see deployment policies. You can modify these or the workbench settings (global) to make sure that JARs or libraries added to your project that are NOT in WEB-INF/lib are deployed depending on how they are added.

    #246193 Reply

    Following your advice, I marked all the options in deployment policies, including “Jars in Web Project’s user libraries”. The problem with Maven is that it generates a User Library for JARs inclusion. I tested using a custom “Test” user library in my project classpath, and that’s not being deployed neither. So this would probably be a MyEclipse issue rather than a Maven Plugin issue.

    What do you think?

    #246203 Reply

    andrew.britz
    Member

    Hi All,

    Some feedback, I have now managed to get this to deploy. It was just problems with the deployemnt policies.

    regards
    Andy

    #246219 Reply

    Riyad Kalla
    Member

    lguijano,
    I’m not terribly farmiliar with Maven. When you say it generates a User Library, do you mean it generates an Eclipse user library, and it contains all the JARs of the project? Is this part of the Alpha Maven2 plugin from the Maven project you are using?

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Meven2 dpendencies not included in webapp deployment

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