Search code examples
eclipsemavenstruts2dependency-managementsitemesh

Using maven for a dynamic web project


I'm newbie to Maven and I'm used it to create a dynamic web project in Eclipse with traditionnal jars.

I downloaded maven and installed it on my Windows8 system as indicated on the documentation and as listed on Kepler doc too, you don't have to install any Maven plugin on Eclipse because it's already installed.

So when I test it by adding some dependecies like Hibernate it's ok, it worked until I added the Struts2 & Sitemesh framework, when I was forced to add the jars to the lib folder to make it run.

Is tehre any special configuration to do for that?


Solution

  • I think you have a problem in deployment assembly management under eclipse, try:

    1. Open the project's properties (e.g., right-click on the project's name in the project explorer and select "Properties").
    2. Select "Deployment Assembly".
    3. Click the "Add..." button on the right margin.
    4. Click the "Add..." button on the right margin. 5.Select "Java Build Path Entries" from the menu of Directive Type and click "Next".
    5. Select "Maven Dependencies" from the Java Build Path Entries menu and click "Finish".