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

Bug 346237

Summary: MAVEN2_CLASSPATH_CONTAINER warning
Product: z_Archived Reporter: Vladimir Nicolici <vladnc>
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: igor
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Vladimir Nicolici CLA 2011-05-18 09:22:41 EDT
Build Identifier: 20100917-0705

I have a JAR maven project. After I convert the project to a faceted project and add the "Utility Module" facet, the following warning is added to the Problems list:

Classpath Dependency Validator Message: Classpath entry org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER will not be exported or published. Runtime ClassNotFoundExceptions may result.  

I can use the Ctrl+1 quick fix method and exclude the classpath entry from potential export dependencies, but as soon as I run "Update project configuration" the fix is overwritten and I have to apply it again.

I use M2E 0.12.1.20110112-1712.

Similar bugs: 

https://bugs.eclipse.org/bugs/show_bug.cgi?id=318809 - "Update Maven Configuration" corrupts WEB project's .classpath"

https://issues.sonatype.org/browse/MNGECLIPSE-855 - Unnecessary warning "MAVEN2_CLASSPATH_CONTAINER will not be exported or published" in WTP project


Reproducible: Always

Steps to Reproduce:
1. Install Eclipse Helios SR1
2. Install M2E 0.12
3. Create a new JAR maven project
4. Convert the project to a faceted project
5. Add the "Utility Module" facet.
6. Fix the problem with Ctrl+1 and selecting "Exclude".
7. Run "Update project configuration", the problem resurfaces.
Comment 1 Igor Fedorenko CLA 2011-05-18 09:36:38 EDT
How is this different from bug 318809?

*** This bug has been marked as a duplicate of bug 318809 ***
Comment 2 Vladimir Nicolici CLA 2011-05-18 10:36:17 EDT
(In reply to comment #1)
> How is this different from bug 318809?
> 
> *** This bug has been marked as a duplicate of bug 318809 ***

Bug 318809 was reported for a Dynamic Web Project, this bug is for a Faceted Project with a "Utility Module" facet.

Furthermore, I can reproduce the bug even when WTP integration is not installed.

Do you think I should report this bug to https://issues.sonatype.org/browse/MECLIPSEWTP, as you recommend for bug 318809?
Comment 3 Igor Fedorenko CLA 2011-05-18 11:15:21 EDT
m2e does not directly integrate with wtp and we will not make any wtp-specific changes in m2e. 

Here is a quote from MNGECLIPSE-855

<quote>
please open a ticket under https://issues.sonatype.org/browse/MECLIPSEWTP with a step by step way to reproduce the problem and sample projects, if possible.
</quote>
Comment 4 Denis Roy CLA 2021-04-19 13:26:38 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/