Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354112 - Provided dependencies should not be copied with deployment assembly
Summary: Provided dependencies should not be copied with deployment assembly
Status: CLOSED NOT_ECLIPSE
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: m2e (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-08 04:59 EDT by Bozhidar Bozhanov CLA
Modified: 2021-04-19 13:25 EDT (History)
1 user (show)

See Also:


Attachments

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