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

Bug 351467

Summary: M2E missed dependencies in WTP project deployment
Product: z_Archived Reporter: David Matheson <david.f.matheson>
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: CLOSED NOT_ECLIPSE QA Contact:
Severity: normal    
Priority: P3 CC: igor
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Dependency Hierarchy for artifacts with missing [compile] none

Description David Matheson CLA 2011-07-07 11:53:20 EDT
Build Identifier: 

Eclipse 3.7 + M2E 1.0.0

I have a project that used 3rd party libraries installed in our local Maven artifact repository (Artifactory).  Everything is fine importing the existing Maven project into my Eclipse setup, it properly resolves the dependencies that I see under Java Resources -> Libraries -> Maven Dependencies.

The problem is that when I deploy this to my Tomcat instance using WTP, it doesn't deploy all the JARs to the WEB-INF/lib directory.  Comparing the list of missing JARs to the Dependency Hierarchy that m2e shows me, it seems that some dependencies aren't getting resolved as [compile] and are thus omitted.  

These dependencies are properly included in the WAR that results from "mvn package" so I do not know why m2e is choosing to exclude them.

Reproducible: Always

Steps to Reproduce:
1. Set up Artifactory or equivalent
2. Install artifacts with transient dependencies
3. Create new web project that depends on artifact with dependencies
4. Deploy web application to Tomcat within Eclipse
Comment 1 David Matheson CLA 2011-07-07 11:54:21 EDT
Created attachment 199269 [details]
Dependency Hierarchy for artifacts with missing [compile]
Comment 2 Igor Fedorenko CLA 2011-07-07 12:47:08 EDT
Please report m2e-wtp issues in https://issues.sonatype.org/browse/MECLIPSEWTP
Comment 3 Denis Roy CLA 2021-04-19 13:26:26 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/