Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351467 - M2E missed dependencies in WTP project deployment
Summary: M2E missed dependencies in WTP project deployment
Status: CLOSED NOT_ECLIPSE
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: m2e (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-07 11:53 EDT by David Matheson CLA
Modified: 2021-04-19 13:26 EDT (History)
1 user (show)

See Also:


Attachments
Dependency Hierarchy for artifacts with missing [compile] (36.36 KB, image/pjpeg)
2011-07-07 11:54 EDT, David Matheson CLA
no flags Details

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