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

Bug 354112

Summary: Provided dependencies should not be copied with deployment assembly
Product: z_Archived Reporter: Bozhidar Bozhanov <glamd>
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: CLOSED NOT_ECLIPSE QA Contact:
Severity: major    
Priority: P3 CC: igor
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Bozhidar Bozhanov CLA 2011-08-08 04:59:17 EDT
Build Identifier: 20110615-0604

Using WTP's Deployment assembly, you can add "Maven dependencies" to be copied to WEB-INF/lib. However, all jars are copied - even those with scope "provided", which break the application (conflicts with provided libraries at runtime). These dependencies (jars) should be ignored.

Reproducible: Always

Steps to Reproduce:
1. Set-up a Server runtime
2. Enable "Dynamic web module" for a project
3. Add the maven dependencies in the "Deployment assembly"
4. Add the project to the server and start the server
Comment 1 Igor Fedorenko CLA 2011-08-08 05:41:50 EDT
m2e-wtp issues should be reported to https://issues.sonatype.org/browse/MECLIPSEWTP
Comment 2 Denis Roy CLA 2021-04-19 13:25:57 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/