Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343568 - MavenDependencies classpath container is empty if single <dependency/> element is invalid
Summary: MavenDependencies classpath container is empty if single <dependency/> elemen...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: m2e (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Igor Fedorenko CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 371429 (view as bug list)
Depends on: 369742
Blocks:
  Show dependency tree
 
Reported: 2011-04-21 11:24 EDT by Igor Fedorenko CLA
Modified: 2021-04-19 13:22 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Igor Fedorenko CLA 2011-04-21 11:24:27 EDT
As a user, I expect m2e to populate Maven Dependencies classpath container with known/resolved dependencies even if some dependencies cannot be resolved or have incomplete <dependency/> element in pom.xml. For example, for pom.xml below, I expect to to see slf4j dependency even though junit dependency is missing required <version/> element.


<project>
  <modelVersion>4.0.0</modelVersion>

  <groupId>xxx</groupId>
  <artifactId>m01</artifactId>
  <version>0.0.1-SNAPSHOT</version>

  <dependencies>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>1.6.1</version>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
    </dependency>
  </dependencies>
</project>
Comment 1 Igor Fedorenko CLA 2011-04-21 11:27:53 EDT
Opened bugreport against Maven core http://jira.codehaus.org/browse/MNG-5073
Comment 2 Igor Fedorenko CLA 2012-02-13 17:29:42 EST
*** Bug 371429 has been marked as a duplicate of this bug. ***
Comment 4 Denis Roy CLA 2021-04-19 13:22:46 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/