Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 356289

Summary: m2e copies 'provided' maven dependencies into WEB-INF/lib
Product: z_Archived Reporter: Andrius Kurtinaitis <andrius.kurtinaitis>
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: CLOSED INVALID QA Contact:
Severity: major    
Priority: P3 CC: igor, matthew, valiantsinshukaila
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Andrius Kurtinaitis CLA 2011-08-31 04:45:13 EDT
I imported an existing maven project (git://github.com/SpringSource/spring-mvc-showcase.git) into Eclipse 3.7. Then, I added Dynamic Web Project facet and assigned it to Tomcat7 runtime.
If the project does not have 'Maven Dependencies' in the 'Deployment Assemblies' list, then it does not copy any maven deps into WEB-INF/lib. 
If it has, then it copies all of them, including the 'provided' ones: servlet-api, jsp-api - which are not good for Tomcat.
Comment 1 Igor Fedorenko CLA 2011-08-31 07:30:56 EDT
m2e-wtp provides necessary integration to use Dynamic Web Project facet with Maven workspace projects. m2e-wtp installation should be offered as part of war project import but you can also install it explicitly from eclipse marketplace.
Comment 2 Val CLA 2011-11-15 04:57:56 EST
I am unable to find where to download m2e-wtp plugin for the new 1.0 version of the m3eclipse, because no url is provided. So maybe there is no such plugin for 1.0 version of m2e and this issue is always reproduced.
Can you provide a link to the new m2e-wtp is it is exists? or maybe if the m2e-extras was assembled into m2e plugin it is not working the right way and I always getting jsp-api published to my tomcat.
If the maven dependencies were added to the deplyment assembly to just as solid library but as set of jars I could exclue unnecessary jars myself ;).
Comment 3 Matthew Piggott CLA 2011-11-15 09:48:17 EST
m2e-wtp and all m2e add-ons should be available in Window > Preferences, then Maven > Discovery and hit Open Catalog
Comment 4 Denis Roy CLA 2021-04-19 13:26:16 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/