Let's assume you're using m2e-wtp, if you don't then start by installing it [1]
m2e-wtp doesn't flag target/<module-name> for deployment. Look at <project>/.settings/org.eclipse.wst.common.component to see what's deployed instead. jars or classes missing would definitely be a bug, if you can reproduce that with a sample project with m2e-wtp, please report a bug at [2] For GWT related resources, it's trickier : additional configuration is required : you can try using the gwt m2e configurator we have at JBoss [3] [1] http://www.eclipse.org/m2e-wtp/ [2] https://bugs.eclipse.org/bugs/enter_bug.cgi?product=M2E-WTP [3] https://community.jboss.org/wiki/MavenConfiguratorPluginForGWT HIH Fred Bricon On Fri, Oct 19, 2012 at 4:25 PM, Kristian Rink <[email protected]> wrote: > Folks; > > as the subject says: Using m2eclipse, WTP and Glassfish, is there any way > to ensure a webapp (maven war artifact) built from within Eclipse gets > correctly deployed to the application server? Right now, looking at how > things are, I see that the projects target/<module-name> folder always > contains the "right" structure, same as the .war file built this way. > However, when doing "run on server", it seems at best random what gets > copied over to the application server deployment folder. Sometimes there > are jars missing, sometimes WEB-INF/classes is completely empty, sometimes > GWT or VAADIN folders aren't there. I already messed with Project > Properties -> "Deployment Assembly" configuration, just to see things got > not much better. Neither did activating or deactivating workspace > dependency resolution. :/ > > How to get this set up right? Basically, I "just" want to see everything > in target/<module-name> deployed to the application server when running on > the server... Right now, much of this seems pretty non-deterministic and > sort of black art. :( > > TIA and all the best, > Kristian > ______________________________**_________________ > m2e-users mailing list > [email protected] > https://dev.eclipse.org/**mailman/listinfo/m2e-users<https://dev.eclipse.org/mailman/listinfo/m2e-users> > -- "Have you tried turning it off and on again" - The IT Crowd
_______________________________________________ m2e-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/m2e-users
