Your ejbproject/.settings/org.eclipse.wst.common.component most likely refernces the test source folders.
That was fixed in m2e-wtp 0.12.0 (which is compatible with m2e-core 0.12.x). See [1] and [2]. If you're stuck with 0.11.0, then I suggest you open your EJB module .project file, and check for the presence of this line : *<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>* Add it if it's missing. After that, update the project maven configuration and check if the offending entries have been removed from org.eclipse.wst.common.component. If the ModuleCoreNature is present AND you still see these test source entries in org.eclipse.wst.common.component after updating the maven config then : 1 - Create a new issue in https://issues.sonatype.org/browse/MECLIPSEWTP and attach your project there (only pom.xml + eclipse config files, obfuscate any sensible data if needed) 2 - manually remove the test entries from org.eclipse.wst.common.component and try deploying your app Regards, Fred Bricon [1] https://issues.sonatype.org/browse/MECLIPSEWTP-7 [2] https://issues.sonatype.org/browse/MECLIPSEWTP-3?focusedCommentId=123663&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-123663 2011/8/31 Rafael Vanderlei <[email protected]> > I'm still using Helios, m2e-core 0.12.x and m2e-wtp 0.11.x and I'm having > problems because files under testSourceDirectory and testResources (I'm not > using standard directory for test [re]sources) are being packaged and > deployed to the application server. > > Running mvn package works as expected (files under test directories don't > get deployed) > > I also noticed it´s only happening on the modules with ejb packaging type. > Modules with jar packaging are deployed correctly, without test resources. > Would it be a bug? > > If you need, I can attach a test project to help you reproduce the error. > > Thanks and regards, > Rafael. > > _______________________________________________ > m2e-users mailing list > [email protected] > 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
