Hi Fred,

Thanks for your response. I've been working on another project and haven't
had a chance to look into this until now.

OK, I'm able to get my maven webapp module to run on server, sort of, using
m2e-wtp, without moving the WEB-INF/conf directory back.

However, we have a folder under javascripts in webapp called jquery, where
we store customized jquery javascript codes. In our pom.xml file, we have a
development profile to copy javascripts/jquery to javascripts/jquery-dev
during war packaging. m2e-wftp failed to also copy and rename directory,
only javascript/jquery folder got copied, so none of the jquery javascript
functionalities is working.

How does m2e-wtp handle profiles or how should I set up in my pom.xml for
it to profiles? You mentioned it reads the pom.xml, and configure the
project, can you point me to some documentations on this. I'd like to
understand how m2e-wtp deploys the web application.
Thanks very much!

David

> Date: Mon, 7 May 2012 10:24:54 +0200
> From: Fred Bricon <[email protected]>
> To: Maven Integration for Eclipse users mailing list
>        <[email protected]>
> Subject: Re: [m2e-users] running webapp on eclipse using tomcat
> Message-ID:
>        <cag2ouxrqa3zmgx7g0yqpt10an0i6i4jv4vmq1dpgczombby...@mail.gmail.com
> >
> Content-Type: text/plain; charset="utf-8"
>
> David,
>
> m2e-wtp reads your pom.xml to configure the project to be deployed via Run
> As > Run on Server, it makes no assumptions about the original webapp
> directory setup.
> When moving your resources from src/main/webapp/WEB-INF/conf back to
> src/main/resource/, they will end up behing deployed to WEB-INF/classes
> instead of WEB-INF/conf. So if a CLI-built war works fine but fails when
> deployed via WTP, I'm interested in seeing your pom.xml.
> Could you make a sample project that reproduce this error and open a ticket
> at  https://issues.sonatype.org/browse/MECLIPSEWTP ?
>
> Regards,
>
> Fred Bricon
>
_______________________________________________
m2e-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/m2e-users

Reply via email to