Hi all,

I have a problem with the plugin when I try to convert a project to maven.
Let me explain the different steps :
  1. First I create a normal (I mean without maven) dynamic web project,
with java sources in src and webapp directory in WebContent
  2. Then I activate maven with the 'Enable Dependency Management' option
  3. And by default m2eclipse think the WEB-INF/web.xml is located in the
src/main/webapp directory so I configure the maven-war-plugin with property
warSourceDirectory set to ${basedir}/WebContent
  4. Then I force the plugin to update the project configuration by
selecting the 'Update Project Configuration'

The problem is that m2eclipse don't use the WebContent directory as webapp,
it first resolved the basedir property.
So if your project is located in 'D:\workspace\project', m2eclipse will use
'workspace/project/WebContent' as webapp !!!

Does anybody face the same problem ?

Thanks

CletteBou
Emo Philips  - "I was the kid next door's imaginary friend."

Reply via email to