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

Bug 361713

Summary: If a module is named 'schema' it does not appear in the classpath of modules depending on it
Product: z_Archived Reporter: Altin Papa <altin.papa>
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: igor
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
working example none

Description Altin Papa CLA 2011-10-21 17:22:26 EDT
Build Identifier: STS 2.7.1.201107091000-RELEASE - Eclipse Core Runtime 3.7.0.v20110110

'schema' seems to be a reserved name in some sense. We have a module named 'container' which depends on another named 'schema'. Module schema, with jar packaging, contains just XSD resources.

Tests within 'container' fail and their classpath printed out at runtime does not contain the 'schema' module.

Simply renaming 'schema' to anything else, say 'myschema', resolves the issue.

Reproducible: Always

Steps to Reproduce:
1. create a multi-module project, with two jar modules: 'container' depending on 'schema'
2. Print or otherwise examine the classpath of 'container'. 'schema' is missing.
3. Rename 'schema' and retry. Problem resolved.
Comment 1 Igor Fedorenko CLA 2011-10-21 17:34:59 EDT
Created attachment 205757 [details]
working example

I am not able to reproduce the problem using current m2e 1.1 and I am fairly certain the problem does not exist in m2e 1.0 either (see attached working example). If I were to guess, I'd say either STS ships with a patched m2e or one of m2e extensions included with STS messes up project dependencies. 

In any case, if you believe the problem is with m2e itself, please provide a complete standalone project that we can use to reproduce the problem using eclipse distribution "for java developers" available from eclipse.org.
Comment 2 Altin Papa CLA 2011-10-21 17:36:53 EDT
thanks for the prompt response! I will take a closer look at isolating the issue, as suggested.
Comment 3 Denis Roy CLA 2021-04-19 13:22:57 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/