Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356289 - m2e copies 'provided' maven dependencies into WEB-INF/lib
Summary: m2e copies 'provided' maven dependencies into WEB-INF/lib
Status: CLOSED INVALID
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: m2e (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-31 04:45 EDT by Andrius Kurtinaitis CLA
Modified: 2021-04-19 13:26 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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/