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

Bug 344262

Summary: POM editor does not show scope inherited from dependency management
Product: z_Archived Reporter: Tobias Oberlies <t-oberlies>
Component: m2eAssignee: Milos Kleint <mkleint>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: mkleint
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Tobias Oberlies CLA 2011-04-29 08:29:25 EDT
I just found out that it is possible to change the default scope of a dependency through dependency management, e.g.

<dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.8.2</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
</dependencyManagement>


If a child POM then only specifies a simple depencency, e.g.

<dependency>
  <groupId>junit</groupId>
  <artifactId>junit</artifactId>
</dependency>

the POM editor correctly displays the inherited version, but it does not seem to be aware of the inherited scope. The Dependency Properties dialog shows the incorrect scope "compile". It should display the correct inherited scope.

Also, in the dependencies list, it would be great if the managed scope could be shown in case it is not "compile".
Comment 2 Denis Roy CLA 2021-04-19 13:25:46 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/